Iduino ST1065 User guide

User Manual
For 37 in 1 Sensor Kit(ST1065)
www.openplatform.cc
IDUINO for maker’s life
www.openplatform.cc 1
for
37 in 1 Sensor Kit(ST1065)
IDUINO for maker’s life
2 www.openplatform.cc
Module List
The order of modules is corresponding with the grid’s location, the last grid contains two modules.
Name
Quantity
Picture
1
Joystick Module
1
2
Relay Module
1
3
Large Microphone Module
1
4
Small Microphone Module
1
5
Line Tracking Module
1
IDUINO for maker’s life
www.openplatform.cc 3
6
Obstacle Avoidance Sensor
1
7
Flame Sensor Module
1
8
Linear Magnetic Hall Sensor
1
9
Touch Sensor
1
10
Digital Temperature Sensor
1
11
Buzzer Module
1
12
Passive Buzzer/Sounder
1
IDUINO for maker’s life
4 www.openplatform.cc
13
RGB LED Module
1
14
SMD RGB LED Module
1
15
Two Color LED Module(5mm)
1
16
Two Color LED Module(3mm)
1
17
Reed Switch Module
1
18
Mini Reed Switch Module
1
19
Heartbeat Sensor
1
IDUINO for maker’s life
www.openplatform.cc 5
20
Seven Color Flashing
1
21
Laser Module
1
22
Tactile Switch Module
1
23
Shock Module
1
24
Rotary Encode Module
1
25
Switch Light Module
2
26
Tilt Switch Module
1
IDUINO for maker’s life
6 www.openplatform.cc
27
Ball Switch Module
1
28
Light Dependent Resistor Module
1
29
Temperature and Humidity Module
1
30
Analog Hall Effect Sensor
1
31
Class Hall Magnetic Sensor
1
32
Digital Temperature Module
1
33
Analog Temperature Sensor
1
IDUINO for maker’s life
www.openplatform.cc 7
34
IR Transmitter Module
1
35
IR Receiver Module
1
36
Optical Broken Module
1
37
Hit Sensor Module
1
IDUINO for maker’s life
8 www.openplatform.cc
Module 1: Joystick module
1.Introduction
This joystick module maybe the best choice for your controller of DIY project. It has two
analog input pins to control X, Y axis and also has button input, someone may call it Z axis,
but it only input digital signal with 0 or 1.
Specifications:
Two analog pin(X, Y axis), one digital pin(button). Input voltage: 5V Output voltage: 2.5V Size: 37*25*32mm Weight: 8g
2.PinOut
Pin
Description
GND
Ground
+5v
Power
VRX
X axis analog signal input
VRY
Y axis analog signal input
SW
Button key, value is 0 or 1
3.Example
Here is an example, connect the circuit as below and run the code, you will see the analog
value from X, Y axis and button through the Serial Monitor.
IDUINO for maker’s life
www.openplatform.cc 9
*********Code begin*********
int sensorPin = 5;
int value = 0;
void setup() {
pinMode(3, OUTPUT);
Serial.begin(9600);
}
void loop() {
value = analogRead(0);
Serial.print("X:");
Serial.print(value, DEC);
value = analogRead(1);
Serial.print(" | Y:");
Serial.print(value, DEC);
value = digitalRead(7);
Serial.print(" | Z: ");
Serial.println(value, DEC);
delay(100);
}
*********Code End*********
IDUINO for maker’s life
10 www.openplatform.cc
Module 2: Relay Module
1. Introduction
The module is uses SRD relay module to control high-voltage electrical device. It can be
used in interactive projects and can also be used to control the lighting, electrical and other
equipment. It can be controlled directly by a wide range of microcontrollers and can be
controlled through the digital IO port, such as solenoid valves, lamps, motors and other high
current or high voltage devices.
Remarks: This is declare that the relay module is only for low voltage (below 75 V/DC and
50 V/AC).
specifications:
Number of I/O Channels: 1 Input Voltage: 5V DC Type: Digital Control signal: TTL level Max allowable output Voltage: 50V AC/75V DC Indication LED for Relay's Status
2. Pinout
Pin Name
Description
“+”
Power(5V DC)
“-”
GND
“S”
Signal pin, connected with Arduino
“NO”
Normally open terminal
“NC”
Normally closed terminal
“C”(middle pin)
Common terminal, Which connected with the power for the load.
IDUINO for maker’s life
www.openplatform.cc 11
3. Example
This example controls a LED(or other high power load) via the Relay module. Physical connection as below:
The example code as below:
*********Code begin*********
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
*********Code End*********
IDUINO for maker’s life
12 www.openplatform.cc
Module3. Large Microphone Module
1. Introduction
It’s a high sensitivity sound detection module, which has two output signal pin. one digital
pin(D0), When it detect some sound up to certain threshold, it can output High or Low level.
One analog pin(A0), it can real-time output voltage signal of the microphone.
Specification
Voltage:5V/3.3V Electret microphone(It’s different from module4) there is a mounting screw hole 3mm the use 5v DC power supply with analog output there is threshold level output flip high sensitive microphone and high sensitivity. a power indicator light the comparator output is light Weight: 4g Frequency Response range:50Hz20kHz Impedance2.2K ohm Sensitivity48~66dB polar patternUniversal Operating temperature: -40 to 85 degrees Celsius Operating humidity: <90%
IDUINO for maker’s life
www.openplatform.cc 13
Storage temperature : -40 to 85degrees Celsius Storage humidity : <75% product size: 45*15mm
2. Pinout
Pin
Description
A0
Analog signal output pin
G
Ground
+
Power(5V/3.3V)
D0
Digital signal output pin
3. Example
We will use three example to show the different function of this module.
Example 1 show you how to use the digital pin(D0), Example 2 show you how to use the
digital pin(A0), In Example 3, we can try to combine this two function into one experiment.
3.1 Example 1
This example shows you the digital pin function, connect Pin12(Arduino) to a LED light,
and connect this module as below, and upload the code.
Then turn the variable resistor until the LED12 turns off. Now you can handclap or make
a sound, you will see the LED12 turns on.
Code for Example1
********Code begin********
IDUINO for maker’s life
14 www.openplatform.cc
int Led = 12 ;// define LED Interface
int buttonpin = 7; // define D0 Sensor Interface
int val = 0;// define numeric variables val
void setup ()
{
pinMode (Led, OUTPUT) ;// define LED as output interface
pinMode (buttonpin, INPUT) ;// output interface D0 is defined sensor
}
void loop ()
{
val = digitalRead(buttonpin);//
if (val == HIGH) //
{
digitalWrite (Led, HIGH);
}
else
{
digitalWrite (Led, LOW);
}
}
********Code End********
3.2 Example 2
This example shows you the Analog pin function, connect this module as below picture,
and upload the code.
Then open the Serial monitor, you can see some number between 0 to 1023. And now if
you make some high or low voice, the number is changing.
IDUINO for maker’s life
www.openplatform.cc 15
Code for Example2
********Code begin********
int sensorPin = A5; // select the input pin for the potentiometer
void setup ()
{
Serial.begin (9600);
}
void loop ()
{
sensorValue = analogRead (sensorPin);
delay (500);
Serial.println (sensorValue, DEC);
}
********Code End********
3.3 Example 3
In this example we try to combine digital pin and analog pin together to control two LED
lights, connection and code as below.
IDUINO for maker’s life
16 www.openplatform.cc
Code for example 3
********Code begin********
int Led=13;
int ledPin=12;
int buttonpin=7;
int sensorPin = A0;
int sensorValue = 0;
int val;
void setup()
{
Serial.begin(9600);
pinMode(Led,OUTPUT);
pinMode(ledPin, OUTPUT);
pinMode(buttonpin,INPUT);
}
void loop()
{
sensorValue = analogRead(sensorPin);
digitalWrite(ledPin, HIGH);
delay(sensorValue);
digitalWrite(ledPin, LOW);
IDUINO for maker’s life
www.openplatform.cc 17
delay(sensorValue);
Serial.println(sensorValue, DEC);
val=digitalRead(buttonpin);
if(val==HIGH)
{
digitalWrite(Led,HIGH);
}
else
{
digitalWrite(Led,LOW);
}
}
********Code End********
Module 4: Small microphone module
1.Introduction
This module is similar with the large microphone module(ST1146). The only difference is
the microphone, not only the size, but also the function. The large microphone module has
an electronic microphone, and the small microphone module just has a normal microphone.
The electret microphone has more high sensitivity, but they share the same work method.
Specification
Voltage:5V/3.3V there is a mounting screw hole 3mm
IDUINO for maker’s life
18 www.openplatform.cc
the use 5v DC power supply with analog output there is threshold level output flip high sensitive microphone and high sensitivity. a power indicator light the comparator output is light Weight: 4g Frequency Response range:50Hz20kHz Impedance2.2K ohm Sensitivity48~66dB polar patternUniversal Operating temperature: -40 to 85 degrees celsius Operating humidity: <90% Storage temperature : -40 to 85 degrees celsius Storage humidity : <75% product size: 45*15mm
2. Pinout
Pin
Description
A0
Analog signal output pin
G
Ground
+
Power(5V/3.3V)
D0
Digital signal output pin
3. Example
We will use three example to show the different function of this module.
Example 1 show you how to use the digital pin(D0), Example 2 show you how to use the
digital pin(A0), In Example 3, we can try to combine this two function into one experiment.
3.1 Example 1
This example shows you the digital pin function, connect Pin12(Arduino) to a LED light,
and connect this module as below, and upload the code.
IDUINO for maker’s life
www.openplatform.cc 19
Then turn the variable resistor until the LED12 turns off. Now you can handclap or make
a sound, you will see the LED12 turns on.
Code for Example1
********Code begin********
int Led = 12 ;// define LED Interface
int buttonpin = 7; // define D0 Sensor Interface
int val = 0;// define numeric variables val
void setup ()
{
pinMode (Led, OUTPUT) ;// define LED as output interface
pinMode (buttonpin, INPUT) ;// output interface D0 is defined sensor
}
void loop ()
{
val = digitalRead(buttonpin);//
if (val == HIGH) //
{
digitalWrite (Led, HIGH);
}
else
{
IDUINO for maker’s life
20 www.openplatform.cc
digitalWrite (Led, LOW);
}
}
********Code End********
3.2 Example 2
This example show you the Analog pin function, connect this module as below picture, and
upload the code.
Then open the Serial monitor, you can see some number between 0 to 1023. And now if
you make some high or low voice, the number is changing.
Code for Example2
********Code begin********
int sensorPin = A5; // select the input pin for the potentiometer
void setup ()
{
Serial.begin (9600);
}
void loop ()
{
sensorValue = analogRead (sensorPin);
delay (500);
Serial.println (sensorValue, DEC);
IDUINO for maker’s life
www.openplatform.cc 21
}
********Code End********
3.3 Example 3
In this example we try to combine digital pin and analog pin together to control two LED
lights, connection and code as below.
Code for example 3
********Code begin********
int Led=13;
int ledPin=12;
int buttonpin=7;
int sensorPin = A0;
int sensorValue = 0;
int val;
void setup()
{
Serial.begin(9600);
pinMode(Led,OUTPUT);
pinMode(ledPin, OUTPUT);
pinMode(buttonpin,INPUT);
}
void loop()
IDUINO for maker’s life
22 www.openplatform.cc
{
sensorValue = analogRead(sensorPin);
digitalWrite(ledPin, HIGH);
delay(sensorValue);
digitalWrite(ledPin, LOW);
delay(sensorValue);
Serial.println(sensorValue, DEC);
val=digitalRead(buttonpin);
if(val==HIGH)
{
digitalWrite(Led,HIGH);
}
else
{
digitalWrite(Led,LOW);
}
}
********Code End********
Module5: Line tracking module
1.Introduction
With this module your DIY car or robot can walk only along one line way. When the detector
move from white to black, it could output TTL signal, So if you draw one black line between
IDUINO for maker’s life
www.openplatform.cc 23
in the two wheels of your car, it will walk along your expecting road.
Specification:
Voltage: 3.3V to 5V Operating current: 20mA @ 5V Operating temperature range: 0°C ~ + 50°C Black for LOW output, White for HIGH output Size:45x10mm
2 Pinout
Pin
Description
S
Digital output pin, black is Low, white is
High
V+
Power(5V DC)
G
Ground
3. Example
The example show that when the sensor detect black area, the “s” pin output Low TTL
signal, then the LED13 turn off meanwhile the light ”L” on this module turns on. On the
contrary, LED13 turns on. The connection as below:
********Code begin********
int Led=13;
int buttonpin=3;
IDUINO for maker’s life
24 www.openplatform.cc
int val;
void setup()
{ pinMode(Led,OUTPUT);
pinMode(buttonpin,INPUT);
}
void loop()
{
val=digitalRead(buttonpin);
if(val==HIGH)
{ digitalWrite(Led,HIGH); }
else { digitalWrite(Led,LOW); }
}
********Code End********
Module 6: Obstacle Avoidance Sensor
1. Introduction
Infrared obstacle avoidance sensor is designed for the design of a wheeled robot
obstacle avoidance sensor distance adjustable. This ambient light sensor adaptable, high
precision, having a pair of infrared transmitter and receiver, transmitter tubes emit a certain
frequency of infrared, When detecting the direction of an obstacle (reflector), the infrared
receiver tube receiver is reflected back, when the indicator is lit, Through the circuit, the
signal output interface output digital signal that can be detected by means of potentiometer
knob to adjust the distance, the effective distance From 2 ~ 40cm, working voltage of 3.3V-
5V, operating voltage range as broad, relatively large fluctuations in the power supply voltage
of the situation Stable condition and still work for a variety of microcontrollers, Arduino
IDUINO for maker’s life
www.openplatform.cc 25
controller, BS2 controller, attached to the robot that Can sense changes in their surroundings.
Specification:
Working voltage: DC 3.3V-5V Working current: ≥ 20mA Operating temperature: -10 - +50 detection distance :2-40cm IO Interface: 4-wire interfaces (- / + / S / EN) Output signal: TTL level (low level there is an obstacle, no obstacle high) Adjustment: adjust multi-turn resistance Effective angle: 35 ° Size: 45mm × 23mm
2. Pinout
Pin
Description
“+”
Power(3.3V~5V DC)
Gnd
ground
out
Signal pin
EN
Enable pin that Low level works, usually
useless
3.Example code
Here is a small example to test the sensor. By default, the sensor returns 1 on the Serial
Monitor. When detecting something, the sensor return 0. The connection as below:
IDUINO for maker’s life
26 www.openplatform.cc
******Code begin******
int count;
void setup() {
Serial.begin (9600);
pinMode (9, INPUT); //Sensor output
}
void loop() {
Serial.print ("Sensor: ");
Serial.println (digitalRead(9)); //print the sensor output
delay (500); //wait half a second
}
******Code End******
Module 7: Flame Sensor Module
1.Introduction
IDUINO for maker’s life
www.openplatform.cc 27
This is a flame sensor module that can be used to detected whether a flame source exist
or not. It’s sensitive to IR wavelength at 760nm~1100nm. Usually, the detection angle is
about 60 degrees.
Specification
Operation voltage: 5V for analog, 3.3V for digital Both digital and analog output pin Adjustable sensitive Detect IR wavelength: 760nm~1100nm Size: 45*15mm Weight: 3g
2.Pinout
Pin
Description
A0
Analog output pin, real-time output voltage
signal on thermal resistance
D0
Digital output pin, output Low or High
signal when the temperature reaches a
certain threshold
+
Power(5V for analog, 3.3V for digital)
G
Ground
3.Example
Here is an example for how to use both the analog pin(A0) and digital pin(D0), connect the
circuit as below, upload this sketch, open the Serial Monitor, you will see the real-time value
of the thermal resistance, and once the flame closing to it, the value will change. If the value
reaches a certain threshold, the D0 pin will output High signal meanwhile the LED13 turns
on. And threshold can be adjusted by potentiometer.
IDUINO for maker’s life
28 www.openplatform.cc
********Code begin********
int Led = 13 ;// define LED Interface
int buttonpin = 3; // define the flame sensor interface
int analoog = A3; // define the flame sensor interface
int val ;// define numeric variables val
float sensor; //read analoog value
void setup ()
{
pinMode (Led, OUTPUT) ;// define LED as output interface
pinMode (buttonpin, INPUT) ;// output interface defines the flame sensor
pinMode (analoog, INPUT) ;// output interface defines the flame sensor
Serial.begin(9600);
}
void loop ()
{
sensor = analogRead(analoog);
Serial.println(sensor); // display tempature
val = digitalRead (buttonpin) ;// digital interface will be assigned a
value of 3 to read val
if (val == HIGH) // When the flame sensor detects a signal, LED flashes
{
IDUINO for maker’s life
www.openplatform.cc 29
digitalWrite (Led, HIGH);
}
else
{
digitalWrite (Led, LOW);
}
delay(1000);
}
********Code End********
Module 8:Linear Magnetic Hall Sensor (SE014)
1 Introduction
This module is analog hall sensor module, it can both output an analog and digital voltage
at the signal pin of this module. This module is different from hall magnetic sensor(Module
31), which just output digital signal, like a magnetic switch.
Specification
Operation voltage: 5V 4Pin Size:45*12mm Weight: 3g
2 Pinout
Pin
Description
A0
Analog output pin, real-time output voltage
Loading...
+ 70 hidden pages