Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
int
pinMotor
=
3
;
int
PinPotenci
=
A0
;
int
valorPoten
;
void
setup
(
)
{
pinMode
(
pinMotor
,
OUTPUT
)
;
Serial.
begin
(
9600
)
;
}
void
loop
(
)
{
valorPoten
=
analogRead
(
PinPotenc
)
/
4
;
analogWrite
(
pinMotor
,
valorPoten
)
;
Serial.
println
(
valorPoten
)
;
}