THANK YOU all. got it to work on the PICEASY board, now to put it in a box and on the wall.
thanks again:D
Type: Posts; User: AVGuru; Keyword(s):
THANK YOU all. got it to work on the PICEASY board, now to put it in a box and on the wall.
thanks again:D
Hi mark, thanks for the heads up on that, Yes I'm using a 2N2222 for the output to relay on open emitter, as well as a diode across the relay to stop it from chattering.
Hi henrik, I seem to have lost A.0 & A.1 & A.3 as outputs....? I tried to swap the led around the port, but they won't light up.
A.2 is the LED
A.4 is the RELAY and
A.5 is the Button
Henrik, thanks a million, we managed to get it to work. Alto port 1 out does not light the led. It ok I already know why. I can't see how I missed out the config for comparator. Thanks again....!
Thanks henrik, Ill try that on Monday. Have a great weekend..!
Philip
Ok will do that we are out of the office already, GMT +8 here. That will be the first thing I try on Monday. Will keep you posted. Thanks Philip. Have a great weekend guys
Standby: 'WAIT FOR BUTTON TO STARTUP
Button SWITCH,1,255,0,b1,1,STARTUP 'Check Button 1 (Skip to heartbeat if Not Pressed)
Heartbeat:
'HEART BEAT INDICATOR ON LED
For DUTYCYCLE = 0 to 255 STEP...
yes that does. I initially thought maybe there was a problem with the out put pin., i swap to other pins, same result, still not satisfied, i ran my scope on the the pins, yup, th efirst led switches...
it seems it is not possible to have 2 outputs HIGH at the same time....? i tried to lite up 2 leds:
HIGH LED1
HIGH LED2
only LED22 lights up, then i did:
HIGH LED1
PAUSE 1000
HIGH LED2
tried various ports on the MCU. it is sitting on the PICEasy5 board
Hi Henrik,
i tried it, but the relay will not stay ON.
this is the prog:
INIT:
PAUSE 1000 'INTERNAL CLOCK RESET 75ms
clear 'SET REGISTER TO ZERO
FOR TIMES = 3 TO 1 STEP -1
...
Ohhhh.... yes I need the relay to stay on indefinitely from HIG RELAY command until a LOW RELAY command is executed
Hi every1,
I'm very new to programming PIC micro controllers. I've been banging my head against the wall the last few days, is there any way I can get an output to stay on while the processor does...