10.15662/ijareeie.2014.0309046
www.ijareeie.com
12162
ATmega328
Operating Voltage
5V
Copyright to IJAREEIE
10.15662/ijareeie.2014.0309046
www.ijareeie.com
12163
7-12V
6-20V
40 mA
50 mA
Flash Memory
SRAM
2 KB (ATmega328)
EEPROM
1 KB (ATmega328)
Clock Speed
16 MHz
c units of time. The output of a PWM channel is either Vs volt during the pulse or zero volts otherwise. If this
signal is supplied as input to a device that has a response time much larger than c , the device will experience the
every
Veff Vs
0
c
(1)
The ratio 0 = c is called the duty cycle of the square wave pulses. The effective DC voltage supplied to the load is
controlled by adjusting the duty cycle. An Arduino Uno has 14 digital input/output (I/O) pins. Conventional, i.e., not
PWM, operation of the digital I/O pins is controlled with the pinMode, digitalRead and digitalWrite functions. The
pinMode function is used to configure a pin as an input or output. When a digital I/O pin is configured as an input,
digitalRead reads the state of the pin, which will be either HIGH or LOW. In an Arduino sketch, HIGH is a predefined
constant that is evaluated as true" in a conditional expression, and is equivalent to a numerical value of 1. Electrically,
a value of HIGH means the pin voltage is close to 5 V. Similarly, the constant LOW is interpreted as false" in
conditional expressions, it is numerically equivalent to 0, and electrically the pin voltage is 0. When a digital I/O pin is
configured for output, digitalWrite is used to set the pin voltage to HIGH or LOW. On an Arduino Uno, PWM output is
possible on digital I/O pins 3, 5, 6, 9, 10 and 11. On these pins the analogWrite function is used to set the duty cycle of
a PWM pulse train that operates at approximately 500 Hz2. Thus, with a frequency fc = 500 Hz, the period is c = 1/fc
~2ms. As with conventional digital I/O, the pinMode function must be called first to configure the digital pin for
output. The digital output voltage of an Arduino Uno is either 0 V or 5 V. Thus, in Equation (1), Vs = 5 V. The PWM
output level with the analogWrite is an 8-bit value that corresponds to an effective voltage range of 0 to 5 V.
Copyright to IJAREEIE
10.15662/ijareeie.2014.0309046
www.ijareeie.com
12164
...
c
0
c
(2)
Veff
Vs
(3)
Since Vs = 5V always, for routine calculations, we can use the simple formula
Veff
5
Copyright to IJAREEIE
10.15662/ijareeie.2014.0309046
www.ijareeie.com
12165
Copyright to IJAREEIE
10.15662/ijareeie.2014.0309046
www.ijareeie.com
12166
M. Saranya, D. Pamela, A Real Time IMC Tuned PID Controller for DC Motor", IJRTE ISSN: 2277-3878, Volume 1, Issue-1, April 2012
Naveen Kumar and Dr. Prasad Krishna, "Low cost data acquition and control using Arduino Prototyping platform and LabVIEW"
,IJSR,Volume 2, Issue-2, February 2013
Purna Chandra Rao et. al., Robust Internal Model Control Strategy based PID Controller for BLDCM ,International Journal of Engineering
Science and Technology, Volume 2(11), 2010, 6801-6811.
Detchrat, et. al. , "IMC-Based PID Controllers Design for Two-Mass System", IMECS 2012 Volume - II, Hong Kong.
Ibrahim kaya, IMC based automatic tuning method for PID controllers in a smith predictor configuration" , Sciencedirect, 2004
Farouk Zouari, et.al., daptive Internal Model Control of a DC Motor Drive System Using Dynamic Neural Network" Journal of Software
Engineering and Applications, Scientific Research, 2012, 5, 168-189.
Olden. P, Open Loop motor speed control with LabVIEW, SoutheastCon, Proceedings IEEE, pp. 259-262, 2001, (Conference Publications)
Copyright to IJAREEIE
10.15662/ijareeie.2014.0309046
www.ijareeie.com
12167