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.
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.
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....
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.
Why do you need an interrupt for a press button?
Have you tried your code without an interrupt?
Thanks.. Tom...
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.
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.