Need to "emulate" a servo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PinGuy
    Senior Member
    • Oct 2016
    • 74
    • Argentina

    #1

    Need to "emulate" a servo

    I need some ideas.
    I am troubleshooting a water warmer that uses a servo to control gas flow and get the desired water temperature.
    The problem is that the servo is broken, and I can't find a replacement 'soon'.

    It has 4 wires, 2 go to the motor, and the other 2 to one of those "glass" magnetic switches, that gets switched on and off as one of the gears (which has magnets) spin.
    If the heater does not sense the switch pulses, the display shows an error "E2" and shuts off. If I manually "emulate" the switch closures, by continuously shorting and unshorting its wires with half a second delay, the heater starts, and I can get a "manual" control of temperature by spinning the gears to the desired position. It works as a temporary solution, which is what I'm needing.
    The question is how can I, with the two wires that go to the motor, emulate the 1/2 second pulses needed by the MCU?
    Neither of the motor wires are positive or negative, I think this is due to the change of direction needed to raise/lower the gas.
    I tried using an NPN transistor with the base on one of the motor's wires (both have power when measured against ground when the heater powers on), and the switch wires at the emitter and collector, but it still shows E2.
    Sorry if this is a basic question but I'm quite stuck with this
  • stj
    Great Sage 齊天大聖
    • Dec 2009
    • 31134
    • Albion

    #2
    Re: Need to "emulate" a servo

    555 timer circuit?

    Comment

    • Curious.George
      Badcaps Legend
      • Nov 2011
      • 2305
      • Unknown

      #3
      Re: Need to "emulate" a servo

      Originally posted by PinGuy
      I need some ideas.
      I am troubleshooting a water warmer that uses a servo to control gas flow and get the desired water temperature.
      The problem is that the servo is broken, and I can't find a replacement 'soon'.

      It has 4 wires, 2 go to the motor, and the other 2 to one of those "glass" magnetic switches, that gets switched on and off as one of the gears (which has magnets) spin.
      If the heater does not sense the switch pulses, the display shows an error "E2" and shuts off.
      The first question you need to ask (and answer to give a better perspective on any solution you consider) is why the "system" expects this sort of feedback from the field. If it regards personal safety/fire hazard, that should seriously color any "temporary" solution you consider (ever hear of "permanent temporary fixes"? )

      After all, you're just "heating water", right? Can you live with unheated water for the time it takes to acquire a genuine replacement part? (if that part won't be available for months, will you leave your "temporary fix" in place for that duration??)

      The question is how can I, with the two wires that go to the motor, emulate the 1/2 second pulses needed by the MCU?
      Why can't you replace the switch/sensor with a reed switch and mount a magnet on the "gears" to allow it to operate closer to as originally intended? Let the MCU command the motor to jog back and forth but let the reed switch deliver the pulses (i.e., "short the contacts") that the MCU expects by sensing gear motion conveyed by the magnet(s).

      Comment

      • PinGuy
        Senior Member
        • Oct 2016
        • 74
        • Argentina

        #4
        Re: Need to "emulate" a servo

        Originally posted by Curious.George
        The first question you need to ask (and answer to give a better perspective on any solution you consider) is why the "system" expects this sort of feedback from the field.
        Upon power up, the motor spins and the MCU expect the feedback from the sensor. If it doesn't detect it, E2 is shown and stays there. No safety stuff here.

        Originally posted by Curious.George
        (if that part won't be available for months, will you leave your "temporary fix" in place for that duration??)
        Absolutely. The only drawback is having to adjust the temperature manually, but that doesn't need to change every day so it will be fine.

        Originally posted by Curious.George
        Why can't you replace the switch/sensor with a reed switch and mount a magnet on the "gears" to allow it to operate closer to as originally intended?
        Because the servo is unassembled in order to access the gear that moves the gas valve up and down.

        Originally posted by stj
        555 timer circuit?
        I guess a 555 timer will do the trick, but this all works with a single 1.5V battery so I will have to see where to get VCC from to avoid draining it.
        That's why I want to be able to use the VCC that the servo gets to "reply back". But I don't know how to drive the polarity change it gets from the MCU.

        Comment

        • budm
          Badcaps Legend
          • Feb 2010
          • 40746
          • USA

          #5
          Re: Need to "emulate" a servo

          So if the circuit detects the pulse from, the motor will then will be running at full speed or the feedback is used to maintain constant flow rate (what ever that rate is)?
          Never stop learning
          Basic LCD TV and Monitor troubleshooting guides.
          http://www.badcaps.net/forum/showthr...956#post305956

          Voltage Regulator (LDO) testing:
          http://www.badcaps.net/forum/showthr...999#post300999

          Inverter testing using old CFL:
          http://www.badcaps.net/forum/showthr...er+testing+cfl

          Tear down pictures : Hit the ">" Show Albums and stories" on the left side
          http://s807.photobucket.com/user/budm/library/

          TV Factory reset codes listing:
          http://www.badcaps.net/forum/showthread.php?t=24809

          Comment

          • Curious.George
            Badcaps Legend
            • Nov 2011
            • 2305
            • Unknown

            #6
            Re: Need to "emulate" a servo

            Originally posted by PinGuy
            Because the servo is unassembled in order to access the gear that moves the gas valve up and down.
            You've missed the point; mount (epoxy) one or more magnets to the "moving member" that the MCU is monitoring. Mount a reed switch proximate to them so that AS THE MEMBER MOVES, the reed switch opens and closes JUST LIKE THE ORIGINAL mechanism was designed to do. Reassemble everything (discarding the bits that have now been made redundant) and you've effectively REPLACED the defective component with a "work-alike".

            Thereafter, use it as originally intended (no more manually moving gears)

            [It's too bad you don't own a digital camera... ]
            Last edited by Curious.George; 07-18-2018, 11:01 PM.

            Comment

            • PinGuy
              Senior Member
              • Oct 2016
              • 74
              • Argentina

              #7
              Re: Need to "emulate" a servo

              Just wanted to follow this up, as the issue is solved. I ended building a 555 timer inside a 5V 500mA power supply, and 3 wires go out of it: Gnd, +1.5v (I added an LM317 to the PS) and the "Signal" that tricks the MCU. The C battery is not needed anymore so that's a plus. The "gas valve" gear is rotated manually to change temperature when needed.
              I had an LM555 and an NE555, neither one worked at 1.5V, so I used the 5V from the PS for VCC. Just in case, to the output I added a divider (with 2 resistors) to avoid sending 5V to the MCU. So that's it for now
              Thank you all for the ideas!

              Comment

              Related Topics

              Collapse

              • juergenb
                Nescafe Aeroccino, still fails with new Motor (red flashes only once)
                by juergenb
                Hi,

                i am asking for some Help.
                I have one of these Nescafe Aeroccino (Milk Frother) things with a bad motor.
                The Motor didn´t start anymore and internet is full of users just swapping the motor for a Mabuchi RF-500TB-12560.
                So i got a few of these from Banggood.

                I swapped the motor and now i have a new fault condition.

                In a working Frother you would press the start button, it will light red and work for a few minutes.
                If you press longer it will light blue and just mixup the milk.

                With the new Motor it just starts...
                03-23-2021, 11:24 AM
              • sbt123
                charnwood w821 mini wood lathe motor problem
                by sbt123
                hi there,im having a look at repairing a wood lathe for my dad,(charnwood w821)the problem is when turning up the variable speed control,the motor starts to stop and start by itself,if i continue to turn up the speed it will trip the mcb in the consumer unit,there is also a slight smell of burning from the speed controll box.,Another strange symptom is the lathe can be unplugged from the mains after switching it off and the motor will spin a couple of times by itself,so far ive put a new speed controll potentiometer on and new motor brushes,ive also tested the motor windings and everything looks...
                10-27-2024, 03:43 AM
              • sam_sam_sam
                1970 Metal Lathe Control Circuit blowing fuses on the 120 volt section failing meager test below 60 mega ohms
                by sam_sam_sam
                I was working on this machine yesterday and I now going to use an incandescent lights instead of a fuses to figure out what the issue is with it blowing control voltage rail but this not the only issue the coolant pump failed the meager test as well as the main motor as well this motor has 12 motor wire leads instead of the normal 9 wires

                This metal lathe has a weird motor setup it has a soft start motor with a “Y” and a delta type of motor winding setup and it is not done in the motor pucker head enclosure it is with four different contactors wired in a configuration I have not...
                12-29-2024, 07:18 AM
              • cjard
                A motor controller is a power supply, right?
                by cjard
                Hoping someone here will be able to provide a few pointers with this. I've got a motor controller board for a device that moves a caravan. A DC motor on each wheel is supplied with 12v DC or -12V DC depending on whether the remote control is pushed in "forward" or "backward" mode. The control is arranged by having 2 relays per motor that, at rest, are all connected to the negative.. If the motor is to go forwards, then relay 1 activates meaning the motor sees "positive negative" on its terminals 1 and 2. If the motor is to go backwards then relay 2 activates meaning...
                10-14-2020, 01:24 PM
              • G0RIT
                Reebok one GT40s treadmill lift motor runs at switch on
                by G0RIT
                Good evening I am working on a Reebok oneGT40s treadmill. It had a flashing display which the replacement of D3 rectified. However the lift motor now runs when the mains is turned on and does not stop. If I then select start so the tread motor runs and disconnect the up lead to the lift motor it stops. If I then reconnect the lead the lift motor works as it should with the controls. It will continue to work correctly until the mains is turned off and on again, or the safety device is removed and replaced. It then runs again and only by disconnecting and reconnecting the up lead will it operate...
                06-23-2022, 05:57 PM
              • Loading...
              • No more items.
              Working...