I am new to the forum, but have been using Picaxe chip for about a year. My current project is a tool to adjust central heating radiators so they have a 10C temp drop.
I have a 08M2 driving a 16 x 2 OLED (or 16 x 2 LED) with two DS18B20, the basic display works fine, but I would like to use the C.0, C.1, C.2 outputs to drive led's which would indicate "red = to high", "green = 10c +/- 2", or something like that.
I have used:-
serout C.1,N2400,(255,%00000111)
pause 500
serout C.1,N2400,(255,%00000000
to test the function but this just corrupts the display, and cannot get %00000101 or %00000001 etc to work
Here is my rough code so far:-
;************* Radiator Tool **************
init:
#picaxe 08M2
pause 500
serout c.1,N2400,(254,1) ; Clear screen
pause 500
serout C.1,N2400,(254,128)
serout C.1,N2400,("LHS")
serout C.1,N2400,(254,136)
serout C.1,N2400,("RHS")
serout C.1,N2400,(254,192)
serout C.1,N2400,("Tempdrop")
main:
debug
serout C.1,N2400,(254,133)
readtemp C.2,b0
serout C.1,N2400,(#b0)
serout C.1,N2400,(254,142)
readtemp C.4,b1
serout C.1,N2400,(#b1)
debug
pause 500
serout C.1,N2400,(254,201)
if b0 > b1 then
let b2 = b0-b1
else
let b2 = b1-b0
endif
serout C.1,N2400,(#b2)
pause 10
;serout C.1,N2400,(255,%00000111)
;pause 500
;serout C.1,N2400,(255,%00000000)
goto main
I am using the standard AXE133 firmware and tested with both OLED and LED displays, can anybody help.
I have a 08M2 driving a 16 x 2 OLED (or 16 x 2 LED) with two DS18B20, the basic display works fine, but I would like to use the C.0, C.1, C.2 outputs to drive led's which would indicate "red = to high", "green = 10c +/- 2", or something like that.
I have used:-
serout C.1,N2400,(255,%00000111)
pause 500
serout C.1,N2400,(255,%00000000
to test the function but this just corrupts the display, and cannot get %00000101 or %00000001 etc to work
Here is my rough code so far:-
;************* Radiator Tool **************
init:
#picaxe 08M2
pause 500
serout c.1,N2400,(254,1) ; Clear screen
pause 500
serout C.1,N2400,(254,128)
serout C.1,N2400,("LHS")
serout C.1,N2400,(254,136)
serout C.1,N2400,("RHS")
serout C.1,N2400,(254,192)
serout C.1,N2400,("Tempdrop")
main:
debug
serout C.1,N2400,(254,133)
readtemp C.2,b0
serout C.1,N2400,(#b0)
serout C.1,N2400,(254,142)
readtemp C.4,b1
serout C.1,N2400,(#b1)
debug
pause 500
serout C.1,N2400,(254,201)
if b0 > b1 then
let b2 = b0-b1
else
let b2 = b1-b0
endif
serout C.1,N2400,(#b2)
pause 10
;serout C.1,N2400,(255,%00000111)
;pause 500
;serout C.1,N2400,(255,%00000000)
goto main
I am using the standard AXE133 firmware and tested with both OLED and LED displays, can anybody help.