![]() | |
| Home Page | Mark Forums Read | Today's Posts | My Replies | Classifieds | Reviews | Photo Gallery | Web Links | Share Files | Advertise With Us | Ad List |
| |||||||
| General Electronics Discussion Discuss basic electronics, power supplies and anything else electronic related here. |
| This forum is sponsored by: |
![]() |
| | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
| |||
| |||
Hi Guys, If you look at the attached schematic the blue box represents the driver board... The rest of the circuit is what i've come up with, please could someone with a better electronics knowledge tell me if it'll work? D. |
|
#2
| ||||
| ||||
| It looks like that would work, I notice you have not used the isolation the Opto brings, but if you are using the PC 5v and 12v then it does not really matter. I tend to use the 2N7000 for most interfacing, it does not require any current to operate like the 2N3906, et.al Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#4
| ||||
| ||||
| If you have 24vdc, I would have tended to use that throughout, 24vdc relay etc. Also I would suspect you can eliminate R3 completely and it should still work OK. You did not say what control system you are using. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#5
| |||
| |||
| Hi Al, R3 is inside my controller, the controller was included with my desktop cnc machine, controlled by Mach3, I need to operate some existing relays / solenoid valves and they are all 12v... Please could you describe how i would connect the 2N7000? D. |
| Sponsored Links |
|
#6
| ||||
| ||||
| You could connect pin 4 of the opto to 5v+, pin 3 of the Opto to a 1k resistor, the other end of which is connected to common. Opto pin 3 also to the gate of the 2n7000. 2N7000 source pin to common. Drain pin to the 12v or 24v relay. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#7
| |||
| |||
| Hi Al, The reason i put the blue box around the original schematic was to show the components i have no control over.. Most of the parts are SMD and i don't really want to start altering the board, If the opto had been wired to source rather than sink i would've connected it to a ULN2003, it has the protection diodes built in and can sink 500ma.. Can the 2N7000 be driven from a sink? D. |
|
#8
| ||||
| ||||
| Yes, the sink configuration you have would also work with a 2N7000, it is just the logic would be opposite, you could change that with the relay contacts if necessary (N.C or N.O). That was the reason I changed the Opto to a source device. Th 2N7000 is a voltage operated device rather than current, 0 to 5v, with I believe a switching voltage of around 3.5v on. Al.
__________________ CNC, Mechatronics Integration and Machine Design. “Logic will get you from A to B. Imagination will take you everywhere.” Albert E. |
|
#9
| |||
| |||
| Your circuit cannot work because the opto collector load 1K goes to +5VDC while the emitter of your PNP goes to 12VDC. When the opto is off, current flows from the PNP base, through the 10K and to your 5VDC supply through the 1K. The 3906 can never turn off. How to fix it: 1) Change the opto collector 1K to 10K and take it to 12VDC instead of 5VDC. 2) Use an NPN (3904). Emitter to GND, Base to opto collector and 3904 Collector to relay coil connected as a pull-up load to 12VDC. Option (2) uses the fewest parts: 1K pull-up and an NPN transistor. Option (1) requires a resistor change (10K instead of 1K) and moving the resistor end to 12VDC instead of 5VDC. If you use option (1), the 100K resistor does nothing useful because it's too large. Change it to 10K. Mariss |
|
#10
| |||
| |||
| Option 2 it is: Like that? I don't see how that can work, I thought NPN's we positively switched? Or is this pulled high by the 1K all the time until pulled low? (which is fine, and i would never have thought to do..) It would actually make sense because there is a NOT gate before the opto... D. |
| Sponsored Links |
|
#11
| |||
| |||
| Lose the superfluous 1K to 5VDC and you have it. How it works: No opto LED current means no opto collector current. All the current flowing through the 10K goes into the base of the 3904 and turns it on. Opto LED current causes the opto collector to shunt the 10K current to GND. The opto collector drops below 0.7V which turns the 3904 off. --------------------------- If you want the relay coil off when there is no opto LED current: Take the opto collector to 12V. Place a 10K from opto emitter to 3904 base. Use another 10K from 3904 base to GND. Keep the rest of the circuit as is. Mariss |
|
#12
| |||
| |||
| Is there no other way around getting rid of the 1K? It is a 0805 on the controller board, and i need this circuit 3 times which means removing 3 resistors from a brand new controller thus invalidating the warranty.. Thanks to everyone for all the help btw! D. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VFD switching a relay and kickback voltage | z28tt | Phase Converters and VFD | 5 | 12-05-2008 06:26 PM |
| Any plans for optocoupler circuit for parallel port? | mbwittig | CNC Wood Router Project Log | 3 | 01-31-2007 06:09 AM |
| Pwm switching | miro | Gecko Drives | 0 | 01-23-2007 03:22 PM |
| Need Datasheet NEC PS2510-4 Optocoupler | CJL5585 | General Electronics Discussion | 6 | 12-07-2006 05:55 PM |
| optocoupler; opto-isolater | dhprc2 | General Electronics Discussion | 1 | 06-02-2003 12:19 PM |