120 line to 5v signal


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Location
    Houston, TX
    Posts
    43

    Default 120 line to 5v signal

    Building a remote water valve. The valve motor limit switchs provides full line voltage when limit is achieved. I want to use this for transmission of feedback to the controler.

    I know I can use transformers or relays, but it seems there must be a more elegant way. 120 volt relays are bigger than I like, as are transformers. Considered using current sensors which would signal limit achieved or an open connection, but that would not warn me about open trouble.

    I will probably wind up making my own optocoupler with the smallest 120v bulb I can find unless I can find a better ready made solution.

    Any thoughts will be appreciated.

    AMay

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Can't you butt a lever switch up against the valve itself? Valve arm hits the lever switch, connects the dots, send the 5v...
    Or do you need an actual voltage that is proportional to the voltage going to the valve itself?

  3. #3
    Join Date
    Aug 2005
    Location
    Houston, TX
    Posts
    43


    Did you find this post helpful? Yes | No

    Default

    No, a small motor turns a shaft using gears. The limit switches are operated by cams on the shaft. There is not room to add another microswitch,

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by AMay View Post
    No, a small motor turns a shaft using gears. The limit switches are operated by cams on the shaft. There is not room to add another microswitch,
    120VAC when the motor is at the limit? Maybe tap that 120VAC, plug it into a small wall-wart like power supply and send that output to the controller?
    Past that, I would think a series current limiting resistor along with a voltage divider (and maybe a ZENER for protection) would do the trick...or a voltage divider that divides it down to +12v (or whatever) and feed that into a 7805 regulator.

    I do like your light bulb idea though...simple, effective, practically zero thought/effort required
    Did something like that awhile back. Needed to switch 120VAC with a PIC. Didn't want to mess with the AC, so I took a PIC, a servo, a chunk of threaded rod and a standard wall light switch...programmed the PIC to move the servo to move the light switch handle to turn power on/off. Almost perfect isolation...

  5. #5
    Join Date
    Dec 2005
    Posts
    1,073


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by AMay View Post
    I will probably wind up making my own optocoupler with the smallest 120v bulb I can find unless I can find a better ready made solution.
    There are AC optocouplers intended for sensing presence of mains voltage.

    However, since this is a PIC forum, Microchip AN236, which is about controlling X-10 devices, shows how to detect mains zero-crossing just using a 5M resistor and the built-in clamping diodes (on most PIC pins).

Similar Threads

  1. Using input from Switch to control a loop
    By MrRoboto in forum mel PIC BASIC
    Replies: 9
    Last Post: - 2nd February 2009, 05:02
  2. Loop with two motor and 2 sensors
    By MrRoboto in forum mel PIC BASIC
    Replies: 4
    Last Post: - 8th December 2008, 23:40
  3. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22
  5. One wire serial comms on +5V line
    By MegaADY in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 21st May 2005, 12:49

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts