new to posting ,
This is how far ive managed to get with the LCD with your help guys. I now have an LCD where i can display pot position 0-255, im trying to achieve an actual variable timing period from 0-30ms. Ive divided 255/30 giving 8.5 so i need to somehow work with this to enable me to control a single pulse width according to pot position. hope im making sense. Heres my bascic code so far, sorry its messy. I will look at the Youtube video recommend. Thanks
symbol res = c.1
pause 500 ;wait 0.5sec
serout C.4, N2400,(254,1) ;Clear the screen
pause 30 ;wait 30 required after clear screen
main: ;start of main program
readadc res,b0 ;read variable input (pot)
`debug
if b0 > 200 then gosub limit
serout C.4, N2400,(254,1) ;Clear the screen
pause 10
serout c.4, N2400, (254, 128, #b0, "ms")
pause 60
goto main
limit:
serout C.4, N2400,(254,1) ;Clear the screen
pause 30
serout C.4, N2400,(254,128) ;128 first line
serout c.4, N2400,("REACHEDLIMIT>200")
pause 1000
goto main