background image

UCPIC-7

www.cebekit.com

    -    [email protected]

:main:
potenciometro:
readadc 4, b0
if b0<120 then motor_off
if b0>120 then motor_on
motor_off:
low 2
low 0
low 1
goto potenciometro
motor_on:
high 2
low 0
high 1
goto potenciometro

PRACTICE 5

Put switch S4 in position to load the program record, finishing work put position.

In this program we read the potentiometer with readadc 4. if the value is less than 100 the motor rotates in one 
direction, if the value is between 100 and 150 the motor is stopped if it exceeds 150 the motor rotates in reverse

Mettez l'interrupteur S4 en position pour charger l'enregistrement du programme, la finition position de travail de vente.

Dans ce programme, nous lisons le potentiomètre avec readadc 4. si la valeur est inférieure à 100, le moteur tourne 
dans un sens, si la valeur est comprise entre 100 et 150, le moteur est arrêté si elle dépasse 150, le moteur tourne en 
sens inverse

Poner conmutador S4 en posición grabar para cargar el programa, al terminar poner posición trabajo .

En este programa leemos el potenciómetro con readadc 4 . si el valor es inferior a 100 el motor gira en un sentido , si el 
valor esta entre 100 y 150 el motor esta parado  si es superior a 150 el motor gira en sentido inverso

main:
potenciometro:
readadc 4, b0
if b0<100 then motor_izq
if b0>100 and b0<150 then motor_off
if b0>150 then motor_der
motor_off:
low 2
low 0
low 1
goto potenciometro
motor_izq:
high 2
high 0
low 1
goto potenciometro
motor_der:
high 2
low 0
high 1
goto potenciometro

Summary of Contents for UCPIC-7

Page 1: ...Il intègre micro PICAXE 08M2 analogique potentiomètre d entrée indicateur de puissance LED sortie L293D du moteur fusible de protection du moteur connecteur l enregistrement Important La puissance du moteur a pas de protection de court circuit elle est protégée par un fusible de 1 Amp Les explications de ce manuel seront développés pour mener à bien les pratiques avec le soi disant Picaxe 08M2 Ces...

Page 2: ...ail NOTE PIN maximum 4 Tension admissible 5V DC Pin0 Tiene función 0 1 para configurar sentido de giro del motor Pin1 Tiene función 1 0 para configurar sentido de giro del motor Pin2 Tiene la función de motor Utiliza la instrucción pwmout para regular velocidad motor Pin4 Tiene la función de potenciómetro Para leer su valor utilizaremos la instrucción readadc 4 variable donde guardaremos el valor ...

Page 3: ...w 0 pause 1000 low 2 pause 1000 goto main PRACTICE 2 Put switch S4 in position to load the program record finishing work put position In this program we read readadc 4 the potentiometer and generate a time warp which activate and stop the engine as 0 or 1 the value of PIN 2 Mettez l interrupteur S4 en position pour charger l enregistrement du programme la finition position de travail de vente Dans...

Page 4: ...a leemos con readadc 4 el potenciómetro y generamos un bucle de tiempo que hará girar el motor en un sentido u otro según sea 0 o 1 el valor de los PIN 0 y PIN 1 main high 2 readadc 4 b0 for b1 0 to b0 high 0 low 1 pause 1000 next b1 readadc 4 b0 for b1 0 to b0 high 1 low 0 pause 1000 next b1 goto main PRACTICE 4 Put switch S4 in position to load the program record finishing work put position In t...

Page 5: ...travail de vente Dans ce programme nous lisons le potentiomètre avec readadc 4 si la valeur est inférieure à 100 le moteur tourne dans un sens si la valeur est comprise entre 100 et 150 le moteur est arrêté si elle dépasse 150 le moteur tourne en sens inverse Poner conmutador S4 en posición grabar para cargar el programa al terminar poner posición trabajo En este programa leemos el potenciómetro c...

Page 6: ...e à gauche 4 marge pour réduire le chômage décrire les autres constantes et faire la boucle où le moteur ne tourne pas d un côté à l autre comme nous nous indiquons avec le potentiomètre Poner conmutador S4 en posición grabar para cargar el programa al terminar poner posición trabajo En este programa leemos el el potenciómetro con readadc 4 Definimos los valores del potenciómetro que hará que el m...

Page 7: ... salida motor no dispone protección cortocircuito esta protegido con un fusible de 1 Ap SW1 External Potentiometer SW2 REC WORK The power Motor UCPIC 7 and inputs are independent JP 1 common motor power inserted UCPIC 7 Le moteur de puissance UCPIC 7 et les entrées sont indépendantes JP 1 puissance de moteur commun inséré UCPIC 7 Las entradas alimentación UCPIC 7 y motor son independientes Con JP ...

Page 8: ...move or insert the picaxe with the power on irreparably damage it Important Ne jamais retirer ou insérer le picaxe sous tension endommager de façon Irréparable Importante Nunca extraiga o inserte el picaxe con la alimentación conectada lo dañaría irreparablemente ...

Reviews: