Hello, I tried to test the auto humidifier where a humidifier purification will turn on based on relay. But I just can't get the humidifier to turns on whenever the relay turns on. I already solder the push button of the humidifier but it just wont do it. After I solder the push button pin 1 and pin 2, not only it won't turn on based on relay but also didn't allow me to turn on manually using the push button (I thought I didn't solder it correctly so I tried to manually turn it on). Help! where did I do wrong?
// Pin definitions
const int relayPin = 8; // Relay module connected to pin 8
void setup() {
// Initialize the relay pin as an output
pinMode(relayPin, OUTPUT);
// Start with the relay turned off
digitalWrite(relayPin, LOW);
}
void loop() {
// Turn on the relay (humidifier is ON)
digitalWrite(relayPin, HIGH);
delay(5000); // Wait for 5 seconds
// Turn off the relay (humidifier is OFF)
digitalWrite(relayPin, LOW);
delay(5000); // Wait for 5 seconds
}
I think there is something to do with the humidifier, but I just couldn't get my hands into it. Please help...
I would first check the wiring on the humidification device, particularly at this location...
Being stranded wire, there could potentially be a stray strand that is shorting it out, and I would also check your solder job because even a slight crack or cut can be enough to prevent electricity from flowing.
Also, looking at your schematic I saw this area on the Humidifier chip:
I would have to see the front of the chip itself rather than just a picture of a generic chip on the schematic, but sometimes the white circle with half of it shaded is usually where the battery connects. One half is positive the other negative, in which case, you may have connected it to the wrong spot...
Hi! thank you for replying! I followed your instruction and redo it again which cut the wire and make sure nothing is shorting out but it's still the same. I think the circle with positive and negative is correct because I did some wiring testing and this is how it's turns out.
It would greatly help (us) if you would post what gadgets you got. The humidifier looks like a piezoelectric transducer, but there are if not thousands, hundreds of them. Also your schematics doesn't show the powersource for the Arduino etc. Also, what powers the humidifier? The only thing I couldn't care less about at this stage is the humidity sensor (DHT11/22).
This push button, you solder it to the humidifier board? Why?
Hi! thank you for replying! I followed your instruction and redo it again which cut the wire and make sure nothing is shorting out but it's still the same. I think the circle with positive and negative is correct because I did some wiring testing and this is how it's turns out.
I don't worry about the humidity sensor at all because so far it works. Only one component left that I have to connect and work it out is the mist humidifier. I solder the button because I thought it would connect the electricity and hence turns on whenever I connect it to power supply (it supposed to be that way). All of the soldering I did because I want to connect it to the relay module and let the relay module be the switch to turn the mist humidifier on. The mist humidifier is supposed to automatically turn on whenever the relay turn on. That's the purpose of the button soldering.
Arduino - Uno
Relay - I dont know the number but it's 5v relay module
Humidifier - DHT11
Power supply - I just take an AC 5v charger at my storage. Hence I don't know the number.
Fan - same as the power supply.
Mist humidifier - My teammates said its 5V Mini USB Humidifier Air Purifier Circuit Board Driver Hot Atomization 4E3W J9S7.
Believe me, we as students were asked to scatter to the storage room and pick up whatever available on the ground, no label, no module number because the stuff were old and reused. I didn't mean to offend you in any way but it's just exhausting doing this because I been looking at how to fix this around 2 weeks and on the edge of giving up.
I admire you're endurance, I would probably shelve it long before.
But it doesn't change the fact that we're blind to what's going on w/o knowing your setup.
PSU, no sticker?
You mean it's rated 5 V too.
Well, just knowing everything 5 V gives a small portion of info. Lets say your PSU is rated 250 mA, your humidifier 5 V / 2 W = 400 mA, you blow the power budget just for the humidifier. This is just an example.
It will still work with a relay, you just need to change your code so that it acts like a push button.
Have the relay close for 200ms then open to turn it on, then turn on again for 200ms then open to turn it off.