Hi, I'm trying to control a device I've built from a commercial software App. My idea seems very simple but I have had no success so far. I need to activate a relay for about 1.5 sec. when the software sends a serial command. I am using an 08m with the code below. This works about 75% of the time but I get no reaction 25% of the time (It's like the input is not heard). I have also tried to isolate a signal from the serial port with a diode but I don't seem to get enough voltage to activate a transistor switch to use as a pulse signal. My electronic skills are very basic so please keep that in mind if you have any suggestions.
Any ideas would be very welcome,
-Iver
Any ideas would be very welcome,
-Iver
Code:
main:
serin 1, n2400, w1
if w1 > 5 then
goto filter
else
ENDIF
GOTO MAIN
filter:
high 4
pause 15000
low 4
goto main
Last edited: