AXE033 real time clock problems

Pekari

Senior Member
I have several problems with AXE033 LCD-display with real time clock.

Sometimes clock resetting even battery is good >3V (CR2032).
These commands doesn't work:

Code:
serout 1,N2400,(253,9,"00:00:10        ")
and:

Code:
serout 1,N2400,(253,10)
Always when I am programming that AXE033, I use 4,6...4,9V supply.
 

Pekari

Senior Member
What is wrong in my code?

Why doesn't it work?

Code:
init:	pause 500
main:	'serout 1,N2400,(253,8,"03/12/08 17:06  ")' This works.
	serout 1,N2400,(253,9,"00:00:15        ")' This doesn't.
	pause 1000
time:	serout 1,N2400,(0)
	pause 1000
	readadc 2,b0
	if b0>10 then ring
	goto time
ring:
	play 2,1
	goto time
 

kevrus

New Member
I saw the page in the manual which is why I edited my post, in my haste, I mis-understood your original problem
 

Pekari

Senior Member
Doesn't anybody have this problem?

I doubt about that because I have used TWO AXE033 and neither of those doesn't work as in manual page 14 (253,9 and 253,10).
I guess all AXE033 have these same bugs.

What Tecnical say about this?
 

Technical

Technical Support
Staff member
The command works exactly as stated for us - the alarm output switches high for 5 seconds. What are you testing / trying to do?
 

Pekari

Senior Member
If I try this code:
Code:
init:	pause 500
main:	'serout 1,N2400,(253,8,"03/12/08 17:06  ")' This works.
	serout 1,N2400,(253,9,"00:00:15        ")' This doesn't.
	pause 1000
time:	serout 1,N2400,(0)
	pause 1000
	readadc 4,b0
	if b0>10 then ring
	goto time
ring:
	play 2,1
	goto time
I have connect in to pin 1 and out to pin 4.
Why doesn't it play a tune (PICAXE 08M)?
 

hippy

Ex-Staff (retired)
Is the alarm out from the AXE033 not a digital output ? It should be possible to read it as an analogue input with READADC but that could be part of the problem.

Have you tried using a LED+R to monitor the actual state of the alarm output line or, better still, a meter or oscilliscope if you have access to either ?
 

Pekari

Senior Member
When b1=0 and time is what are setting to alarm, it will play tune (AXE033_OUT=4.2-4.4V).
When b1=1 it never play tune and AXE033_OUT=0V.

Code:
#picaxe 08m
b1=1
init:	pause 500
main:	if b1=0 then
	serout 1,N2400,(253,8,"07/12/08 09:48  ")' This works.
	else
	serout 1,N2400,(253,9,"00:00:15        ")' This doesn't.
	endif
	pause 1000
time:	serout 1,N2400,(0)
	pause 1000
	readadc 4,b0
	if b0>10 then ring
	goto time
ring:
	play 2,1
	goto time
Is the circuit ok?
 

Attachments

hippy

Ex-Staff (retired)
Is the circuit ok?
Definitely not.

0V of PICAXE ( leg 8 ) is not connected to 0V
+V of LCD is connected to 0V (leg 8 ) of PICAXE

If this is how you have it then it could explain a lot. PICAXE ( and PICmicro ) devices can function using 'parasitic power' when currents flow in and out through I/O ports creating a sometimes apparently working circuit when it is actually entirely unstable.
 
Top