Вы находитесь на странице: 1из 8

2017

MicroDAQ_PWM Block

M.Mohamed Ibrahim
Tenet Technetronics
20-APR-17
Tenet Technetronics 1
Application Notes

Contents

Introduction 2

PWM Block 2

Tenet Technetronics | Varsity

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com
Tenet Technetronics 2
Application Notes

Introduction

Generally Pulse Width Modulation is prominently used in controlling & communication


applications. Here, we are using this technique to changing the light intensity of led.

This block controls MicroDAQ PWM modules. One of three PWM modules can be
selected (PWM1, PWM2, PWM3), PWM period is defined with 1us resolution, 'Polarity'
parameters allow to generate inverted PWM waveform. Blocks input parameter range
is 0-100 (duty in %).

PWM Block:

Step 1: MicroDAQ blocks are used to access the MicroDAQ hardware.


MicroDAQ blocks are available in XCOS palette browser under MicroDAQ
palette.

Figure 1: MicroDAQ Palette

Tenet Technetronics | Varsity

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com
Tenet Technetronics 3
Application Notes

Step 2: Objective is to create an XCOS model using MicroDAQ PWM blocks (see
Figure 2a). Pick all the blocks specified in the fig 2b, set the appropriate
parameters and connect as shown in the diagram.

Figure 2a: Super Block_PWM Demo

Figure 2b: MicroDAQ_PWM Demo

Tenet Technetronics | Varsity

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com
Tenet Technetronics 4
Application Notes

Figure 2c: Output

Tenet Technetronics | Varsity

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com
Tenet Technetronics 5
Application Notes

Figure 3a: PWM input is 95

Figure 3b: Output

Tenet Technetronics | Varsity

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com
Tenet Technetronics 6
Application Notes

Figure 4a: PWM input is 10

Figure 4b: Output

Tenet Technetronics | Varsity

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com
Tenet Technetronics 7
Application Notes

For more information please visit: www.tenettech.com

For technical query please send an e-mail: info@tenettech.com

Tenet Technetronics | Varsity

#9/3, Shree Lakshmi Complex, 2nd Floor, Opp. To Vivekananda Park, Girinagar, Bangalore - 560085.
Ph. No: 080-26722726., Website: www.tenettech.com, Email: info@tenettech.com