Implementing a system based in Android + IOIO + relay problem + connector | on ElectriciansForums

Discuss Implementing a system based in Android + IOIO + relay problem + connector in the UK Electrical Forum area at ElectriciansForums.net

A

annlee

Hi there, I am doing a system based on Android + IOIO board + Relay for a 230V/16A connector (I am European)

IOIO board only gives 3.3V output (not 5V), so I need a 3.3V relay that works for a 230V/16A connector, is there any relay with this specs?

or

should I need a MOSFET transistor between the IOIO board and the relay? which one?

Thanks in advance
 
If you can't find a 3.3v relay, then yes, you'll probably have to build a driver circuit instead and use that to switch a 5v relay which are readily available. You might want to look at the load you're switching and possibly elect to use that low voltage relay to switch a 230V contactor?
 
Hello Annlee, sorry for the delay, I was on here an hour ago and my account logged itself out again, before I got to sign back on there were 2 phonecalls to me and a text message which delayed me in getting back to my laptop, I have a solution for you and I will put it onto here now in 3 sections as it is quite long, please print this out to read and keep and I will do a circuit diagram if you need one, but that will need to be tomorrow as I have to log off soon and go away for a while.
please feel free to ask me any questions you may have....
 
Section 1 for ANLEE:

Drive a 12v0 relay using a MOSFET (Metal Oxide Semiconductor Field Effect Transistor) as a switch, use an OPTO Isolator such as a 4N25 (6 Pin DIL) as an interface for the switch Logic from the Output stage of the interface board at the control computer.
Provide the Vdd (Plus Volts) for the MOSFET Transistor via a 6v0 Voltage Regulator IC and a current limiting resistor to the Transistor Base, connect the Relay coil Negative Terminal (GND/Neutral/0Volts) to Collector and then the Emitter to Ground (VEE / 0 volts ) to act as an Electronic switch with the Transformer (power supply) connected the +Volts side of the Relay switch coil via a bridge rectifier, and an in line current limiting Resistor.
Use the 6v0 voltage Regulator output as the Drive source for the secondary stage of the OPTO ISOLATOR IC (Pin 4 - Pin 6) which will then drive the BASE of the Transistor and cause it to switch/energise the Relay coil, powering on and off the load each time the opto Isolator gets a 3v3 (3.3 volts) signal across pin 1 to pin 2.
Remember to use a small signal diode connected in series with pin 1 of the OPTO ISOLATOR and have this screened with a miniature ferrite bead shroud on the same small PCB (printed Circuit Board) as the Opto Isolator, you can give a better drive source for the 4N25 OPTO ISOLATOR by adding a cheap two input AND logic IC such as a 14pin (type 7408 TTL) AND chip with the output from the computer output board connected to pins 1 and 2 of the 7408 Integrated Circuit, connect pin 3 (the AND Logic output) to the input of the 4N25 IC OPTO ISOLATOR (this will provide 5v0 drive voltage with a marginally better current source characteristic) and can also use the same power supply as the Transistor and the OPTO ISOLATOR (all 3 components can accept the 6 volt supply from the regulator)

When constructing your power supply, it should be in this way :

