Unit-I 1.0 Introduction To Mechatronics
Unit-I 1.0 Introduction To Mechatronics
Unit-I
1.0 Introduction to Mechatronics
The term "mechatronics" was first assigned by Mr. Tetsuro Mori, a senior engineer of the
Japanese company Yaskawa, in 1969. Mechatronics basically refers to mechanicalelectronic
systems
• Sensors,
• Actuators,
• Controllers and
1|Page
MECHATRONICS UNIT-I
• Mechanical/electrical components
Figure 1.2 shows Key elements of mechatronics system
1.1.1 Sensors
A sensor is a device that measures a physical quantity and converts it into an 'electrical signal'
which can be read by an observer or by an instrument.
➢ Temperature sensors
➢ Displacement, position, motion and velocity sensors,
➢ Fluid sensors, liquid flow, liquid level
➢ Light sensors etc.,
1.1.2 Actuator
2|Page
MECHATRONICS UNIT-I
3|Page
MECHATRONICS UNIT-I
1.3 Arduino
Arduino is an open-source electronics platform which integrates hardware and software
easily. Arduino boards are able to read inputs - light on a sensor, a finger on a button, or a
Twitter message - and turn it into an output - activating a motor, turning on an LED, publishing
something online. You can tell your board what to do by sending a set of instructions to the
microcontroller on the board.
1.3.1 Arduino Boards
▪ Arduino Uno
▪ Arduino NG, Diecimila, and the Duemilanove (Legacy Versions)
▪ Arduino Mega 2560
▪ Arduino Mega ADK
4|Page
MECHATRONICS UNIT-I
▪ ArduinoLilyPad
1.3.2 Arduino Pin map
The figure 1.4 shows Arduino Mega Pin map
5|Page
MECHATRONICS UNIT-I
• Memory - The ATmega2560 has 256 KB of flash memory for storing code (of which 8
KB is used for the bootloader), 8 KB of SRAM and 4 KB of EEPROM (which can be
read and written with the EEPROM library).
Power pins:
• VIN: Used to turn ON the board using battery.
• 5V. It is used to power external components connected to Arduino which needs 5V.
• 3V3.It is used to power external components connected to Arduino which needs 3.3V.
Maximum current draw is 50 mA.
• GND.Ground
Digital Input/Output(I/O):
Each of the 54 digital pins on the Mega can be used as an input or output, using pinMode(),
digitalWrite(), and digitalRead() functions. They operate at 5 volts. Each pin can provide or
receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of
20-50 kΩ. In addition, some pins have specialized functions
Universal Asynchronous Receiver and Transmitter (UART): Used to receive (RX) serial data
and transmit (TX) serial data.
• UART 0: 0 (RX) and 1 (TX)
• UART 1: 19 (RX) and 18 (TX)
• UART 2: 17 (RX) and 16 (TX)
• UART 3: 15(RX) and 14 (TX).
Pulse Width Modulation (PWM): 0 to 13. Provide 8-bit PWM output with the analog Write()
function. These pins are also called as analog output lines
Serial Peripheral Interface(SPI): 50 (MISO), 51 (MOSI), 52 (SCK), 53 (SS).
➢ MISO (Master In Slave Out)
➢ MOSI (Master Out Slave In)
➢ SCK (Serial Clock)
➢ SS(Serial Select)
LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the
LED is on, when the pin is LOW, it's off.
Inter integrated circuit (I2C): 20 (SDA) and 21 (SCL).
• SDA : Serial Data, It is the bidirectional data line that is used by I2C.
6|Page
MECHATRONICS UNIT-I
• SCL : Serial Clock, It is used to indicate that data is ready on bidirectional data line that
is used by I2C.
Analog Inputs: The Arduino Mega2560 has 16 analog inputs, each of which provide 10 bits of
resolution (i.e. 1024 different values).
There are a couple of other pins on the board.
AREF. Reference voltage for the analog inputs. Used with analogReference().
Reset. It Resets the Arduino board if pressed
7|Page
MECHATRONICS UNIT-I
}
void loop() //• Execute repeatedly • Primary tasks for the sketch
{
digitalWrite(LED_pin, HIGH);
delay(1000);
digitalWrite(LED_pin, LOW);
delay(1000);
}
9|Page