Author Topic: Convert button to always on  (Read 901 times)

0 Members and 2 Guests are viewing this topic.

Offline PizzaVikingTopic starter

  • Newbie
  • Posts: 2
  • Country: se
Convert button to always on
« on: October 30, 2021, 06:09:41 pm »
I've bought a cheap dehumidifier from Amazon that I want to convert that its always on.
The idea is to control it with a timer switch and turn on/of remotely. Now the dehumidifier has a button that you need to push to power it on. I wanna convert it to be always on (I'll controll it with the timer on the power supply instead). The thing is it needs to be pushed if you apply the power. Holding the button in won't work and neither does brighong the contacts on the circuit board.

How do I go about to make it come on if I plug in the power cord without pushing the jävla [Swedish] button?
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Convert button to always on
« Reply #1 on: October 30, 2021, 06:57:58 pm »
You might need to draw a schematic of that board in order to figure out what it's doing. A simple way is to add a one-shot circuit that effectively pushes the button whenever power is applied but if all the logic for the button is on that little board there it should be easy to just bypass. I don't see a microcontroller, the two 8 pin ICs look like mosfets.


Actually looking closer the one in the center might be a microcontroller, it has more pins connected separately. Can you read the part numbers on the chips?
 

Offline PizzaVikingTopic starter

  • Newbie
  • Posts: 2
  • Country: se
Re: Convert button to always on
« Reply #2 on: October 31, 2021, 06:33:58 am »
Nothing written on the components...must be military secrets  :clap: :wtf:
 

Offline mariush

  • Super Contributor
  • ***
  • Posts: 5135
  • Country: ro
  • .
Re: Convert button to always on
« Reply #3 on: October 31, 2021, 07:06:40 am »
My mind went to a circuit with a 555 IC and a transistor to make the connection for a second or two. See https://www.electronics-tutorials.ws/waveforms/555_timer.html


Or could be a job for a 6-8 pin microcontroller (there's <1$ pics/arduino and 10-15$ programmers).  Program the chip to wait 1-2 seconds from power on, then turn on an output pin for 1-2 seconds then turn off the output. A transistor or mosfet on the output pin would make the connection like you manually press the button.   

Probably could also do it with a RC delay circuit and a schmitt trigger inverter or something (set r and c so that voltage rises slowly to some threshold and once the threshold is reached the inverter flips from off to on, "pressing" the button.  You'd have to figure a way to release the button press.
« Last Edit: October 31, 2021, 07:08:45 am by mariush »
 

Offline james_s

  • Super Contributor
  • ***
  • Posts: 21611
  • Country: us
Re: Convert button to always on
« Reply #4 on: October 31, 2021, 08:03:09 am »
Well draw a schematic of the button and the stuff immediately connected to it and see if it looks like anything recognizable. Also what does that board do exactly? Does it just switch power on to some other circuit or does it have multiple things connected to it?
 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3043
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: Convert button to always on
« Reply #5 on: October 31, 2021, 08:33:22 am »
Educated guesses...



U3 is a voltage regulator.

The tab is ground, the pin closest to the 300R resistor is output voltage and the other is the input

The switch input to the mcu is the pin next to R3, R3 is a pullup

When switch K1 is pushed therefore the indicated MCU Input goes low and things happen.

So.  You could grab a handy arduino out of your parts bin, power it from the voltage regulator which is probably 3.3 or 5v or something similarly useful, connect one of it's pins to the MCU input, and


Code: [Select]

   void setup()
  {
       delay(10000); // wait 10s
       pinMode(whateverpinitis, OUTPUT);
       digitalWrite(whateverpinitis, LOW);
       delay(500); // hold for half a second
       digitalWrite(whateverpinitis, HIGH);
       pinMode(whateverpinitis, INPUT;
  }

   void loop()
   {
      // nothing
   }

Or use one of the other bajillion ways to skin that cat, but a ready to roll arduino pro-mini or nano is probably the quickest solution.
« Last Edit: October 31, 2021, 08:38:15 am by sleemanj »
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 

Online DavidAlfa

  • Super Contributor
  • ***
  • Posts: 6228
  • Country: es
Re: Convert button to always on
« Reply #6 on: October 31, 2021, 10:33:19 am »
You can bypass the mcu control, so it works all the time whenever it has power.
Desolder it from the board and enable the mosfet gate:





If you want to keep it, a very simple alternative using CMOS:



After power on, the output stays high for ~13s (idle), then is set low for 260ms, and goes idle again. Exactly like a button would do.

You can use a 4093, 74HC/HCT132, HEF4093B... it must be a CMOS version (TTL gates have lower input impedance), also Schmitt trigger to ensure glitch-free operation.

« Last Edit: October 31, 2021, 11:06:01 am by DavidAlfa »
Hantek DSO2x1x            Drive        FAQ          DON'T BUY HANTEK! (Aka HALF-MADE)
Stm32 Soldering FW      Forum      Github      Donate
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf