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?
-
1The motors are connected directly to the Arduino? Or do they contain their own driver circuitry...?Majenko– Majenko2017年11月15日 14:02:40 +00:00Commented Nov 15, 2017 at 14:02
-
I used SSr (Solid State Relay) to turn on and turn off my motor.FelipeFonsecabh– FelipeFonsecabh2017年11月15日 15:04:27 +00:00Commented Nov 15, 2017 at 15:04
-
Why doesn't your diagram show the SSRs then?jose can u c– jose can u c2017年11月15日 15:16:33 +00:00Commented 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.Jot– Jot2017年11月15日 18:19:10 +00:00Commented 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?FelipeFonsecabh– FelipeFonsecabh2017年11月16日 13:38:11 +00:00Commented Nov 16, 2017 at 13:38