The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

An electronics puzzle... by MrTrick 2006-11-19 12:55:59
I have a CX101B And a PIC12F683 running on 5V with a PWM output.

Goal: To be able to write a byte to the PWM register, and have that number appear on the LCD. I don't need all 3.5 digits of range, I just want 0 to 255.

The inputs of the CX101B must be isolated from the supply ground (unless it's a CX101BG), and a difference of 200mV will result in full deflection - 1999. Thus, for 0-255, I need to be able to present a voltage difference of 0V-25.5mV.

Question: If I wire the circuit up like so...

 PWM pin-------v^v^v--------v^v^v--------v^v^v------GND
                1.0M    |     X     |     1.0M
                       in1         in2
What should the value of X be, that 0-5V becomes 0-25.5mV? I know that it's impossible to get exact resistor values - there is a trim adjustment on the LCD display.

[ Reply ]
  Based on a quick Ohms Law calculation by radiowave9112005-12-19 18:48:51
    Yup... by MrTrick2005-12-19 18:55:11
      You could always try a multi-turn trimmer by radiowave9112005-12-19 19:05:35
        Yeah, so I'll be safe. by MrTrick2005-12-19 19:13:33
          Something you *may* run into is a by radiowave9112005-12-19 19:22:11
            It'd better not! by MrTrick2005-12-19 20:06:20

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)