Fan issues

Dear all,

I have an issue with my peltier set up. When i turned on the dual fan heat sink, my button attached interrupt will be activated out of nowhere. I thought it was the power supply causing the interference but after moving the button away from the power supply it still happens. I am using the relay to control the fan but after removing the fans and directly connect it to the external power supply, the same thing about the interrupt happened again everytime i connect the heat sink fans directly to the external power supply.

Sincerely,
king

No code, no schematic, vague circuit description. Very difficult to provide concrete help. My wild guess is that the pin that the button is connected to is floating when not pressed. See this page for how to wire buttons.

groundFungus:
No code, no schematic, vague circuit description. Very difficult to provide concrete help. My wild guess is that the pin that the button is connected to is floating when not pressed. See this page for how to wire buttons.

The current issue is that how is it possible that the interrupt is activated by turning the heat sink 12v 0.4a fans on with entirely another power supply output (initially connected to the relay). i did not use any coding to activate the interrupt other than changing the state of the button. i have used the internal pull up resistor for the arduino. is it possible that the button is very sensitive to the interferences coming out of the fan cause this only happens when the heat sink fan is turned on.

Hi,
Use an external pullup as well, start with 10k.

Why do you need an interrupt on a button?
How big is your code?

How have you got your power supply wired to your project?
Are you daisy chaining gnds or do the fan supply wires go directly back to the power supply?

What is your power supply and have you measured its output voltage when you turn the fans on?

What are the spacs of your fans and power supply?

Can you post a picture of your project please, so we can see your component layout?

A schematic would be very helpful, Thanks.. Tom.... :slight_smile:

How far from the Arduino is the button (how long is the wire)? Have you tried a stronger (lower value) external pullup resistor?

What relay are you using, a relay module or a bare relay with a driver?

Why is it necessary to us an interrupt with a button switch? It is very seldom that a button switch requires an interrupt.

You can see your project, we cannot. A schematic, your code and pictures would help us to understand.

groundFungus:
How far from the Arduino is the button (how long is the wire)? Have you tried a stronger (lower value) external pullup resistor?

What relay are you using, a relay module or a bare relay with a driver?

Why is it necessary to us an interrupt with a button switch? It is very seldom that a button switch requires an interrupt.

You can see your project, we cannot. A schematic, your code and pictures would help us to understand.

The arduino is pretty far away from the button. The relay i use is a module relay. The interrupt for the buttons is to stop the cooling and heating.

TomGeorge:
Hi,
Use an external pullup as well, start with 10k.

Why do you need an interrupt on a button?
How big is your code?

How have you got your power supply wired to your project?
Are you daisy chaining gnds or do the fan supply wires go directly back to the power supply?

What is your power supply and have you measured its output voltage when you turn the fans on?

What are the spacs of your fans and power supply?

Can you post a picture of your project please, so we can see your component layout?

A schematic would be very helpful, Thanks.. Tom.... :slight_smile:

The code is very big. Code seems to be working finely. Sometimes there is an interrupt, sometimes there isnt. The fan power supply go directly back to the power supply, i have tried chaining it too. I have even tried isolating the gnd of the sensor or button or both. The specs of the fan power supply is 12v 0.2a.

Hi,

heat sink 12v 0.4a fans

Powering 2 x 0.4A fans = 0.8A load.

The specs of the fan power supply is 12v 0.2a.

Power supply rated at 0.2A, or is there a typo?

Why do you need an interrupt for a press button?
Have you tried your code without an interrupt?

Thanks.. Tom... :slight_smile:

TomGeorge:
Hi,

Powering 2 x 0.4A fans = 0.8A load.

Power supply rated at 0.2A, or is there a typo?

Why do you need an interrupt for a press button?
Have you tried your code without an interrupt?

Thanks.. Tom... :slight_smile:

The interrupt for the button is to actually stop the test and using an interrupt is much more efficient. Im currently using two fans which is 0.2a each. I connect them in parallel to give me 0.4a. Im pretty sure is the interference from somewhere. So i will try with the 10k resistor first and get back if it doesnt work or other advice will help.

Hi,

heat sink 12v 0.4a fans

Powering 2 x 0.2A fans = 0.4A load.

The specs of the fan power supply is 12v 0.2a.

Power supply rated at 0.2A, or is there a typo?

Thanks.. Tom... :o

TomGeorge:
Hi,
Powering 2 x 0.2A fans = 0.4A load.

Power supply rated at 0.2A, or is there a typo?

Thanks.. Tom... :o

is a typo

Still no code and no schematic. How can we debug what we can't see? Please stop wasting time. Post code and schematic or just stop.

No, an interrupt is NOT the most efficient way to handle a button. It seems that way to noobies all the time. But it isn't.

kingofdeath20:
is a typo

But you can't be bothered to tell what it should be, can you?

This is indeed becoming an exercise in wasting time. Nothing more sensible can be said based on the information provided, which is totally insufficient.