Hey all, im building a robot vehicle for a uni project, the basic story is that it needs to be able to sense walls in a small maze so that by logic it can navigate its own way through.
Anyway, ive been toying around with the pwmout command this afternoon and cannot seem to get it to work. When I put a simple green led with with a "high, pause, low, pause, goto" program it works fine, but when I set the pwmout command i cannot see a thing, led or ir. Ive set the ir led with the previous program and with the phone camera i can see it flashing, however there is still no signal when pwmout is used. My pwm is set to 38kHz but ive tried all sorts of combinations, even 99% duty to see if it lights up.
What im i doing wrong? Ive used pin1 in both programs, ive also searched, but cannot find precisely what im looking for.
Any help is appreciated.
Thanks
Anyway, ive been toying around with the pwmout command this afternoon and cannot seem to get it to work. When I put a simple green led with with a "high, pause, low, pause, goto" program it works fine, but when I set the pwmout command i cannot see a thing, led or ir. Ive set the ir led with the previous program and with the phone camera i can see it flashing, however there is still no signal when pwmout is used. My pwm is set to 38kHz but ive tried all sorts of combinations, even 99% duty to see if it lights up.
What im i doing wrong? Ive used pin1 in both programs, ive also searched, but cannot find precisely what im looking for.
Any help is appreciated.
Thanks