Lliam20789
New Member
A quick question:
To control a servo;
When I use the PICAXE terminal program to send data to a PICAXE chip (08M) Receiving with:
serin 3,N2400,b1
I can only receive the first number...
So "213", returns "2"
The next step I took was:
serin 3,N2400,b1,b2,b3
This did receive a three digit number, slightly unreliably, but then how can I drive a servo with the data in 3 separate bits?
Help with either the serial input or combining 3 bits would be much appreciated.
Code:
Main:
serin 3,N2400,b1
serout 0,N2400, ("recieved ",b1,cr,lf)
servo 4,b1
pause 10
A quick question:
To control a servo;
When I use the PICAXE terminal program to send data to a PICAXE chip (08M) Receiving with:
serin 3,N2400,b1
I can only receive the first number...
So "213", returns "2"
The next step I took was:
serin 3,N2400,b1,b2,b3
This did receive a three digit number, slightly unreliably, but then how can I drive a servo with the data in 3 separate bits?
Help with either the serial input or combining 3 bits would be much appreciated.
<code><pre><font size=2 face='Courier'>
Main:
serin 3,N2400,b1
serout 0,N2400, ("recieved ",b1,cr,lf)
servo 4,b1
goto main
</font></pre></code>
Thanks,
Lliam.
To control a servo;
When I use the PICAXE terminal program to send data to a PICAXE chip (08M) Receiving with:
serin 3,N2400,b1
I can only receive the first number...
So "213", returns "2"
The next step I took was:
serin 3,N2400,b1,b2,b3
This did receive a three digit number, slightly unreliably, but then how can I drive a servo with the data in 3 separate bits?
Help with either the serial input or combining 3 bits would be much appreciated.
Code:
Main:
serin 3,N2400,b1
serout 0,N2400, ("recieved ",b1,cr,lf)
servo 4,b1
pause 10
A quick question:
To control a servo;
When I use the PICAXE terminal program to send data to a PICAXE chip (08M) Receiving with:
serin 3,N2400,b1
I can only receive the first number...
So "213", returns "2"
The next step I took was:
serin 3,N2400,b1,b2,b3
This did receive a three digit number, slightly unreliably, but then how can I drive a servo with the data in 3 separate bits?
Help with either the serial input or combining 3 bits would be much appreciated.
<code><pre><font size=2 face='Courier'>
Main:
serin 3,N2400,b1
serout 0,N2400, ("recieved ",b1,cr,lf)
servo 4,b1
goto main
</font></pre></code>
Thanks,
Lliam.