Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2227
|
 |
« Reply #15 on: October 11, 2012, 07:00:35 am » |
I might get some voltage surges and would not like to fry my arduino, also its a good oportunity to use them for the first time. Can you help me out on how to choose the appropiate one?
You could put in a protection diode for that. Get a 5V Zener diode and connect it in parallel with the lower resistor. If a voltage higher than 5V appears at the resistor junction the diode will short it to ground. If the resistors have large values (75k, 5k) then there'll hardly be any amps, it should be enough protection.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 13
Posts: 1237
Arduino rocks
|
 |
« Reply #16 on: October 11, 2012, 07:33:55 am » |
fungus in parallel? like this... see picture. or maybe as the second option i have drawn?
dhenry thank you so much for the explanation. will reread it a couple of times for fully understanding it.
dc42, you are right, that is max. thanks !
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 13
Posts: 1237
Arduino rocks
|
 |
« Reply #17 on: October 11, 2012, 07:51:46 am » |
mm...maybe i understood it wrong. maybe like this? and the internal pullup resistor from the arduino active.
|
|
|
|
« Last Edit: October 11, 2012, 07:55:22 am by Sergegsx »
|
Logged
|
|
|
|
|
United Kingdom
Online
Faraday Member
Karma: 130
Posts: 4643
|
 |
« Reply #18 on: October 11, 2012, 07:59:03 am » |
D4 is redundant in this circuit, unless you accidentally short the input of the opto isolator to the output. It might be a useful protection device if you were not using optical isolation. It is also connected the wrong way round.
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #19 on: October 11, 2012, 08:08:53 am » |
the internal pullup resistor from the arduino active. That pull-up "resistance" is too high and you may not be able to turn off the phototransistor and generate a logic 0. Use a resistor and its value will generally be < 10k.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 13
Posts: 1237
Arduino rocks
|
 |
« Reply #20 on: October 11, 2012, 08:41:10 am » |
D4 is redundant in this circuit, unless you accidentally short the input of the opto isolator to the output. It might be a useful protection device if you were not using optical isolation. It is also connected the wrong way round.
thanks, i thought this is what fungus ment to be able to give aditional protection in case there is a surge in the 80Vdc. dont understand what he ment then.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Edison Member
Karma: 13
Posts: 1237
Arduino rocks
|
 |
« Reply #21 on: October 11, 2012, 08:42:55 am » |
the internal pullup resistor from the arduino active. That pull-up "resistance" is too high and you may not be able to turn off the phototransistor and generate a logic 0. Use a resistor and its value will generally be < 10k. ok i just say the internal pullup resistor of the arduino is 20Kohms. I will use a 10k then ! thanks for the information dhenry
|
|
|
|
|
Logged
|
|
|
|
|
United Kingdom
Online
Faraday Member
Karma: 130
Posts: 4643
|
 |
« Reply #22 on: October 11, 2012, 08:44:21 am » |
the internal pullup resistor from the arduino active. That pull-up "resistance" is too high and you may not be able to turn off the phototransistor and generate a logic 0. Use a resistor and its value will generally be < 10k. From the data sheet, the off-state collector current of the 4N35 is 50nA max at 25C. So the internal pullup resistor will be fine unless the OP puts the opto isolator somewhere very hot, or he needs a faster turn-off time (but we're only talking about a few hundreds of microseconds at most).
|
|
|
|
|
Logged
|
Formal verification of safety-critical software, software development, and electronic design and prototyping. http://www.eschertech.com
|
|
|
|
0
Offline
Edison Member
Karma: 13
Posts: 1237
Arduino rocks
|
 |
« Reply #23 on: October 11, 2012, 08:48:50 am » |
Thanks dc42, i will try both internal and external pullup resistor and decide. I dont need such a short timing. The circuit so far...
Thanks, any additional information is welcome. Still trying to figure out where the zener would be at use, maybe its after the R1 to ground.
|
|
|
|
|
Logged
|
|
|
|
|
|