I'm sure by "spec's" he means how much current does the relay draw.
I'm sure by "spec's" he means how much current does the relay draw.
Ok - Instead of a schematic (can't find all components in menu I need to make drawing), have decided to talk through each section of the project as there isn't really that much to it if that's ok?, so:
Section one / Transmitter Side (Battery Operated): Through beam sensor (which I have bought along with the transmitters) http://www.alibaba.com/product-detai...2abf516dBZICkn Half way down page under 'Retro Reflective Type'
The sensor is 12v and operates over a distance of 5m in daylight, beam gets broken and outputs 12v (obviously too high for a input into the pic) so to drop the voltage down to 3.3v I'm thinking of a Voltage divider Vout = Vs x R2 / (R1+R2). Vs = 12v R1=1k R2=390 Ohms giving Vout of 3.367v or a 12v to 3.3 Zener cct or using a http://uk.rs-online.com/web/p/voltag...4923/?sra=pstk (not sure on which way to go).
So the beam gets broken - 12v from sensor down to 3.3v to the pic, pic reads the input pin as high and makes an output pin change state and causes the transmitter to Tx.
Section two / Receiver side (mains operated): The receiver receives a Tx input, pin on pic reads the Tx input and sets an output pin high onto the gate of a 2N7000 http://uk.rs-online.com/web/p/mosfets/6714733 which then drives either a http://uk.farnell.com/axicom-te-conn...55?st=3v relay or a http://uk.rs-online.com/web/p/solid-...relays/8887619 which in turn drives a loud sounder http://uk.rs-online.com/web/p/piezo-...E&gclsrc=aw.ds
I have been drawing a pcb layout for these cct's using Diptrace as I'm going to make my own / first pcb's too.
Any thoughts on the above as ever very much appreciated as ever.
why a relay at all ? the 2n7000 could drive that alarm directly with easewhich in turn drives a loud sounder
Last edited by richard; - 22nd July 2021 at 04:52.
Warning I'm not a teacher
I never thought of that, great idea, cheers Richard.why a relay at all ? the 2n7000 could drive that alarm directly with ease
What do you think the best way to drop the 12v from the sensor output to 3.3v into the pic, would the voltage divider be ok/work?
works for me. you could protect against divider failure with a 3 to 5v zenner if you are paranoid
the first pic may be unnecessary too if the tx works like i think it does
Warning I'm not a teacher
Excellent, voltage divider it is then.works for me.
Yes I do fit into that category (mildly at present), will look at at a backup with Zenner.you could protect against divider failure with a 3 to 5v zenner if you are paranoid
I hear what your saying Richard, so I need to built the Tx cct on the bench now and test the Tx driven directly by voltage diver (no pic).the first pic may be unnecessary too if the tx works like i think it does
Thanks for your help, appreciated.
David
Bookmarks