Using Optocouplers with Propeller
It has been suggested to me·many times to use optocouplers between the propeller and my L298. I have recently aquired some LOC112 from CLARE. I have the CLARE Datasheet for this item, but there is no application circuits and I'm not quite sure how these are connected in circuit. Has anyone used these 8 pin DIP Optocouplers, or know of a different datasheet for this item?
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======
······ I'll try everything once [noparse]:)[/noparse]
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======
······ I'll try everything once [noparse]:)[/noparse]
Comments
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
Post Edited (Leon) : 6/22/2009 12:47:42 AM GMT
-Mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======
······ I'll try everything once [noparse]:)[/noparse]
POWER--- +diode- ---- 22R
(TO REGULATOR)
+470uF- GND
The trouble is that motors can be very cruel to power supplies and the voltage can drop severely which even momentarily will reset the Prop. Also I mentioned ground connections which basically means that the Prop's ground should be connected back to the source independently from the motor's (L298) ground. Note that the L298 has a logic supply ground on pin 9 which follows the Prop's ground so you should not simply join this to pin 8 (power GND).
*Peter*
You could use the LOC112 as a digital interface but the 4N25 is a fraction of the price, and easier to use. As Peter says, your problem won't be solved by using an opto-coupler, anyway.
Leon
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Amateur radio callsign: G1HSM
Suzuki SV1000S motorcycle
As far as the optocoupler I thought It was suggested because of the voltage difference between the 3.3v (prop) and 5v+ of the L298 so i don't fry my microcontroller.
-mike
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
======
······ I'll try everything once [noparse]:)[/noparse]
Adding a 4.7k resistor in parallel could reduce capacitive effects. Just try your opto isolators. If they work, don't worry about it. Theory often gets in the way of experimentation.
Applying separate grounds is always a good idea with motors. EMI is evil.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
JMH