Also, for my two 16F pics (not decoder/encoder, Tx/rx) I was wondering if I could make subroutines in the code that simplify the wireless communication part. Maybe have it do something like this (in English not in basic) .
-------16F in remote controller-----
if porta.0 button is pressed (signifies forward) then goto send_forward
send_forward:
serout the letter "f"
------16F in car------
serin "letter (can be F, B, L, R, and combinations of letters)
if letter = F then goto foward
foward:
PWM on two back motors using hardware PWM
...or jsut make both pins connected to the + of the motors high?
-------------------------------------
Would something like that work? Also....I have some guides here (and the internet) on how to use the serin/out commands....I just need to learn the basics of what I can and cannot do. I cannot test anything right...I really don't want to mess anything up. For now...I want to collect as much info as i can and prepare myself with the knowledge that others have done this before me...that I should be able to as well.
Regards,
n0rig
Bookmarks