2

I have an project which control a heat exchanger.

I read 4 temperature sensors DS18B20, a distance with HC-SR04 Ultrasonic Sensor, and a flow with YF-S201 (with attach interrupt). I can turn on and off a monophasic motor with Arduino too.

I have many interference problems with i turn on my motor, the readings of temperature fail with big frequence and i have many errors with interrupt counter.

I read many posts about interferences, and one most important factors are high impedance of floatings pins.

I use Arduino Due, then many pins are floating. I have to put a pull-down resistors in all pins?

My project looks like the architeture in the image link bellow: https://i.sstatic.net/glo5L.jpg

The code of my project can be found in : https://github.com/felipefonsecabh/ArduinoCode/blob/ArduinoNoNavigation/ArduinoCode.ino

Any opinion?

asked Nov 15, 2017 at 13:46
6
  • 1
    The motors are connected directly to the Arduino? Or do they contain their own driver circuitry...? Commented Nov 15, 2017 at 14:02
  • I used SSr (Solid State Relay) to turn on and turn off my motor. Commented Nov 15, 2017 at 15:04
  • Why doesn't your diagram show the SSRs then? Commented Nov 15, 2017 at 15:16
  • Don't use the weak internal pullup, use external pullup resistors. For example with 4k7 for the 1-Wire bus, the buttons, and perhaps the flow meter as well. Check your grounding thoroughly, and after that check it once more. Don't let the returning current of the motors reach the GND of the Arduino Due board. A LM35 is never accurate, unless your voltage is perfectly accurate and stable. I'm sorry to say, but the usage of millis is totally wrong. Rewrite that. Use the blink without delay example: arduino.cc/en/Tutorial/BlinkWithoutDelay The temp[0...3] is used for different things. Commented Nov 15, 2017 at 18:19
  • I disagree about usage of millis ... i try to use the same way of this example (blinkwithout delay) ...what's wrong? Commented Nov 16, 2017 at 13:38

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.