Im using Dr_Acula example http://www.instructables.com/id/Control-real-world-devices-with-your-PC/ as my learning platform to use a picaxe with visual basic 2010. I am adding a DS18B20 to pin 4. (on a 20M) I know the circuit is correct because i can do a #terminal test and it reads correct.
#PICAXE 20m
#TERMINAL 4800
Symbol TReading = b0
setfreq m4
do
ReadTemp 4,TReading
sertxd ("Temp is ", #TReading, CR, LF)
loop
when I run this code below, b0 shows nothing but b2 which I put 100 into reads correct. I can turn pin one on and off also. I know im communicating between the picaxe and VB. I am using Dr_Acula VB code exactly. Any one have any Ideas.
#PICAXE 20m
setfreq m4
main:
serin 7,N2400,("Data"),b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13
readtemp 4,b0
b2 = 100
serout 0,N2400,("Data", b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13)
if b4 = 1 then
high 1
else low 1
endif
goto main
#PICAXE 20m
#TERMINAL 4800
Symbol TReading = b0
setfreq m4
do
ReadTemp 4,TReading
sertxd ("Temp is ", #TReading, CR, LF)
loop
when I run this code below, b0 shows nothing but b2 which I put 100 into reads correct. I can turn pin one on and off also. I know im communicating between the picaxe and VB. I am using Dr_Acula VB code exactly. Any one have any Ideas.
#PICAXE 20m
setfreq m4
main:
serin 7,N2400,("Data"),b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13
readtemp 4,b0
b2 = 100
serout 0,N2400,("Data", b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13)
if b4 = 1 then
high 1
else low 1
endif
goto main