Wouldnt that need a load on the end of the wire? The wire goes from the smoke machine then straight into the circuit
Wouldnt that need a load on the end of the wire? The wire goes from the smoke machine then straight into the circuit
Never tried it...but...if my thinking is right...
A coil of wire around the power cord itself (around, not touching...), a high value resistor in series with the coil, one side of the resistor to ground, one side of the resistor to the PIC pin. The resistor should show a voltage across it if there is current flowing thru the power cord. You'll probably have to put a diode inline with the PIC pin and maybe a small R/C network behind that to filter out the 50hz half-wave and get a decent reading at the PIC.
Unless my thinking is really jacked up (entirely possible), it should work... Not sure how many turns you'd need, might be 10, might be 1K...
That sounds a little complicated. Anything upto 1000 turns :O Ive got to do this 3 times too. I think the 50Hz part will be a problem with every method.
It would be best if i could do the opto way. Problem is i think i need something daft like 20W resistors for it
You said something about a ready light? There is half of the opto-coupler. A photo diode is the other half.
Dave
Always wear safety glasses while programming.
I wish id have thought of that. I dont have any photo diodes or anything else to sense light. Those ready lights wernt going to be connected. The idea is that the PC can display all that. It wouldnt be hard to connect them back up though.
I guess if i dont connect it to the PC and just use the origional lights then it wont be a problem. I do have a future project that will use this type of thing though so i wanted to get it right now.
Ive just connected a transistor up to the mains through a 10M resistor and with a diode across it plus a 100K grounding resistor for the base. It seems to be working perfectly. The LED turns on when the mains is turned on. Ive had it running the whole time ive been writing this post and nothing is smoking so it seems this method will probably work. Just incase, i do have a stack of spare PIC16F877As
What about a fire extinguisher near by?Just incase, i do have a stack of spare PIC16F877As![]()
Dave
Always wear safety glasses while programming.
Shouldn't take a 1000 turns to do what I'm thinking. I would think maybe 10 or 20 would handle it just fine. 50hz shouldn't be a problem either.
All you're doing is making a 'transformer' of a sort, tapping into the expanding/contracting alternating magnetic field that naturally surrounds a wire that is carrying a current, inducing a current into that coil, and developing a small voltage across a high value resistor which is the load for that coil.
Hi, Master
may be there's your idea here ...
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
mackrackit, I have a glass of water here that i was using to test the water sensor.
skimask, The problem with 50Hz or any oscillating input is that the PIC detects multiple inputs. Im sure its easy enough to program around that but ive not got that far yet
Acetronics, that looks just slightly complicated. I dont think ive got half the components in that diagram anyway
dhouston, Its a PIC16F877A. Doesnt really matter much about which pin. I guess it wouldnt hurt to add diodes in myself just to be sure. I did a search for "clamp" in the datasheet so thats why i didnt find anything. "clamp" wont find a diagram
Dave
Always wear safety glasses while programming.
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks