ElectricSpidey
- Joined Dec 2, 2017
- 3,340
I have had similar problems with micros, I solved them by using chokes in the lines as well as ferrite cores on the input lines, power lines etc.
Sorry - didn't read your post 12 right to the end. But surely a contactor would land the thread starter back with EMF issues from arcing?See post #12!
Though for *really* big loads, I’d use the triac to switch a contactor.
I’ve switched 100kW using that method.
The triac would get a tad warm - dissipating 1 Watt for each amp of load current.
Can't think of a microcontroller port that isn't push-pull since the days of the 8051, and that pulled down to ground, but not to V+Your missing a resistor from the gate of your MOSFET to ground unless your port is push-pull. 10K to 100K should do.
If it did, then they wouldn't be on the same supply as his logic. But switching a motor with a triac won't be a lot better - the triac switches off when the current reaches zero. With an inductive load the voltage will be nowhere near zero when it switches off. No arcing, but a lot of dV/dt. From practical experience, I have switched 100kVA with a triac-driven contactor without a problem.Sorry - didn't read your post 12 right to the end. But surely a contactor would land the thread starter back with EMF issues from arcing?
Not from the output side (presumably that's what you mean by "power side", the interference comes from the energy stored in the coil of the relay."spikes from coils"? i'm doubting your relay should ever contain voltage from the power side or even 2nd relay 1500w: the two are parts inside a relay physically separate, obviously. so i'm "a doubter on many of the previous posts". and the premise of a transistor base control ampifying (powering a relay) is that the base is un-effected by the throughput, so i have doubts "feedback" there too.
A pull down resistor is used when a switch is connected to a logic input, to ensure that the logic input reads zero when the switch is open.i'm unsure what this "pull down" terminology means or why you added a physical S1. i would use only the input and output voltage and amperage the GPIO documents as safe for 100% duty cycle, i would not just jam in resistors or lack thereof.
Really?i'm not to familiar with spike protection, though i know capacitors are sometimes used.
A programmable MOSFET?i'm not convinced you didn't damage your gpio or 3.3 mosfet (or if it is a programmable mosfet) or both by pulling more volts or amps through the programmable transistor base than your gpio allows. but your just plugging resistors here and there and not giving exact voltage and amperage expectations?
Yes - it's rated for the relay it is driving3.3 mosfet seems to be rated "for conditions much harsher than the gpio"
It's in the datasheet. Coil resistance is 2270 ohms. Pickup voltage is 19.6V, dropout voltage is 5V.the IDEC says 6 amp - i don't see where it says the power to throw the IDEC RELAY or if it has a spring (do you have to maintain the 24V at unknown current for this to stay on?
No - it's not a latching relayor you have a two-way setup - one zap to throw it on, one zap that allows it to fall back to OFF). obiously we seek a relay with near zero current maintenance. but is that what this beastie is?
In the datasheet again. 290 ohms coil resistance. On at >85% of rated coil voltage (20.4V) and off at <10% (2.4V) but that's the voltage that it is guaranteed to drop out at. Could drop out at higher voltagesthen there is the second "power relay" and it probably may require continual full current to stay open (or may not, but what is the maintenance current to keep that big switch open?)
No, less than 1uA at zero gate voltage according to the datasheet.i haven't crunched all the numbers, though... let's see your Pi compute says don't exceed 18 mA for 3.3V, the MOSFET uses (data sheet says .4 mA? enhanced mode: conducts some when input is OFF
Like every other relay in the world - supply the coil with the rated coil voltage and the contacts close!- and increasingly conducts as voltage runs higher (in your case you go from 0V to 3.3V) - and therefore your 1st relay must accept some voltage normally but be triggered when raised by the second voltage (to me it is yet far from clear if that is how the 1st relay IDEC works).
It isn't - MOSFETs aren't programmable. On at >2.5V gate-to-source (the gate threshold voltage from the datasheet). Off at <2.5V gate-to-source. So definitely on at 3.3V and definitely off at 0V. No problems there.if the MOSFET is programmable: i have no help there - you bought it - read up - if it is then it might conducuct or not conduct some voltages or currents due to thresholds or even curves (ie, automatically shutting off if above or below for a certain period of time).
Rough diagram is absolutely correct. Exactly how one uses a MOSFET to switch a relay. Just need the reverse diode across the coil.Now for the IDEC: the DOC you cited by giving the URL doesn't contain ANY information upon the inputs to it and the responses to the inputs: so i have zero idea how you would be using a MOSFET as a switch to power it (correctly). all i know is for a mosfet to act as a switch it needs to be in a little circuit itself (not just plugged in between destination and source as your rough diagram shows).
24V divided by the coil resistance =10mA.The IDEC is normally open (no current), so your MOSFET going from 0v must be inactive and 3.3V (+-? see below) must activate it. Again: the IDEC doc you showed us does not show the "how much power it eats for how long" and if it maintains itself and what if any triggers there are.
Yes. Not a latching relay.Finally your power relay looks like a power hog that requires energization at all times to stay "closed" (conducting)
See Raspberry Pi GPIO specgpio pullup -ardiuno -raspberry tells me pullup means resistor connected when Vin is floating: as far as i can determine that means "it's a resistor". i'm seeing something like 45 GPIO pins and some are hi some are lo - i see nothing saying which are (up to, maxiumum) +3.3V or -3.3V or if one of the two is forbidden on I or O. i'd like to know at least which is + which is - and range and can't see how the term "pulldown" has added anything to the documentation.
As previously mentioned by myself and several others - triac, triac+contactor, MOSFET driving single large relay, solid state relay etc.It seems to me your GPIO output should be (rather can be) a constant +-3.3v, you could amplify that on a transitor base "safely indeed" to power a 24v relay (perhaps having to power that coil to keep it on), which then powers the bigger relay. If it were much simpler it'd be better?
Most GPIO pins can be programmed as either input or output.I have to say again: the documentation you specified shows 45 pin GPIO - no clear input or output (i can look at), and I have to question again: programmed I/O is certainly not designed to allow it's output to "trigger" physical or other switches outside the package on the input side - i'm pretty darn sure. but you say it did (now that's as far as I can read your lingo) (in other words, what you said should be impossible, with the graph you have, and your explination)
Nanok66 has an AC motor, presumably an induction motor, which requires no more than being switched on or offfinally, with this in mind (if this is what your up to, but as i said just above, you haven't said so)
https://simple-circuit.com/arduino-dc-motor-control-bridge-rectifier-thyristors/ (requires a motor controller i think - but the website asks if "i agree" and really: i don't)
this, i think, makes it clear that you need a whole schematic and haven't posted what schematic you are using and that you have not designed one yourself from scratch
https://www.electronicshub.org/controlling-a-dc-motor-with-raspberry-pi/#Circuit_Diagram
(this one actually requires : L293D Motor Driver IC or Module, meaning as i suspected, controlling a motor using the Pi and a python script is virtually impossible. you might be controlling power or direction if the rest is taken care of for you)
- DC Motor are found everywhere: robots, drones, RC Cars, etc. By Controlling a DC Motor with Raspberry Pi, we can develop robots using Raspberry Pi. :0
Now - these diagrams with python code are made by non-amateurs to foster use of their products - so i'm relatively sure you are not designing this.
THAT BEING SO, how are you asking what resistor or diode to quash while you have no diagram URL ? (no motor controller, no python script, people talking about driving DC motors in response). I can't see how anyone else even responded to the initial question, personally. You have no DC motor controller chip. And unless the DC motor has an integrated controller?
Confused? How can a coil of wire and a moving contact get confused?I must assume we are then back to turning a relay on or off (which is what i first argued) - where it is unknown why you are using a higher cost $10 "very specific" component (IDEC) that isn't conducive to easy switching via mosfet (for reasons stated - you need the mosfet in a circuit to cause it to act as a switch or match the state curves otherwise so the IDEC doesn't get confused).
I somehow doubt that a keg washer is a "home project", unless he is taking a home-brew hobby very seriously indeed!Why not use a single transistor from the GPIO (possibly a second transistor off that) if all you want to do is use cheap parts to throw an on-off $40 relay requiring a constant amperage (<< 1A) to stay closed?
I can't see using industry "programmable" components (ie, MOSFET) for a simple home project. There are too many curves and uses (for reasons), because they are designed to be widely applicable to industry use. You might as well go from scratch if you just want an "on/off".
Enjoyed every minute of it!OMG somebody actually felt the need to address all that gibberish.
Good point, but not without a trap for the unwary.If the gate of a MOSFET does not include a pull down resistor, the leakage current can turn it on if the gate is left open. The pull down just has to be sized to have a path for the leakage current to go. So, 10K to 100K ought to work without any calculations.
For 6kW a triac or solid-state relay on its own would dissipate 30W which would need a big heat sink, so I would go for an opto triac (FODM3063) connected between GPIO and 3.3V,through about 180 ohms; driving a small triac Z0107MN (100ohms 1W between onto-triac and main triac gate) driving a contactor, with a snubber (47 ohms in series with 47nF class-X) across the coil.To recap, all the keg washers I have studied use contactors to run the 220V devices (motor and heating element). I am certainly stuck using the Pi (I know pretty much all other machines like this use PLC's but I think the Pi is plenty capable and hopefully stable enough to replace the PLC. Plus something has to run the touchscreen so why not let the Pi run touchsceen and be the PLC too). I would preferentially like to keep the MOSFET in the design but if y'all think the most pro solution would not include it then I'm all ears on what to use instead. Cheers.