I am looking for advice and some help.
I have a circuit and program that is restarting a 14M2 randomly. I asked for advice last week - I added the capacitor on the power connectors as recommended.
I have simplified the circuit to remove all but the essential components, see attachment. The 14m2 is mounted in an AXE091 with the additional capacitor across the power rails.
View attachment 9429
I have simplified the program but this program is in operation and the Picaxe exhibits the issue.
If I close the switch (attached to pinc.3) at high speed the Picaxe will restart - it is not far from consistent and I therefore I cannot find the root cause of the restart issue. I have a simple switch - a direct connection between the 5v and the pin.
Serial in and out are connector via the AXE091 (10k and 22k), the LCD works correctly (it is outputing the ASCII values) and the power supply is a bench 5v power supply.
Any thoughts?
I have a circuit and program that is restarting a 14M2 randomly. I asked for advice last week - I added the capacitor on the power connectors as recommended.
I have simplified the circuit to remove all but the essential components, see attachment. The 14m2 is mounted in an AXE091 with the additional capacitor across the power rails.
View attachment 9429
I have simplified the program but this program is in operation and the Picaxe exhibits the issue.
Code:
' bits 7654321076543210
pullup %0000111100111110
' conn ---X------------
symbol ledport = b.1
symbol soundport = b.2
symbol commsport = c.0
' wait for LCD and flash LED
symbol currentcount = w0
for b0 = 0 to 10
toggle ledport
pause 50
next
' output a message to show restart
serout commsport,N4800, ("v0.7",13,10)
' set up i2cslave for LCD
i2cslave $C6,i2cslow,i2cbyte
main:
if pinc.3 = 1 then
high ledport
else
low ledport
end if
writei2c 0,(254,128,255) ' move to start of first line
pause 30 ' wait for LCD to process data
BINTOASCII currentcount, b10,b11,b12, b13, b14
writei2c 0,("CU FT :5", b10,b11,b12, ".", b13 ,b14 , 255)
pause 30
goto main
Serial in and out are connector via the AXE091 (10k and 22k), the LCD works correctly (it is outputing the ASCII values) and the power supply is a bench 5v power supply.
Any thoughts?
Attachments
-
43 KB Views: 40
Last edited: