Im trying to hook up 2 channel R/C control system to pic16f84.
How do i came out the programm to input the signal from the receiver to PIC?
Do i use the Pulsin for this, need help, thanks?
Im trying to hook up 2 channel R/C control system to pic16f84.
How do i came out the programm to input the signal from the receiver to PIC?
Do i use the Pulsin for this, need help, thanks?
I've successfully used Pulsin to count the servo pulses out of a receiver and then displayed on an LCD to show the servo movement. So I can say that this will work.
This thread has good example of the bar graph http://www.picbasic.co.uk/forum/showthread.php?t=2359
Squib
Is it possible if u could send me the sample code of using Pulsin with the input from the receiver.
I dont have an LCD to determine the value of the pulses coming through the receiver.
[email protected]
really appriciate it.
Rohaimi
Or...Or...Or...and I'm just going out on a limb here...You could read that other thread, forget the fact that you don't have an LCD and just ignore it, maybe even do something crazy like comment out anything to do with the LCD, write some code and do what you're going to do with the code, which you haven't said what your end result will be...But that's just me going out on a limb, ya know, trying something out for the first time...'cause that's just too funny...
Hi, Tech ( I do adore the joke ! )
The good thing would be to know WHAT you want to do with the Rx decoded outputs ...
cause channels capture code will depend upon that ...
Alain
I think a search in these columns with "PULSIN" K.W. could give you lots of relevant hits ...subject is not "brand new" ... Lol !
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
----------------------------------
result1 var word
result2 var word
radio:
pulsin PORTB.0,1,result1
pulsin PORTB.1,1,result2
if result1 < 600 then forward1
if result1 > 900 then reverse1
if result2 < 600 then ccw
if result2 > 900 then cc
goto radio
-------------------------------
Very sorry bout the previous post, just out it a side then.
I've been trying the pulsin . Two channel go directly to the input.
if result1 < 600 then forward1
i.ve used this based on my previous school project using basic stamp. It was not programm by me. Did the order of programm goes in this way?
comment appreciated.
Bookmarks