You are on page 1of 49

?








A


"

Cerrar puerto,

'







;



(

"

















"





"







(


"

Create

7
,

"


"




J
*




"

9

6




H







;


"









"










"








"







ser el equivalente al loop de un programa











en modo wire




"





"

"












"

(



#
















"


A

"









"


(










"

"









"
















(




"

)
"

"
(
9

"







'








"














>


"



(







(







8

'

'

&

Init

"


%

"


(

"





2

"



"




"






/












+




"

'



"




"





(


"

;


"


"

"



7





"





(
(


"







"

!



"

*


"

&
(


(





"







:














%



(


(









(








(







"





"

"




"




"




"

"

<

>


=
































"



9


"






















"

(
"


"














'

,




"

!



^

"


Digital I/O










"








.
]

"


"
:







"





(




8
+

+











,
W

"





&

;



:

"

/


@



\









8














[


7
V








(


=














(




INPUT
PIN Digital

Integer de 8 bits




"

:







(



"





"




"







8


:

<

"







7




"

"




7












"









"




"









;

:
(








"










"

&





(



:




(


















(

"




Cerrar





"




"


:
(








(


"
"

"

Pin Mode

"





(

(





"








"















"


8

"










U
"








R
'

(

'


"




'

(








$

'








(







;



:










Q

9


(
(

"

"


:

PIN







(



"













>
7

&

&











/


8 que ya

Analo

}


"

p
w
g




"

p
o

x
x

k



q
q

"

v
s


p




s
w

v
s

n
o

q
(

x
l

j
(




n
o

x
k
t
p

pk


j

Value

x


s
z


k


y
o





u
s
w






"

s
z

x


"
x

(

j

x
y

n
o
o
ws


w




t

j


y
o

PIN 8


'

o
)

'







(
y

"
x

)


p

(
s




"


)

s
w


q

x


y
s





k


n
v
s
v

o
y

y


n

l

(


o
q

p
p

(


"

l
j
u

"


s
w
p




x
n


n
o

p
t


&

x
"
u

x
n
o

p
o

v
s

x




y
o

v
"

Input Pin

n
o


n
o

o
o

p


o
l


k


k

s
r
u



v

p
o


x






















%






termmetro.


!




'




"


9










9





(
"




)

"




"

)



"


"














Init
7

"

(

7


V





"





Analog Read Pin

"

"




"




;


"

"





/
+

0




"


/
"

O
.







"

G



(






"














"







"

.










(
(









"
"

e



"


'

"











"


/



















While loop

:




























"

'





'


)


"















"


"

:



'

"



(
9


"









!












c

)
















'


b



)

:



(



'





,




"





(




"

"

"





"

"


"




'





!















)



"


*


"

(




9

"

Analog

s
w

q
m

s
w

x
k
k

Por un lado ponemos el valor de comparacin 2.5 y por otro la seal


Mayor que 2.5
Menor que 2.5

l
no

v
u

s
w

x
k

x
o

v
s

u
s

x
j

s
w

s
w

s
n

j
j

l
v
s

w
q
w
u

y
o

y
o

y
o
w

p
k

k
q

w
n

v
s

v
x

x
j

y
o

s
w
j

n
o

s
w

s
w

p
q

n
o

s
l

r
w

p
o

y
j

w
x

v
s
x

o
q

x
p

y
o

n
q

x
m
s

t
x

j
w

o
z

x
k

s
w
j

x
u

While loop

v
k

z
p

y
v

x
p

o
q

y
k

s
w

s
w

y
o
n
o

k
x

p
s

v
s

v
s

ws

n
o

v
s

y
y

y
k

x
q

s
x

v
o
pk

o
p

l
w

p

y
o

n
o

l
x
l

p
o

x
x

s
l

n
k

v
s

x
v

m
o
w

x
x

y
s
w
z
s
w

y
s

p
j

s
w

Read pin

s
w

. Lo haremos configurando el numero de PIN 3 y mediante un


Valor analgico
Duty Cycle
Salida.

y
o

u
o

n
o

p
k

u
o

o
y

Close

u
o

s
w

k
p

p
o
j

x
x

p
z

x


y
o

y
s

k
y

v
s

v
o

y
o

y
s

s
z

n
o

j
l

s
z

v
s

y
o

l
j

v
s
v
s

x
q

s
w

n
o

s
w

o
z

p
s
o

p
s

u
r

y
s

o
y

n
o

n
o

o
w

y
s

n
o

o
y
o

n
o

n
o

y
s

o
o
x

p
o

s
z

s
w

v
s
q

s
z

ws

255),

u
o
v
o

s
z

s
w

o
y

t
x

p
o

y
o

x
l

p
s

y
o

k
n

Case

valor Digital

s
z

n
o
j
u
x

n
o

o
q

v
y

n
o

l
n
o
s

j
j

x
k
n

x
r

z
j

y
p

y
o

x
p

r
y
s

y
s

j
k

x
v
s
u

y
o

p
s

x
r

Set Digital Pin Mode

y
o

p
u

s
w

s
z

y
o

n
o

x
t

s
s

s
w

l
j

v
x

j
s

k
n

p
o

y
z
y
o

z
v

o
z

v
k

w
j

l
k

p
s

v
s

n
o

v
s
n
o

t
w

y
o

zo

s
w

n
o

k
j

s
z

n
o

o
p

s
w
v
s

s
w
p

x
v
o

z
k

While loop

x
l
y


q

x
p
s

o
k

n
o

j
v

n
o

n
v
t

y
x

x
m

s
z

u
p

q
o

v
o

v
o

n
o

z
u

o
j
t

y
k
n

n
j

y
s

o
z

x
y

z
o

s
q
o

n
r

x
x

y
o
o

s
w

y
o
y
s


v

x
x

p
j

y
y

x
p
x

x
x

s
y

s
w

n
o

p
s

n
o

p
k

Errores.

Cierre

y
s

n
o

Desconectar.

Structure

s
n

Read Pin

s
w

s
w

j
k

v
o

n
o
x

x
l

x
x

w
o

y
k

p
q

n

n
o

n
o

y
k

o
z

n
o

y
s
x

y
t
q

s
y

p
x

o
j

v
o

n
o
k

n
o

n
l

l
r

o
y
o

y
o

p
x

x
n

s
z

ps

y
o

p
x

o
j

u
s
x

x
j

True

p
o

s
w

Cierre

s
w

p

xk

p
o

q
q

r
p

no

k
x

q
o

n
o

Case Structure

incrementndose en 1.

k
n
x

u
z

v
l

x
k

p
s

False

v
o

p
s

u
o

n
o

n
o

p
o

s
w

x
k

u
o

o
j
y

x
k

y
o
l
y

p
o

p
o

y
p

u
x

p
r
k
l

v
o
q

l
w

x
p

x
x

j
j

x
w

j
p

s
w
o

p
k

p
x

x
k

n
l

n
o

no

s
w

o
v

n
o

v
s

v
s

s
w

n
o

p
o

s
z

Puesta a cero

s
z




o
w

v
s

u
o

k
v
s

j
k

o
q

v
s

u
s

y
o

x


o
u
w
z

n
o

y
j

o
p

Select

s
w

k
u

v
s


n
o

u
o

s
w

p
k

j
j

x
x

zs

v
s

wo

n
j

s
k

x
u

s
w

j
j


o

y
s

o
w

n
o

p
o

o
w

u
s

p
k

n
o

llevara el contador al valor 0




>










7

#


"


-




"
;




"

"











"








A
(



Salida Clock
que activa la entrada del bloque Arduino de salida digital Habilitada Salida

Reloj.

Add Shift

"


"





(

"


$

Digital Write Pin





"


'




"










&





"


\


"

Tiempo

Shift Regist r


:





"

"

#















)

S


B


"



@



6

While Loop



(


&

(












9







"


B



"

(



"






L

"



Register

(
+

K






(




"


#







"
,

(



(





"

"


"




"


(

(















8


Digital Write Pin


oscilador

'





"


e

0
"

'



"




"

.




"








"
"

"


"

"




"








"










"

7

7
"







"
(


$

(


"

"











(






"










7







0


;




"

"

"


"





+





(

;



.






"




*



9








"
















"


"

"




(












(
"




"





"


'



"






"

"




"

"

"








"


(





"





(

"








"

'













%




(



"









(




*


<


8

While loop

"




B


"

E




%

"







:








"

"






L
D
8

'

Set Digital

)












7



!
"

9
;




"


+



;


"

Init.





+










"





(









%

















(





"



"

"




Parar.







9





!






















"


"


(


"

(








;

"












"

"

J


K
(

"


:


"




"






"
(

(








"







7


"




"













(

















"

@
!

;





"


(

'


"

"

"




"







(



(


"



"




"





)


"


"

<

'







(





"




<







Pin Mode







"




5
V

"





%













"




"

)



"


9




9


"



"




!



"

"

"

/
0

"




"

!



"



/

[



D
&


E


+

"



"







"












de tipo TRUE/FALSE por eso debemos convertirlas al tipo de seal admisible por los
Digital Write Pin




"

"

"

L
(

"

(


"






"

>

Simple Error

"

"









<


7




'


Close

'

"


(

:





"

B





"

(


"

(
'





g
:





"

"

"








"

D
=

Case

"

"








"




"

<

7


"







"

"


(

















(





"

"







"




"

como estado de inicio en la secuencia de ejecucin el Rojo

Structure que en nuestro caso le aadiremos hasta tres casos o est




'

"

"




'

"

&

(
1

<

"

"





h

'

"

&

<

mbar y que la secuencia ser: Rojo (FALSE), mbar

Rojo y que la secuencia ser: Rojo (FALSE), mbar (T

Verde y que la secuencia ser: Rojo (TRUE), mbar (FALSE)

"

<

&




Case








T. Rojo T. Ambar T. Verde.







"




"













"




(
(

(







"

"

"

"


+

"











@






)


"

"








"


(

(













"














"


;





"

"

"




"

"











"

"

9








7








"


c









"







"



























(






"










"




"

"


(


(




"

9
-





"



;
(

'



;
"

(





"








"





"

"


"


(

"












'

*


&

&

Structure


(





"

)







"

\
(




"

(


"







(





"




'




"

(


"
"

'





"







)


"

"


(
:

"

B


g


"




"




"

(


"







"
(

"

"


Slide


9










"




While Loop

"


'




"
"

>





O







)









.

(




"

)


"

"

(






"

(















9







"
-

Init








)


"




'








(






"




"

"





"


'


"

"



















"

PWM Write Pin

cuasi salida analgica. Estos pines para Arduino UNO son (Pines digitales 3,5,6,9,10




"




























"


]

"



(







&

,
:








"

)



"










"

"









"

"




"










"


)








"

"

"

"

#




&








(

(
8


7


(



&



'

(






:

"

(


\
(





"

M


"




'



(





(





"


(


7
"






=




"

"












Estado salida




#





"


"

"




"

)
(


:
9

"

"
(




'


Select Digital Pun Mode


Digital Write Pin
Digital Pin







(











(



'







"

(















"










)

#


"


(


:


>

)







E


"




7





"

"

"

(



"









(




"














(
7























"



(

"





'

"








(










"

"




(









#


"


(

'
"

>




"


"






"


(


"

"






(




"



(


(


"








(


B



"

"

(



"


"




Seleccin de PIN

"


)

+





'



"







Digital Write Pin


Activa/Desavctiva

"

"


'

&

"

"





"

'









(





"

"

(


"



















*



8


"










Digital Write







"





"

Lectura Canales Digitales




(
(

"







"
'


'










"




"










"

"









"

"







"

"

"

7
h









"

"

"


A











(




7

"





)

"


*
;

"



Port
que hemos etiquetado como Datos a escribir



"






'


'






Analog Read Port




&












+




(























(









"







"








"

"

"

"






"


;

'

(





"





+







7














)


(

-

(













"

"









"

















(




"








(




"




"

'

(




















Digital Write Port





"




#
)

'

(





"




7






(





(






"

"







(






"





"

"

de inicializar arduino con el bloque Init, dentro del bucle de control

(


Digital ReadPort Analog Read Port

(
Y

)


(


:


"
"








A

"

7


(







9
;



"




(



(
9

(




"

"





"

"





"

















"







"

:
-

'








"


+







>

"




:
E












"



9

>

















7
-







"


:






"

'




"


)




8


"




<








"

:



&




7






,





"

"
"














$

*
"


%







"
(




"

)
















"










"






(

"







(
(




(
$






















Y



#





'
"

"

"

9

(
-




"


*


L
D


&



"



(





"




f





"















"

(








(


'








"












(

"



Y

E



<




#



A








C







"




!


M





*









'




"






)












(








"

"

,










"





7







"







'

;





"




"


"



@


















(


)



"




"










(
:



(




"
"







,












"








+







"







+












"


"




c




"


"

"





(
"

"

"

"









(





"




*
*


"





(


)


7




(




(

9

"


Y





"











"


-


)

'






(


'







"





"




(




'




bloque Init

"

!





"

(


"

(


@












"

'






'




'


9









(

"












"







9













"



"


"








(




























"



"

"

"


9

*


"

:



'
"


"


















"
E




'

'

<



D
8





E

"

"










(


"



"




"
















"







Servo

"




"

"

"

"

Servo 1

"

Servo




'













"












"
(


"

:
9
;


)

;
"

"


:




"

(





'




(


"

"


)



(







"


'











"

"












"

"

Servo Read Angle

'













'

















-

'

"
















"







"

"




'


!

Write Angle
Angulo







-

'

"

"

'


"

'

&




Servo 0

Servo Read Angle


Angle (Degrees)

(
"

"

Angle




Write Angle mediante un control el Angulo a girar en grados




"

'

7





'

"












7


'

(







h

'

"




"

:







)


(





)
"

"


;

8
"

"

+
'











"

"




'




!




(
















)




"


!





)





!























"




7



"
















"

'

(


(
"




7




'










-



Configure Servo














'

'

















Numero de servos




"







'

)



"

'

Set Numbers of servos

Para empezar, una vez que hemos colocado el bloque de funcin Init se procede a

"




"




'



'




"





+







"

"


(


;




"





"




'





-

(


"






"






;

"




'








%






7








"
7


(


(







'


"

)


















Digital

(





"













>











*





"

>

L
"


:

"


)




"



)


Init

"





-

*
:







(

(
^

"




"

&

0









Digital Write Pin.

Set Digital PIN Mode







"

"

"

"








"

"




















"












'




>


:





"

%


;


"


;



"

"










"


"

"

>




9











0









"

;

(


'

.


"




"





W


"

"

'







0
-

:
:












"

"


9


Pin




>


.




1


"


0



"







/



Q


&

&

(
:

"













"




"






Temperatura instantnea
Evolucin de la



"



(
B





:


9
(

7








"




'

"




"



"
"








b

'


(

"

"





"

"




(










:




'




(




"

'

Botn

"




"




"





"










"

"

"

"

"





9











M


(








"




"



"

"

"











h


]









8





"

"

"




(













"




"


"














;




"





(







'









7

"

"

"




"





%


"

"









'
"
"

"

Detener

Chart
temperatura en intervalos de tiempos

Knob

(traducido y adaptado del original Electronique Innovate)


"







Simple Error Handler

"

"

Close




"













4







I





5




"

"







9


instantnea



(




"

Slide




"

"

"




7


"


)





"




"


)

"










'









(

(


"

'


)


(













"





Y





"

Intervalo de medida en s

(










:


"

"

















"


9


'





&

&


"

(






;


"

%






:




"
7


"



(


"







"
(




"

"

F
'


F




"





"


(


"







"
>

"

"





f

"
"

(



#
C


*




)










;


;





"

"




(



"

"









(
"





(

"






<




C




(









"

<

;



(



"






"

"


)





"

"




(





"
7

(





;





"

"

&


"










g
+

"


"

*


(



X

"

"












"


,



"




















!


Y





]



"


"

F


"




F

=


"

<


(


A
9

<

g
+














"



"

"




'

"













h



)

"

"


&

&


+







"


M

"
(





(




(


"





"








(











"






h

"












9


"





(




M
(

(








"



0








+
"

"


"
'

"

"

"

(


"





!

!

(







0


"

(
(

"

"




"

"




y adaptado del original Electronique Innovate)

"




"





+







"

B



(



:

'




'







M


^


%


9


-




"

"



"


7

"




&

&

+








Y

C

'



.


"
-




"







"







]





&

"
"




"

&









'





E

"




"





M






"

(
$







(
=

)
W

>
+







(
#

C
"


(


"






!

"

&

&
>

#
(




+


'

"



C

0






7


(


]

F


"


/
M

)







(


=







[


(
7

"

E


&











"

"

"


C


"

'

"




>



"

(















E





>












"

"


(

E
(





(





(


"


&
D

"

;




(

'

"




&




(




"


'




"

"




"




9


'

"


"

"

"


"


M



"

"

"

"

"














L
"

&


C

'



















"
J




"







:







'

&





-

"

"


(



d




^



$


#

(
(

0

#

.
0

"


L


.


E


7


"

W





d
/

"




$
"

)

0

"
0

.
0






"


(

(
.


"




True

"

"




















"
(

)



'


J
h

>

>

J
h

>

>


>




7

















"
(




"
"

)



f
9

'
(



-







Case Estructure

En el segundo caso False

"

Velocidad y sentido de giro

<



%

"










:

(


"




"

"







(

)


"


,

"






"




A








"
"

"





>


(
(







E




"





"



















"

7



-


;

#


&

"






+

(

















L










(




"








(

"







"




<

"

#










"

(


"
"


"

&

"








(


)


"

:








(










(






Y


"

)


9


)















"

"

'








"


)

&


(



M










"

"

"




,












&


a








9




>



c











"

<




"

"

"

&

"
9




F




E




L

"

"

"

C






"





9





>




"
5

"








"




<









h

;


"

h







"










"




'





(

"
"
F




'
;




'



"

"









"

%



9



"



















"




"

*






"




"

(
]

7








(traducido del original Electronique Innovate)


b

*
'


(






(


8






;











F


"
"











"

"




"

"

"

"











"







*












)



)


M




"




"






A


"

7
(













"




"


F

"

"
*


(








"



;

"

"

"

"

&




"







h


C







"
C


7

"

"

;



"

"

"

"


"


"

"

(


"




]


'

"

"

"

"

"

"


9

"

"



C


"


"


"

"




+



"

"







%
*


-

8
,

"




"







"

*



8
(




(




"




@






"




"


]
"

]
,




"

"

"

"

"

"

"


(

"

"

"




"

"

"

"

"

"

"




&


"

"

"

"

"

"

"

"

,



"











"


+





'




D
8

&

&







"

"




"

"








"

"

"









"

'

"

&

&

N
g

(




"

"






(


"


"













+




"




"

La conmutacin de la estructura Case Structure se realiza mediante


Greater or Equal To 0

Se han colocado dos indicadores de giro Derecha e Izquierda para saber en que











"

'





"






"






'














>




7







"



















'

(


"












"









"

>

'





'

"

&

"

+


_










"







"


B

&

;





(

"

"




]


"


:




"

<




(


"

"

%



:







(



"




7









"




E











"




"






"



(




(







Y

(


(












D

"









"






"


)





"




"


(






"

'
)




"





"

(
:







&




"


)


,







"








,





(


















%


"



]

(
"




"

'


Z

;
(

"




>

*


'




*



)


(
,













&

"




"

"


(
,

"



"

"

+
(


"

'

"




(





"

"




>

!



*
[

9


X
]

"

8


'




<

<

&


(


:

"

&

&








'


(
%





>

"






[


"






>






[



9

"


A


"




"




'




:














(


)





"







(
(
F








"













"






+
"



C


(


D




"

+
]

(

"


Y





1









@

'

:
(

"


,

(
+


L












3
8


-




7
















8




h




A


<

'




"










"




"



:






"






:

B
]





$

"

"








&

"








,


<


"
"












+

"












"




"


:



D




"


#

"

9
Y





=






(
%

E


"






"


;


B


"









"









&




"



















"

<


"
'

"







"

(
:


"


'










)


)



C
,






'







:











(






"


"

"







"
;


&


A

"









2
"

"

"




"



%

(


(




>




"





(



2


'






%


"

"

"



"
















h



Y





L


*
L

"

#



9

'








'







"





"

'

;


"

"


"

'

"





"


"







"







"




&

"

@


1


"

,





D








F








Y

(



"













)


"

X
-


"








X




"

"











1



"


h

"





<


'

"

'
<


h




&

"

*


]



"

"

"
+

"

:

(













"

"





"



"







(









(







:








"








E

"




"






=






"




>




C



(
D





;




]
"




"

E
"

"

"









,
-

(


F


L


!

h
:

"


"




C
]










"

"


h

"




,




h
;

"

"

(
8

"

@


h

"


C









#
f

(

"

"

"


A







*

"

"







'

"

"

"









*

"
"

(
"

"






]


@






"
*


L

&

&


(
:

'


(

"

(
'

'

(


1


"

#
!




"


(

Q
x

G








9
`
S

<

"

B





+

P
|

9
G

<

S
Q



S
D

L
S

"

P
U

>

Q
L

6


}
Q

"

S
x

<

9
b

d


:
U

W


>


V
9

<

NU
Z

S
9
X

B
Q

B
S

:
"

Q
X
M
`

N
|

"

O
P

V
x

N
X

>

S
9

S
`

W
X

P
S
G
9

V
9

<

B
:
N

U
V

<

Y
<

Q
NU

V
`
:

P
G

"

9
M

:
S

N
U
N
X




O
<




j
S

;
9

M
P

_
v
T

O
N
V
9
9

<



Z
9
9

V
S

<

:
9
9

J
O

"

Q
[

:
9

9
U

Y
P

6
9

P
G

9
9

W
9

G
M

r
l

N
N
U
P

S
6

Q
`

M
H

U
O

<

6
W

"

X
G
9

G
U

V
G
9

V
U

S
l
O

Z
9

N
T
9
~

<

<

"

U
S
9
Q

<

<

[
6
9

6
j

N
G

w
U

J
S

M
S

"

6
P

J
V

~


i
U
S

6
M

i
:

x
^
W

<

X
r

;
&

E
t

<

U
X

l
J

U
:
P

:
Q
c
J

I
m

C
S

P
r

m
l

Y


S
(

r
r
l

9
9

W
F

r
U

:
:

P
9

m
V

<

Z
U

9
6

J


:
h

9
l

V
K

r
O

<




"

<

G
=

N
9

?
:
T

P
l

<
S

:
Y

y
w

S
Q

G
9

W
G

l
O
T

U
N

s
P

L
J


"

9
F

U
S

Q
E

?
@

A
G

G
=

9
O

G
R

H
S

N
S

>

N
V

Z
O

J
n

P
<

X
C

P
S

A
l

S
Q
(

O
8

r
r
l

a
E

N
9

J
X

?
9

"

<

>

P
:

M
A

9
F

;
Z

P
9

>

G
9

N
:

P
9

v
c

Q
M

V
P




9
S

G
r
:
P

=


O
P

L
g

9
]

r
V
S

O
P

[
Q
Q

T
8

P
S

N
g

P
Q

<

V
m

Q
Z

Q
M

V
U
V

:


"

M
9

S
Q

9
C

m
d

G
O

S
U

U
9

G
N
9

<

G
Q

<

O
O
9

9
M
Q

U
M

6
P

^
9

M
V

G
P

Q
9

'

V
6

{
N

9


C
Q

S
Q

<

N
k

<
E

`
G

U
@
X

`
6

O
Z

<



k
6

<
7

7
`
6

6
T

9
U

h
k

E
6


+

5


"


h



#

&







<

A
C
"

"

<

(


h
"

"

,










"











*


"



"

]
<

(
"

h


h


'
+

"




M


'

]


<




















A




)




"

"












"

"

"

(




(


9





(




"

"





"




E



(traducido del original Electronique Innovate)






"


"




"




<




"


"


$




(





"

'




A

"

M









(







&








&
h





"

&


M












A


"








C




"


M
















"




>





#
"



<


+






E

"




:








9

"
(




:

;





"










"











(







'








"



"








"




"
"






%


"




"
<






"


"


>

>

'

&




(





7
(


E

"


"

<







"








(

"













"







(






(


"


"













"





$


1




;

7


"



:




"











"







-







7









1


(


A






#







"

"








(




(








"

:


1



"

1





"

"








"

'















-

"







3


"

(



9


(

+
f



"






:



)
\
A




9


"

&








"

(





"



Z




h
L


A
;

"













"

&










(


:






"






@

"

"






g









+

"






&







"





'

"


E

<




(
<








"

"







"


A


;

8







"





&







"







"


"





E

"




<





(


[







(








"
"


\




&


:






&

"

"








-


\





(
A

"






D




\

&

"




"





1


'

8
(

"

D


D


7





"





"

+
>


8






!








"







;








<

"

"




(


"

:
"








Y



:
(

"

"





9

1
"

"






(
-





f

















"

&


(





;


<

%






"
(






2


(
X


#








A
D




"

"









:



"


E


7


"

"


<



(

"







"




)

'

:










(


(







(




&






(


"


A

(



A











"



<





(
-

"













(


<

"



E


D


"





h








)





h


(






+






"




"




"






"







+






"




'

"

"







8
=

B


"

E



#


)




&


M

(
#














'



D




1

"

"

+
(












*






'



D





E


'







"

=



[

7









)










"









%


)














(
"


"


(

"








(

"








"









"





"





7




"

"
7

1






"





<

"






(

"

!
(



"

"




"










9
"





(





"
!
(

"





&

(









!

(








D




"
-

(
(

"

"




"

)





"























"


"




"

'


"





"


@



"

"

"




Y








A





"



-


:






)



+



"

'



A

'


















"








1



:







8


"
"

"



'


E



"





(
D



(





(








A





"








1
(

:



7


"
)




A
(










)





"



"

&

"




"


(


(

'




"








"









"
<




(



E




'

Para salir del bucle de ejecucin While Loop se utiliza un botn Stop
Status

"

"

"




"





"

"







"
-



$
;

"


7







En el bucle del programa (dentro de la recinto While Loop


Analog Read Pin
que de Seleccin de Entrada Analgica








"


+

"






"







"







)
;

"







"














"





"







"

'


(




"

'




"




)


[















'


'






"



:



(













0











4










"

'




'

"




7






(
\

(


Voltage

Seleccin de Entrada Analgica










"

"

'

"








"

'



(





(



























"




2


"






"

"

'

(









"




(




"

"


"




f


<

&

"

"
,

&







'

Una vez dentro del bucle lo que debemos hacer es crear la seal Color bloque RGB
To Color
BlinkM GoToRGB



"







<

&




"

"

'


>

'







"

"















"










"




"




"















Close Error


+





"

"

"

'

"




"

"

"

BlinkM Init

el puerto es decir autodetectar la conexin, lo cual ayuda a la configuracion de la




"

"

"

"

"

"

&







"



"










de la librera que LIFA incopora para ello Librera BlinkM .




7






"

"











"




"







colocado en el SubVI Init pulsando dos veces sobre el bloque se muestra la venta

modulo Init en este caso no










'











"












"


"

'








"







"





(








'





(


'
(





(


"








"

"













"

(



"




B





Frecuencia de Muestreo (Hz)

"







"

"





















"

"

9








"





"











"






"

"




"













'


"











"





'

a


'





"


[


adquisition

"




Frecuencia de Muestreo (Hz)

"

Pin Entrada Analogica













"





+

;


"




"




'

"




7


L

(


"










'

'


'







'

"

Stop




grafica Waveform Charts

Dentro del bucle se colocara la funcin Continuous Adquisition Sample que es la que

Continuous

"

"










"


'

"




"







"

)


(


"

'








-



"











"

"








(




"

(





ue tipo While Loop dado

El ncleo de nuestra programa ser el bloque Get Finite Analog Sample que realiza

)



+




:



)

7





















"


"

"







(



7




(



"

"


"




)









"








"

'




'





:








h




"

h


"










+





"

"


"




"






(
;







"


(









\


&


'

Photcell Pin

"

:


"






"


(

"

(








;




"







A








"

"




'



-





9



"





"













"

"

Phocell Read






'

#









'

















!


(






"




"


"

"

+


a

@










*


"

&

&




En la figura siguiente se muestra el aspecto de la ventana Panel en modo ejecucin

En este montaje la salida del bucle se ha colocado mediante un botn Stop y tambin
ento de error

"










"

(



(

&

"









F
+

"

7


olor

"




"


C



4






RGB LED configure RGB

)

"




"


<









"

"

"




"

"

'

"

"

"





"



'





"

"











"








(

"














"

(



<




El Bloque RGB LED Configure permite designar los pines por dinde sacaremos el

&

"

(









"

"




'




"




RGB

"

"



















"












'



>




(
-



E






Color

>





RGB LED Pins

'








"

"









"

"

&




(


'


%






"

%


(


)





(

(


"







-

RGB LED Write

"

"









"







"







"




(





9











(
;

"













"


)









(




"








"









:

(


Color


"





(








F

"

'






;



(

"


-







"





)








'

'


(






A

>

&



to Color



(


(

"

"




#




(


"




"



A




#





"






"


(


'








"

'






"

Init














)




"



(

"

"




:













"




















(


"




'





>





analgica (temperatura) ledo la mostraremos con una barra


;

"

"

F



"

5
+









'

"

"

"


'


(



















%



"


"




'




"


"





"

(
9

"










A




"




"




"

*






"






"

"















"



-











"

Thermistor Read



"









"

"




"




"

'


"





<
Z
D




'








"


;



"




"

"













"



'


"

a


'




&

<




"




&

&

de color

"




"

"

(


"




"

























)


:









(


"




"




"

'




"




"

RGB Color

RGB LED Write

"

)



RGB Color

a un bloque convertidor
Value to Angle que convierte los valores x e y en un valor angulo
Angle Mag to RGB

RGB LED Write

Thumbdtick Read

"




(





"
-

"














7

"

"

(





"

"







'





"







'


)







"





;

"







"

"

"







'

"


7

(


"
'

"




Color

Thumbdtick Read

"

9


"

"










"





(



&

"







&

"

:


RGB LED Write








(



:




"

Init
RGB LED Configure

"

"




















"


(




Z

"


"

"


(





&

"

7


7

(
(

)


"





<










5
K

"

A
"




'




"

Z





!

7



+









:




(


(


:


(

J
(



"


7









J








!









7

&


"

>





"

E





"











7




L



"






8







)




&

+











"





.




(




"

9


1


"

"

"





"

"

"
2




"




&







&

&

"




&


h

;
h

"
]


%




(






+





"

"

"

(
"
(

"



7




(
"


)


"














"






"




"

7


"





7



7


)



'

!

















"




"

(


)


"


*


#


"





"




C


"



(




Z






7

"




Z







(




7






&



"

"


&


7



@










(






"





)




'





"


"

"
















'


"

"










"

'

'

"






"

"



9

"




"

"











"





"

&




"











"




"




"

#


(


!
:

"

"









(




;

(


"

"








>










'




"

"





















7













(

"

Tone

"




7




:



"

"

'

"
$

"













'

"

)






$
(

"

Tone


























(


"




"

<


c

<

;



(





"







+





&














9

"

"

(













(

)



7


+

;
:

>




8


"




"




"



"










;
"





(

"









)





"








(










"




'



B






"





(
"










"








(





"








'


+



'




"

"

"


"




'







#


"

:
)











"

"


>


(













"

!








"






]



,

"

D





E
F

E
"

<

(



,





M
X

&







8


"




X








(












"


$


#

"

"

"





!
)


(
A




"

*


"



:




"



(






"

"




"


(




"

"

;




(











A
<

(


!



&







"

9






"
A

"


,

:
"

&


[



















"



"
(





h


"



"

[

D

Y
=

&

*



(


%

7
Y








>
'
D

"


X


[







"


(







(




:


E


"


<





)




A





+





"

"




)
]






"





+




"


&

"

"







"
;

"



M

"

















X
"

















*










<




"

"

"
L

<




"

"








"

"

"


(

&




<


(


:



-




&

:



"


"





(



;




"

&








"




"

A


"









"



:
"


,







]



"


"










"


"






(

"
h






















"

7
]

"


9


"




)











\

(

)


,





'







&


X





"


8









(





"








E
)







"
(



<


'

,


'


"


"

)


<

"





9

(
:





)






"


"

:










&


<





"
"

,


"



&

"










"




M
!



"











&


(


)



(




[
)






E








(


>





7








Y


)










"










(

'



7

(





X
8



(



"








9
(








"





F

"

<

(


"


E


'

"

:


<




"

!


"





(





&





'







&

"



















Y

"

(


(


"


,


D


Y

"




'

"


)







9

&





"








"





"




"





'


Y




+


%






8





"

'


C




E
]


(


"

7





(
<

"

"

(








\
"





"

"







"

E

%


<

!


&

>

&







"







'

(


"











)
>
L

"

&

"

(
;

>







"

(






A
















"

"

'





error out

"

"

"








"

Arduino Resorce




"

(


5
R





"

"
"







"

"




"





"







/



"










;





6

"

"




"


O

&

"

v
s

l
k

s
w

p
s

n
o

u
u

l
q

i
p

s
w

no

v
s

o
x

p
s

l
y
o

ws

o
l

n
o

p
z

l
q

o
p
p

x
n
p

s
w

s
z

k
s
z

v
s

w
j

x


y
o

l
u
k

j
p
q

w
v

v
u

j
u

l
q

ws




(


"







en su salida Value.




"

"



!






&

+



1




'




&





1




(
K


5

(
2

1


7

/


5




'


1

'


'

J
L

mediante el parmetro Digital I/O y saca el

'

"

(


"




'


'

Funciones low level

>










&
+

f
1




I


(
(




5
6


)
1

'

)












(


"




>

'

"

'


'




7



"

>

"

'





"

"

(


"



"

8




(





O
U




.
5

'


&

"

>


J
(

E
.

2


0

4




g
/

5
7

X
"

.
d


X



"


"




'


T


(



un valor digital (0 o 1) Value, en el Pin indicado




"






7





"

"

"




>








)

"




'


'

"




"

"

















"

"

8



&

"



L

6
U
8

6
+

5


"


2




1


J
9

Digital Port

en Digital I/O Pin




"

"

)


"




4
(








"

"

>

"

'

"




"

"







"

5



"













(





(
"




(


"

"










(



(








&




J


"

5



"


'

"


1







"

"

(


I
1


(




(


"

"
1

"

"












"





5






"

"


;


2

'

(
'











>
'

"




"
"



:


"

"

"












(







>
"





$




"





'

"

:
"

)


"



'





+






'

"

"
"





-



"








(
'




"




"

)
(

"




"


'





(






"

"


(





"


(






"







9


"






(




(


"
"


(

:

K
'

U





"

(


"








$






"





1

"

'











'




"

"









"

'

"








"


"







"





h




:












'






"








"

'


;


"








(




"

)





7




%







;


"







"




'


"



I

'

(


"




"




J
"


I




;



"

"












"


Q

I
2


T








"




>




Z


"











"
"

9
'


"



)

"







"


"


(

'








"

5


"

'

(
/

,
1

'


"

%


'


+

&


5





"

"




J
T

"

"

"


















'

"






"

:



"

&




(


"




"

















"





"

7


"
"










'




"

&











"

"


J

(



"

5






5


$

5
K

5
K

5
K

5
K

I
K


7




"

(



+

"
















"

(





E
f




"

'




5
K



(





"

"







5
K

U



5
K





"




"




5
K


A




5
K




5


J

"
I




5
K




-


J


1






5

"
2


T

'

You might also like