Maker Pro
Maker Pro

Momentary switch to power ON a circuit

Forcerouge

Jun 28, 2024
6
Joined
Jun 28, 2024
Messages
6
Hello Everyone,

I'm a noob trying to learn electronics
I'd like to make something extremely basic: a simple momentary switch in order to switch ON and OFF a small fan and a status LED.
The thing needs to be powered by a lithium battery, so with voltages ranging from 4.2V to 3V or so.

I have a small charging system (TP4056) and a small BMS system (DW01A with a 8205A dual mosfet) on this board. These work fine, the battery charges and status LEDs work ok (red when charging, green once charged).

When I press the momentary switch, I want the current coming from the battery to power a small 5V fan and a blue LED to indicate that the thing is working.
In order to do that, I searched the internet and found this circuit: switch circuit in Falstad simulator:
1719590031984.png

It worked great on the simulator, so I assumed it was fine and I designed a small PCB board:

1719589392201.png



Problem is it doesn't seem to work at all after I made the board, when I press the button nothing happens.
I tried switching C4 to 10uF since it seemed to work better in the simulator, but it didn't make any difference.

Do you guys have any idea what could be going on here?
Thanks a lot in advance for your answers
 
Last edited:

danadak

Feb 19, 2021
802
Joined
Feb 19, 2021
Messages
802
Just for future reference you can do this in mBlock on a small micro,
ATTINY85, with more accurate timing and flexibility of functionality,
and debouce the switch as well : (I think this would work)
1719605935663.png

mBlock takes your block program and generates Arduino code and can either program directly a low cost board
like the Nano or use the Nano to program the 8 pin dip type of part. Lots of fun.

1719605965563.png


Regards, Dana.
 

Attachments

  • Fan and LED Time Delay.zip
    55.5 KB · Views: 0

Delta Prime

Jul 29, 2020
2,152
Joined
Jul 29, 2020
Messages
2,152
trying to learn electronics
I'd like to make something extremely basic: a simple momentary switch in order to switch ON and OFF a small fan and a status LED.
The thing needs to be powered by a lithium battery, so with voltages ranging from 4.2V to 3V or so.
It is not extremely basic.
You have 4.2Vdc maximum lithium ion battery
3.7Vdc nominal. Trying to power a 5Vdc fan?
You see what I mean.... :)
I want the current coming from the battery to power a small 5V fan and a blue LED to indicate that the thing is working.
More reading is necessary. Good luck to you.
 
Last edited:

Delta Prime

Jul 29, 2020
2,152
Joined
Jul 29, 2020
Messages
2,152
Don't think so.. in either case you're going to need a DC to DC converter. A boost converter. Advantages they come in all flavors to increase boost voltage or decrease buck voltage or both a boost buck converter.
photo_1719629713805.png
 
Last edited:

Forcerouge

Jun 28, 2024
6
Joined
Jun 28, 2024
Messages
6
It is not extremely basic.
You have 4.2Vdc maximum lithium ion battery
3.7Vdc nominal. Trying to power a 5Vdc fan?
You see what I mean....
Not really sure what you mean actually. The 5V fan still works just fine at 3V, it only spins slower, which does not matter for this particular application.
The problem is that it just doesn't turn on at all, even with the battery fully charged.
But this is actually my second version of this circuit. The first one turned on and everything was working perfectly... except it wouldn't turn off when pressing the button again.
 
Last edited:

Forcerouge

Jun 28, 2024
6
Joined
Jun 28, 2024
Messages
6
Just for future reference you can do this in mBlock on a small micro,
ATTINY85, with more accurate timing and flexibility of functionality,
and debouce the switch as well : (I think this would work)
View attachment 64022

mBlock takes your block program and generates Arduino code and can either program directly a low cost board
like the Nano or use the Nano to program the 8 pin dip type of part. Lots of fun.




Regards, Dana.
Thanks, I'm certain this would work and this is a valid solution, but in my opinion using a microcontroller to do this is a bit overkill. I know how to use an arduino so I could even program in the standard arduino IDE if needed. But I appreciate the suggestion, thanks.

My goal is to learn how to make this work in a more "professional" way, just using transistors and passive components.
I think I understood how it is supposed to work after spending a lot of time experimenting with it on Falstad simulator and I'm fairly sure it should work in real life, but I obviously made a mistake somewhere between the simulator and manufacturing and I just can't find it.

I do not need a voltage converter. I know this for sure because I'm actually trying to replicate a commercially available product in order to improve its function to suit a particular need I have in my homeshop. And this product doesn't have any voltage converter, it just takes raw battery power, sends it to the fan through a similar power latching system using a momentary switch.
 

Forcerouge

Jun 28, 2024
6
Joined
Jun 28, 2024
Messages
6
Two below...one from talkingelectronics ........ https://www.talkingelectronics.com/te_interactive_index.html
look for "555 toggle a relay"

....and then there is this video off youtube....
Yes I've seen most videos on the subject already, but this particular one is using a completely different system. I'd like it to work with the components I already have, I guess for an electronics engineer it should be relatively easy as these momentary push button switches are pretty much everywhere around us but for me it's a bit like dark magic.
 

danadak

Feb 19, 2021
802
Joined
Feb 19, 2021
Messages
802
Thanks, I'm certain this would work and this is a valid solution, but in my opinion using a microcontroller to do this is a bit overkill. I know how to use an arduino so I could even program in the standard arduino IDE if needed. But I appreciate the suggestion, thanks.

My goal is to learn how to make this work in a more "professional" way, just using transistors and passive components.
I think I understood how it is supposed to work after spending a lot of time experimenting with it on Falstad simulator and I'm fairly sure it should work in real life, but I obviously made a mistake somewhere between the simulator and manufacturing and I just can't find it.

I do not need a voltage converter. I know this for sure because I'm actually trying to replicate a commercially available product in order to improve its function to suit a particular need I have in my homeshop. And this product doesn't have any voltage converter, it just takes raw battery power, sends it to the fan through a similar power latching system using a momentary switch.

Of course low end micros these days are like OpAmps and Regulators, simple, low cost,
and so much more flexible. And generally save board area, componefornt count, and
more reliable due to lower component count. Youtube has a series of videos on 3 - 20 cent
micros, quite capable actually, not great but adequate support.

Some higher end micros nowadays have the following resources (multiple copies in most cases)
in them, for the higher end more complex designs :

1719658335326.png

But I appreciate discrete designs, can be lots of fun to explore.
 

danadak

Feb 19, 2021
802
Joined
Feb 19, 2021
Messages
802
A little better sim :

1719745405989.png


The initial phase is power up, then at 3 sec a switch pulse on.

Regards, Dana.
 

Attachments

  • 1719745298395.png
    1719745298395.png
    173.6 KB · Views: 0
Top