( i )230v 500mA (0.5A) Fuse (inside an inline PCB solder tag fuse Holder)
(ii) primary Stage of Transformer (mains supply side)
Then :
(iii) The 12 Volt tap of the secondary windings of the transformer should be connected Via the Bridge Rectifier to the input pin of the 3 pin 6v0 voltage regulator IC which provides power to the 2 IC’s (the 7408 AND….the 4N25 OPTO ISOLATOR) and Q1(the Transistor)
The 12 Volts coming from the Bridge Rectifier (immediately after rectification) should also be connected to the supply terminal of the Relay Coil (remember that the Transistor connected between the Relay GND (Negative) and VEE Ground ( main Negative) Rail will do the ON/OFF switching of the Relay.

A single 1N400 Rectifier Diode should be connected in series between the Bridge Rectifier and the + Terminal of the Relay magnet coil to stop currents (spikes) developed by the collapsing magnetic fields of the relay coil de-energising from going into the Regulator IC and causing problems during switching (Flemmings right hand rule)
 
Part 2 for ANLEE:

You will need, amongst a few other small low cost components:

1 X 230v/12v Step down Transformer

1 X 4N25 DIL (OPTO ISOLATOR)

1 X 7408 Quad 2 input NAND IC (14 pin) and also a PCB holder for this.

1 X 6v0 Voltage Regulator IC

1 X Bridge Rectifier

1 X 1N400 Rectifier Diode

1 X IN Line Fuse Holder

************Also some 230 V 500mA fast blow fuses***************

1 X Miniature Ferrite bead screen (hollow Iron tube to remove transients)
on input to the 4N25 OTPO ISOLATOR.

1 X NPN (NEGATIVE-POSITIVE-NEGATIVE) POWER Transistor
Such as a TIP3055 High power Transistor.

Access to a good selection of E12 Series Resistors (either ¼ Watt or ½ Watt

(1 X) 5v 5mm LED + 5mm LED Holder, you might want to add this to the
Input of the OPTO ISOLATOR to show when switching by the computer interface occurs.

Some Hot melt Glue (BOSTIK Glue) to make the security of the Transformer and Relay stronger after soldering onto your Printed Circuit Board.

(1 X) Heat Sink for the Voltage Regulator IC to take away excess heat from the case of the Regulator.

Consider using a 14 pin DIL Type 7400 NAND IC (Not And) to act as a Logic Latch with another separate input from the interface board, you can configure this so that the switching of the OPTOISOLATOR and therefore your Load/Relay may be either Momentary (only when the output from the computer is High/ 3v3) or it could be toggled (when the signal from the computer interface is 3v3) it goes High/ON and remains on until the next signal causes it to go LOW/OFF.
This Logic Latch circuit (set as a Flip Flop) could be turned on and off at will by the computer making the Latch feature selectable and enabling the user (or the software/firmware) to set the switching on the circuit (device) to toggle or momentary and therefore switching the 230Vac load momentarily or toggling ON/OFF.
You may also add a small tactile PCB mount momentary switch to make use of the ON/OFF functionality of this latch for manual user switching.

- - - Updated - - -

Part 3 for ANLEE:

Take great care in designing and making your PCB to keep the HOT (230Vac mains) and the COLD / SAFE side ( <12 Volts DC) separated by good Air Gaps for insulation as well as physical insulation between the primary and secondary sides of the Transformer.
This will reduce the risk of Dangerous voltages causing a shock and also protect the low voltage components from Damage by over voltage/current due to shorting or bridging of high and low voltage contacts.

Use a suitable case / enclosure to protect the user from the 230Vac Supply and if this is metal (such as brushed Aluminium) make sure that an earth connection is bolted to the inside of the case for safety and to prevent interference or damage to the computer interface cable.
 
Hi. I would look into using a solid state relay. Much simpler and all handled in one 'black box device'. These take a low voltage DC in and can directly switch mains voltages. Simple and safe! Daz
 
Hi. I would look into using a solid state relay. Much simpler and all handled in one 'black box device'. These take a low voltage DC in and can directly switch mains voltages. Simple and safe! Daz

Honestly, I think it is better using another board that gives a 5V output (instead of IOIO with 3.3V), so can use directly a 230V/16A relay, right?
 
Would be simpler to use something like a 'CRYDOM - PF240D25 - SSR, 240VAC'. Specs are:

Load Current: 25A
Switching Mode: Zero Crossing
Blocking Voltage: 600V
Control Current Typ: 15mA
Control Voltage DC Max: 15V
Control Voltage DC Min: 3V
External Depth: 22.8mm
External Length / Height: 34.3mm
External Width: 43.2mm
Input Voltage: 3V DC to 15V DC
Isolation Voltage: 4kV
Load Current Max: 25A
Load Current Min: 0.06A
Load Current RMS Max: 25A
Load Voltage Range: 12V AC to 280V AC
Terminal Type: Through Hole
 
Would be simpler to use something like a 'CRYDOM - PF240D25 - SSR, 240VAC'. Specs are:

Load Current: 25A
Switching Mode: Zero Crossing
Blocking Voltage: 600V
Control Current Typ: 15mA
Control Voltage DC Max: 15V
Control Voltage DC Min: 3V
External Depth: 22.8mm
External Length / Height: 34.3mm
External Width: 43.2mm
Input Voltage: 3V DC to 15V DC
Isolation Voltage: 4kV
Load Current Max: 25A
Load Current Min: 0.06A
Load Current RMS Max: 25A
Load Voltage Range: 12V AC to 280V AC
Terminal Type: Through Hole

Is this solid state relay for IOIO board (3V output) or for the another one with output 5V?
 
Last edited by a moderator:
Hello Annlee
not a problem to build, I was assuming that you were an Electronics student and wanting help with a circuit design, I get asked a lot by Electronics students on different forums but they are usually looking to find out without telling that they are students as they don't want others back home to know that they are seeking help with college/university questions/projects...
you would be able to drive this circuit with a cheap USB I/O interface board (about 15 Euros) from any USB device running any platform/OS or RTOS /firmware just by setting the registers accordingly with code....could be run from a tablet, a laptop, an android phone or even something like a small dedicated board the likes of which are used to operate those video advertising signs that you see at the airport with TV commercials running on them....they are small at about 15Cm X 15Cm....
I take it that you have a few Electronics Engineers on your team? there is no way to avoid using Electronics for this as you will need to construct your own interface....let me know if you would like help with this for your team :)
 
This is a general purpose solid-state relay that is used in pretty much the same way as a traditional relay, but has the advantages of no moving parts, longer life, and wider input voltage range. It gives good isolation figures. Here is a link to it on Farnell's website: PF240D25 - CRYDOM - SSR, 240VAC | Farnell United Kingdom. Double-check the spec, but it looks like it would do what you want. There are probably cheaper ones available - this was the first one I found. Daz
 

Reply to Implementing a system based in Android + IOIO + relay problem + connector in the UK Electrical Forum area at ElectriciansForums.net

News and Offers from Sponsors

  • Article
Join us at electronica 2024 in Munich! Since 1964, electronica has been the premier event for technology enthusiasts and industry professionals...
    • Like
Replies
0
Views
378
  • Sticky
  • Article
Good to know thanks, one can never have enough places to source parts from!
Replies
4
Views
951
  • Article
OFFICIAL SPONSORS These Official Forum Sponsors May Provide Discounts to Regular Forum Members - If you would like to sponsor us then...
Replies
0
Views
1K

Similar threads

I have an AC system that is not working. All fuses and relays tested successfully. Blower comes on, but blows hot. System is completely empty...
Replies
0
Views
470

OFFICIAL SPONSORS

Electrical Goods - Electrical Tools - Brand Names Electrician Courses Green Electrical Goods PCB Way Electrical Goods - Electrical Tools - Brand Names Pushfit Wire Connectors Electric Underfloor Heating Electrician Courses
These Official Forum Sponsors May Provide Discounts to Regular Forum Members - If you would like to sponsor us then CLICK HERE and post a thread with who you are, and we'll send you some stats etc

YOUR Unread Posts

This website was designed, optimised and is hosted by untold.media Operating under the name Untold Media since 2001.
Back
Top