0
\$\begingroup\$

I have a design project which is an infant incubator. This design consists of Fujitsu's MCU MB90f387s, a potentiometer (for input temperature), HSM20-G (analog temperature and humidity sensor), 2 bulbs, LCD, FAN and relay. I am using ADC of the MCU for the sensor and potentiometer.

The flow of the system is:

  1. read the input temperature
  2. on the bulb or fan until the sensor reads temperature similar to the input temperature.
  3. off the bulb or fan.

The problem is when the MCU turns the relay on (turning on the fan or bulb), there is a voltage drop in the power supply which makes the sensor and the potentiometer's data(reading) change.

A scenario: Initially, bulb1 off, bulb2 off, fan off

  1. input = 33C, sensor reading 29C
  2. bulb1 and bulb2 on, voltage drops .6V, input reading 30C, sensor reading 25C
  3. sensor reading 27C, bulb1 on, bulb2 off, supply voltage gains .3V, input reading 31C, sensor reading 26C

Explanation: whenever the mcu turn the bulb on, an amount of voltage drops, if the mcu turn on the other bulb, another voltage drop.

Question: What is the solution so that the sensor and the input temperature have consistent reading? i already read this, from arduino forum. Giving another supply (cellphone charger) to the sensor or relay makes the sensor/relay not work.

Please shed me some light about this. thank you.

\$\endgroup\$
  • \$\begingroup\$ I think you need a schematic so we can better diagnose your problem. Particularly, I'd like to see how your analog supply and high voltage supply are wired up. You mention a voltage drop, but without a schematic it's hard to tell which voltage you're talking about. \$\endgroup\$ – RYS Jun 12 '15 at 1:45
1
\$\begingroup\$

I asked here because its been 3 days solving this problem. Finally i got a solution.

The arduino forum which is included in my post has a solution for the problem but didnt solve mine. There is an answer to separate the GND pin of the relay to another GND pin in arduino but this doesn't solve my problem. What i did is separate both GND pin and VCC pin in the MB90F387s. That solved my problem. Thanks for everybody who wants to help.

\$\endgroup\$
  • \$\begingroup\$ If you have more information edit your original question, don't add an answer \$\endgroup\$ – geometrikal Jun 12 '15 at 5:42
0
\$\begingroup\$

Use a SSR (solid-state-relay) or two instead of mechanical ones. Most draw much less power to operate, so should decrease the voltage drop significantly. Perhaps one like the Sharp S108T01F would work. (Can switch 8A @ 120VAC from 1.2v @ 20mA (the driving element is a LED, so just add a resistor to limit current to 20mA.) About $4 each.

\$\endgroup\$
0
\$\begingroup\$

To a first approximation, also measure the voltage at the top of the pot. Assuming the system looks like

schematic

simulate this circuit – Schematic created using CircuitLab

you are currently measuring only the set voltage. When the load is switched in, it causes a voltage drop across wiring resistance (or it may be that the power supply is not quite stable under your load), so set voltage drops.

The idea is also to measure the top of the pot, which I have labeled "REF VOLTAGE". Then, instead of simply calling the desired temperature the SET VOLTAGE, you take the ratio of the two. For instance, if your set temperature can vary from 0 C to 40 C, you would compute it as 40 x (SET VOLTAGE/REF VOLTAGE). This is a well-known technique called ratiometric measurement.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.