4-20mA Industrial Pressure Sensor, Arduino IoT

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ต.ค. 2022
  • This example device is an electronic circuit that can sense the environment using a sensor that converts real-world measurements into electrical signals. The device processes the information from the sensors with the behavior described in the software (sketch). The device then interacts with the world using actuators, electronic components that can convert an electric signal into physical action, an OLED display, and a Computer monitor via the Internet.
    The 4-20 mA current loop has been the standard for signal transmission and electronic control in control systems since the 1950s. In a current loop, the current signal is drawn from a dc power supply, flows through the transmitter, into the controller, and then back to the power supply in a series circuit. The advantage is that the current value does not degrade over long distances, so the current signal remains constant through all components in the loop. The accuracy of the signal is not affected by a voltage drop in the interconnecting wiring.
    Arduino Cloud Getting Started
    docs.arduino.cc/arduino-cloud/
    Code & Hardware Information
    github.com/EETechFix/4-20mA_S...
    Silicon Pressure Transmitter Transducer Sensor 4-20mA Output G1/4" for Water Gas Oil(0-1.6MPA)
    www.amazon.com/gp/product/B07...
    Bushing, 1/4" Male NPT to 1/8" Female NPT, Reducing Forging Pipe Adapter Fitting
    www.amazon.com/gp/product/B08...
    Adafruit INA260 High or Low Side Voltage, Current, Power Sensor
    www.adafruit.com/product/4226
    www.mouser.com/ProductDetail/...
    Nano 33 IoT Product Reference Manual
    docs.arduino.cc/static/dabd9d...
    INA260 Datasheet
    www.ti.com/lit/gpn/ina260
    EXTRA Must Watch Informational Video ???
    assets.plandemicseries.com/pl...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 27

  • @stevenlightfoot6479
    @stevenlightfoot6479 2 หลายเดือนก่อน

    Thanks, this is excellent, just what I needed to translate my industrial sensor transmitter experience to the Arduino world!

  • @darijan96
    @darijan96 ปีที่แล้ว +2

    very detailed and thorough..great video!

  • @claudiorosa3902
    @claudiorosa3902 2 หลายเดือนก่อน

    Congratulations!

  • @johny759
    @johny759 ปีที่แล้ว

    Wooooooww amazing Thank you

  • @njineermike
    @njineermike ปีที่แล้ว

    Great explanation!

  • @raymundobeltranm
    @raymundobeltranm 4 หลายเดือนก่อน

    THANK YOU!!! Your two videos on how to connect and achieve pressure measurement were a great inspiration and I am in the process of waiting for the supplies to arrive so I can match and test your code and your connections. I thank you very much, excellent content that is super clear and very understandable, I only have one question, what elements do you put in the line towards the sensor in the positive? It is the green one and the blue one. I hope you can help me. Greetings.

    • @eetech_fix2393
      @eetech_fix2393  4 หลายเดือนก่อน

      I'm glad the videos were helpful. Concerning your question, I need help understanding; please clarify. Are you referring to the electrical connections or the airline fittings? Please reference a time from the timeline on the video. The green one and the blue one, please clarify.

    • @raymundobeltranm
      @raymundobeltranm 4 หลายเดือนก่อน

      @@eetech_fix2393 Thank you very much for answering so quickly, I thought it would take you a while to answer, I really appreciate your time in answering the questions, about the elements that I have doubts since minute 8:07 is in the line of the banana connector Va (red cable to the Vin+ of the INA230 that starts on line 55 of the breadboard towards line 15 of the positive, there is a green element and on line 17 there is a blue element, that's what they are, I hope I haven't confused my question any further, I hope you don't take my lack of knowledge the wrong way. to be able to express myself.

    • @eetech_fix2393
      @eetech_fix2393  4 หลายเดือนก่อน

      Thanks for the clarification; I'm ensuring we're on the same track and looking at the same things. The blue component (0.1uf ceramic capacitor) decouples (filters) electrical noise from the power supply. Excessive noise from the power supply is shunted through the capacitor to the ground, reducing its effect on the INA230. I installed the capacitor initially but found it unnecessary. The green component is the 62.5mA fuse to protect wiring and sensors.
      github.com/EETechFix/4-20mA_Sensor_Interface_Arduino/blob/main/4-20mA%20Project%20full%20schematic.pdf

  • @kunzho
    @kunzho 10 หลายเดือนก่อน +2

    I managed to get the setup but I have some issues: the current readings from the INA260 are in 1.25mA steps maybe because the resolution of the INA260 is 1.5mA?? Also there is a huge lag when changing the position of the sensor and getting the readings on the screen.. also getting the flickering of the second line in the screen.
    .

    • @eetech_fix2393
      @eetech_fix2393  10 หลายเดือนก่อน +2

      As advertised, the INA260’s 16-bit ADC allows for measurements over the 15A current range with a resolution of 1.5 mA.
      Try commenting out the “ //display.display(); .“ on line# 111 (IOT-code) or line# 94 (Non-IOT code) versions to correct that OLED flicker.
      Changing sensor position is also a change in the sensing environment, which requires some time to stabilize in the new environment. This code incorporates a low pass filter which accumulates readings over a 30 to 40-second time span to give you a smooth reading. The software filter requires another 30 to 40 seconds of readings to stabilize after you change the sensor position.
      You can reduce that time by reducing the filter's alpha, which will also reduce some smoothing, giving you a faster response. Change line#33 IOT or line#31 Non_IOT to:
      “ const float alpha 0.70; ” You can also try 0.40, No smoothing 0.0

    • @kunzho
      @kunzho 10 หลายเดือนก่อน

      Flickering is gone! And the lack is gone! Thanks! Any idea how to improve the measuring? Maybe measuring voltage with a 500ohm resistor? Can be done with the ina260?

    • @eetech_fix2393
      @eetech_fix2393  9 หลายเดือนก่อน +1

      You can try a 150-ohm resistor (3.3V board) or 225-ohm resistor (5V board) in series with your 4-20mA current loop and measure directly across the resistor using the ADC of your microcontroller. Those resistance values will give you an over-current and under-current measurement range. Be cautious of ground loops. Isolated Arduino ground, or ensure the resistor is on the lower end and measure from one end of the resistor to the ground.

  • @stevenallsopp5648
    @stevenallsopp5648 ปีที่แล้ว +2

    What could one do to speed up the response time?

    • @eetech_fix2393
      @eetech_fix2393  ปีที่แล้ว +2

      Change delay time between reads. Change code line #97, delay(200) to delay(50)

  • @nitinmaurya4693
    @nitinmaurya4693 ปีที่แล้ว

    Good evening sir
    Sir, what devise are used upper right hand side of adafruit 260 (where connect sensor wire)

    • @eetech_fix2393
      @eetech_fix2393  ปีที่แล้ว +1

      The LM317, configured as a constant current source in the upper right-hand corner of the schematic, is a standalone circuit. It’s not connected to the Adafruit INA260 or Arduino Nano 33 IOT. I intended to show how the LM317 could be used to simulate a 4-20 mA current loop circuit. However, I cut that explanation from the presentation due to time constraints.

  • @Livenewme
    @Livenewme 6 หลายเดือนก่อน

    I've been trying to get an alternative to read these high-pressure transducers we use for automation in the field. Is there a way that it could read the data and automatically control multiple valves. Im incredibly new to this kind of stuff but i know python if thats enough to start.

    • @eetech_fix2393
      @eetech_fix2393  6 หลายเดือนก่อน

      Controlling and monitoring multiple locations is easily done using WiFi; however, each location requires a WiFi connection. Another option is LaRa; it doesn't require WiFi. LaRa uses long-range radio singles to network location. LaRa range requires its location to be within a four-mile range city or a ten-mile range rural. The following links give a good explanation of each option.
      th-cam.com/video/UFCmTZUoZ1M/w-d-xo.htmlsi=4u4W4PX4zPWpK4Nk
      th-cam.com/play/PLT6rF_I5kknObk6lnQMpk5NIUB_vEHcNW.html
      th-cam.com/video/YQ7aLHCTeeE/w-d-xo.htmlsi=Zg9AkzXK6H_7BAMA

    • @charleslyell3748
      @charleslyell3748 หลายเดือนก่อน

      ​@@eetech_fix2393You mean LoRa.

  • @hal-sk7221
    @hal-sk7221 10 หลายเดือนก่อน

    Hello, how are you, the video is very impressive, but you could do the same design but with the INA226, because it doesn't work for me. By the way, greetings from Ecuador

    • @eetech_fix2393
      @eetech_fix2393  10 หลายเดือนก่อน

      Greetings to you in Ecuador. Absolutely, the INA226, INA219, and INA169 are good options.

  • @user-dr5xo4nd5k
    @user-dr5xo4nd5k 7 หลายเดือนก่อน

    Can i use ina219?

    • @eetech_fix2393
      @eetech_fix2393  7 หลายเดือนก่อน

      Yes... cdn-learn.adafruit.com/downloads/pdf/adafruit-ina219-current-sensor-breakout.pdf

  • @nuranggreni0944
    @nuranggreni0944 ปีที่แล้ว

    mornig sir, can we add out trigger from arduino to relay if the miliamp touch 20 miliamp ?

    • @eetech_fix2393
      @eetech_fix2393  ปีที่แล้ว

      Line#71: currentVal = (alpha * currentVal) + ((1.0 - alpha) * adcVal);
      The variable “currentVal” (line# 71) contains the actual current measurements in milliamps. If I understand your question correctly, Add an “if” statement: Example: if (currentVal >= 20.0) { digitalWrite(12, HIGH); } This could trigger a relay connected to pin 12 HIGH to close relay contacts.

  • @xxxkueckxxx
    @xxxkueckxxx 8 หลายเดือนก่อน

    😊