--0015174791866b87c8048232e608 Content-Type: text/plain; charset=ISO-8859-1 Perhaps the attached scheme could replace the dedicated transformer and related parts. The optocoupler can be Vishay VO221AT 1 mA LED current Optocoupler, Photodarlington Output, Low Input Current. It should work at a fraction of 1 mA current through its LED. Regards. === Why not some simple scheme with Zener diode and an optocoupler to send a signal to the PIC when the peak voltage is higher than some certain level? Two voltage dividers and the optocouple between them. One divider would have a Zener instead of the bottom resistor. Select the resistor values the way that the shortest signal would correspond to the bottom value of the desired voltage range. Measuring length of the signal you could figure out the peak voltage. Also a PIC could adjust the divider ratio using relays if you need to change the measured range dynamically. === On Fri, Mar 19, 2010 at 10:42 PM, Dario Greggio wrote: > Marechiare ha scritto: >> It is not unusual that the trade-off for a transformer is that the >> secondary voltage drops 20% or even more under the full load. If this >> is the case, it may cause some difficulty to "measure 220V mains >> voltage with some coarse accuracy, say 1-2%" using the available >> secondary output. > > > No, this transformer is dedicated to this aim - measuring. > (it was taken into account :) - circuitry is powered by a couple of > Traco AC-DC and DC-DC modules) > > -- > > Ciao, Dario > -- > Cyberdyne > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --0015174791866b87c8048232e608 Content-Type: image/gif; name="1.gif" Content-Disposition: attachment; filename="1.gif" Content-Transfer-Encoding: base64 X-Attachment-Id: f_g6zu7v090 R0lGODlhcAIwAvcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/ /////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/ MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAm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sup+7m7w8YzwJgG57Dfe HHLv8C7GdAHsKELxAG/xLT3iVKLxyY3FF//vls7wDTLRGFHkDILaJD7EzUnyBT/t3v/u8j6h8gvC 8pVRwqkC8i3OudZj3KuNvKHC805O8z1h8wiC85yF8heB8SdC9Adv9Ibo8VOi9JAo9fcp8zkE80Xv 84FCvZqLGzofKANP9RWP9ado9j8C9tYs9kxvEU5PIWUf7ZmN9rKo9jzC9prs9naPE3FvVeRquIDf k0I/+NT19rKH94Y/1Ii/hlq/+GfOgYoP+R4xr277+JR/EYKL+V2B9FYluJOfuybfR41b+rZs+qdv +ryK+quv+qif+qXf+rH/+rLfuLVPR6t/ftME+7ZP+77P+r/v+sA//MJf/LNP/Mdv/L0P/J4POXN/ zNAf/XzC+f7z/NJ//dh/Hn8dQH7/qrre//3gH/7iP/7kX/7mf/7Kc/7qv/7s3/7u//7wj6OZnxOo XN/zXxtCJPH3Xxq6Q/373xkAQS1Vqn8FDR5EmFDhQoYNHT6EGFHiRIoVLV7EmFHjRo4dPX4EGVLk SJIlTZ5EmVLlSpYtXb6EGVPmTJo1bd7EmVPnTp49ff4EGlToUKJFjR5FmlTpUqZNnT6FGlXqVKpV rV7FmlXrVq5dvX4FG1bsWLJlzZ5Fm1btWrZt3b6FG1fuXLp17d7Fm1fvXr59/f4FHFjwYMKFDR9G nFjxYsaNHT+GHFnyZMqVLV/GnFnzZs6dPX8GHVr0aNKlTZ9GnVr1atatXb+GHVv2WGzatW3fxp1b 927evX3/Bh5c+HDixY0fR55c+XLmzZ0/hx5d+nTq1a1fx55d+3bu3b1/Bx9e/Hjy5c2fR59e/Xr2 7d2/hx9f/nz69e3fx59f/37+/f37DAgAOw== --0015174791866b87c8048232e608 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist --0015174791866b87c8048232e608--