How to Interface Industrial Sensors with Arduino Nano

Поділитися
Вставка
  • Опубліковано 5 сер 2024
  • A 4 to 20 mA current to voltage converter module was used to interface a temperature transmitter with Arduino Nano. The temperature reading is then displayed on a serial Liquid Crystal Display. A current source was used to calibrate the converter module. The module can also interface pressure, level, flow transmitters, etc.
    CHAPTER
    1. Introduction 00:00
    2. 4-20mA Signal transmission 00:16
    3. 4-20mA Current-Voltage Converter Module 01:31
    4. Checking the 4-20mA Current Source Performance 02:21
    5. Calibration of the Current-Voltage Converter Module 03:08
    6. Display Current Source Reading on Serial LCD 04:00
    7. Display 0 -100 Degree C Temperature Transmitter on Serial LCD 04:39
    8. Conclusion 06:09
    Link to LDmicro and Hex files:
    drive.google.com/file/d/1kVk6...
    See these Tutorials if you are new to LDmicro Programming
    LDmicro 3: PIC16F628A & Arduino Nano
    • LDmicro 3: PIC16F628A ...
    LDmicro 6: Arduino nano Breadboard Circuit
    • LDmicro 6: Arduino nan...
    Link to LDmicro Tutorial 10 - Incubator Temperature Regulator:
    • LDmicro 10: Incubator ...
    Link to LDmicro Tutorial 11 - Serial LCD Temperature Controller:
    • LDmicro 11: Serial LCD...
    LDmicro Tutorial 12: Arduino Boards without
    • LDmicro 12: Arduino Bo...
    Buy Items for this video at low and no additional cost from Aliexpress with these links.
    1. 4-20mA Current to Voltage Converter Module:
    s.click.aliexpress.com/e/_AUoOgH
    2. 4-20mA Current Signal Source
    s.click.aliexpress.com/e/_AqqxZc
    3. Arduino Nano V3.0
    s.click.aliexpress.com/e/_9jqWWa
    4. Terminal Adapter Board For Arduino Nano
    s.click.aliexpress.com/e/_9Rz1kE
    5. 0-100 Degree Celsius PT100 4-20mA Temperature sensor
    s.click.aliexpress.com/e/_ApTb3g
    6. LCD Digital Multimeter
    s.click.aliexpress.com/e/_AURrkS
    7. Jumper Wire
    s.click.aliexpress.com/e/_A7zCFy
    8. Mini Breadboard
    s.click.aliexpress.com/e/_AXo5me
    9. Power Supply
    s.click.aliexpress.com/e/_ACIMRk

КОМЕНТАРІ • 104

  • @arturnowakowski6843
    @arturnowakowski6843 3 роки тому +2

    As always, a mine of knowledge. 👍👌

  • @wallstreet497
    @wallstreet497 7 місяців тому +1

    Very good and concise presentation straight to the point.

  • @rishaalramdeen2112
    @rishaalramdeen2112 Рік тому +1

    Wonderfull presentation, Clear and consise. Thank you

  • @foskolo
    @foskolo 2 роки тому +1

    Great description! Thanks!

    • @OnosTech
      @OnosTech  2 роки тому

      Glad it was helpful!

  • @scientifiko4246
    @scientifiko4246 2 роки тому +2

    Your videos are really good. Well explained.

    • @OnosTech
      @OnosTech  2 роки тому +1

      Glad you like them!

  • @NGTLounge
    @NGTLounge Рік тому +1

    Thanks a ton you have saved me a lot of time

  • @listriklistrikpurwokerto3332
    @listriklistrikpurwokerto3332 3 роки тому +1

    Good content about industri aplication 👍👍👍👍👍💪💪💪💪

    • @OnosTech
      @OnosTech  3 роки тому

      I am glad to you like it

  • @lucianodipaolo2428
    @lucianodipaolo2428 3 роки тому +1

    ciao questo tutorial e' veramente interessante , complimenti

  • @rushikeshkumawat1361
    @rushikeshkumawat1361 Рік тому +1

    Thank you very much 👍 You save my time a lot. 👍👌👌

    • @OnosTech
      @OnosTech  Рік тому

      I am glad it is helpful.

  • @nwaudonaquilaokonta9307
    @nwaudonaquilaokonta9307 3 роки тому +1

    Great tutorial

  • @hashimzafar6105
    @hashimzafar6105 3 роки тому +1

    Amazing information

    • @OnosTech
      @OnosTech  3 роки тому

      Thanks 😊😊😊

  • @abundance1146
    @abundance1146 3 роки тому +1

    great knowledge

  • @roelgritter
    @roelgritter 3 роки тому +1

    Very good tutorial

  • @Drxxx
    @Drxxx 3 роки тому +1

    Great video

  • @sheleyrobpn7892
    @sheleyrobpn7892 3 роки тому +1

    prefect video for me

  • @isaacbalogun256
    @isaacbalogun256 3 роки тому +1

    love this

  • @maryjones5883
    @maryjones5883 3 роки тому +1

    well done

  • @user-nh4pq2rs2h
    @user-nh4pq2rs2h Рік тому

    Very good

  • @albertosacco9380
    @albertosacco9380 2 роки тому +1

    Thanks

  • @karte2626
    @karte2626 3 роки тому +1

    Cool!!!

  • @AMbrosWorkshopTips
    @AMbrosWorkshopTips 2 роки тому +1

    can i build multi 4-20ma sensors with single setup. pls reply. if yes, then how. i want to make similar setup but to measure pressure, temperature and angle and stroke in a single setup. what changes i have to do in program and how.

  • @ozankavci
    @ozankavci 10 місяців тому +1

    Thankyou

    • @OnosTech
      @OnosTech  10 місяців тому

      You’re welcome 😊

  • @chirots
    @chirots 2 роки тому +1

    Best out of all

    • @OnosTech
      @OnosTech  2 роки тому

      Thanks

    • @chirots
      @chirots 2 роки тому +1

      @@OnosTech quick question. Can you supply nano with 12v supply???

    • @OnosTech
      @OnosTech  2 роки тому

      @@chirots Yes you can. Connect the 12V to Vin pin of the nano

  • @karte2626
    @karte2626 3 роки тому +1

    Hi Onos:
    It would be great you make a video about "PIC Configuration Bits". Regarding to PIC16F887 and PIC18F4520.
    Great Videos btw

    • @OnosTech
      @OnosTech  3 роки тому

      Okay

    • @karte2626
      @karte2626 3 роки тому +1

      @@OnosTech Great!!! Thank you!!!

  • @simonl7784
    @simonl7784 2 роки тому +1

    I'm trying to make sense of the "Current to Voltage Module" and I thought the whole point of it was to serve as the power supply to the sensor; which would explain the wide input 7-36v . Does it work if you just plug the temp sensor in without the 24v power supply?

    • @OnosTech
      @OnosTech  2 роки тому

      Sure, the module provides the loop power to the sensor and at the same time receives the measured values within the range of 4-20mA current. This current is then converted to 5 V which is the required input voltage of the Arduino analog input. The 24V power supply is required for the module and the sensor to work.

  • @heppyarifrahman6502
    @heppyarifrahman6502 Рік тому

    If i just want to display with dmd, can you show Me the connection to Arduino uno? Tanks

  • @lucassegoviaolan5370
    @lucassegoviaolan5370 2 роки тому +1

    Thank you for sharing this is very helpful, I'm testing this module with 4-20mA sensor and arduino uno, The reading are ok, voltage increases as the pressure in the sensor also increases, but in the readings with arduino a kind of noise is getting to the board, for example from when reading voltage 202 - 203, or when it raises to 205 - goes back to 202, and it is ramdom, What can I do, de arduino is powered with same 12vdc power supply as the module, and the sensor is with a 24vdc power supply. Thanks in advance!!

    • @OnosTech
      @OnosTech  2 роки тому

      I am very sorry for replying late. The module power range is between 7 to 36V. Try any voltage within this range. If possible try to bring down the Arduino power supply voltage to a minimum of 6V and see how it goes.

  • @johanwithag2432
    @johanwithag2432 Рік тому +3

    Hi, the 4-20mA to 5 V converter does not use any optical isolation (as far as I can see). Typical industrial PLC I/O's are mostly opto isolated for analog signals. Would that be a concern? Excellent channel btw!

    • @OnosTech
      @OnosTech  Рік тому +2

      You are correct. It also depend on the area and scale of application. I won't recommend it for use in safety critical equipment. For hazardous area application, an IS barrier can be an added protection.

    • @johanwithag2432
      @johanwithag2432 Рік тому +1

      @@OnosTech Thanks for the reply.

  • @TS-gi8zm
    @TS-gi8zm Рік тому +1

    I really like these videos! Is it possible to connect the 12 volt power supply together with the USB to my computer? I wrote software to read out the analog values on my computer but I don't know if it is safe to connect both USB and Vin pin. Thanks and keep up the good work!

    • @OnosTech
      @OnosTech  Рік тому +1

      The 12 volt supply should go to the module alone. It is only the output and GND of the module that should be connected to the USB port of your computer. Just ensure that the output of the module is calibrated to 5 volts as demonstrated in the video.

    • @TS-gi8zm
      @TS-gi8zm Рік тому

      @@OnosTech Thanks

  • @bartolototaro1057
    @bartolototaro1057 Рік тому +1

    What do you things about a project with arduino generate 4-20mA to open and close a valve. grazie

  • @babunandha7955
    @babunandha7955 10 місяців тому

    very nice demo, any one know which company in china makes this module, i need schematic circuit to understand well

  • @user-db6hh9ui3o
    @user-db6hh9ui3o 5 місяців тому

    I downloaded the ladder and I when I compile it it says "Variable 'press_dot' not assigned to, e.g. with MOV statement, an ADD statement, etc. This is probably a programming error; it Will always be Zero"
    I think press_dot is not assigned to any math calculation

  • @Alvin-Sy
    @Alvin-Sy Рік тому +2

    Can this module take an input voltage of 24V? My experience is that when I use 24V, the power indicator starts to flick very fast and slows down gradually. and the voltage output would become jumpy at the same time. is there any problem with this module using 24V?

    • @OnosTech
      @OnosTech  Рік тому +1

      There are actually two types of these modules;
      1. s.click.aliexpress.com/e/_DEjqtG1
      2. s.click.aliexpress.com/e/_AfeXw5
      I actually used No, 1 in the tutorial video. I found out that at 24v, the transistor becomes hot. So I got No. 2 and used it in this other video with 24v: ua-cam.com/video/qxcVWX-BqUo/v-deo.html No. 2 works better.
      Which of the modules do you have?

    • @Alvin-Sy
      @Alvin-Sy Рік тому +2

      @@OnosTech I'm using the number 1 module which is cheaper, I will buy the number 2 module and give it a try. Thank you for your reply, really appreciate it.

  • @mbinacedric3566
    @mbinacedric3566 2 роки тому +1

    what's the name of the your current source please ? I need to find one.

    • @OnosTech
      @OnosTech  2 роки тому

      Follow this link. s.click.aliexpress.com/e/_AqqxZc
      Links to other items are in the description.

  • @user-db6hh9ui3o
    @user-db6hh9ui3o 5 місяців тому +1

    Thanks for your video, so we can "show" decimal numbers by doing some math calculation?

  • @mbinacedric3566
    @mbinacedric3566 2 роки тому

    the 12v supply is for the module?

    • @OnosTech
      @OnosTech  2 роки тому

      Yes please. The module power supply range is DC 7 V ~ 35 V

  • @mbinacedric3566
    @mbinacedric3566 2 роки тому +1

    won't the 12v enter into the nano and damage it ?

    • @OnosTech
      @OnosTech  2 роки тому +1

      The Nano Vin pin can operate with voltage range of DC 7~12V

  • @cornsoup169
    @cornsoup169 2 роки тому +1

    Do we have to use the arduino?

    • @OnosTech
      @OnosTech  2 роки тому

      You can use a PIC microcontroller as well. If using LDmicro, you can select it from the setting menu. See these links
      ua-cam.com/video/7qYqJCZumCQ/v-deo.html
      ua-cam.com/video/BBvsul-KwZ8/v-deo.html

  • @hanifpnt6248
    @hanifpnt6248 2 роки тому +1

    Can i look at the Arduino coding?

    • @OnosTech
      @OnosTech  Рік тому

      The LDmicro code for the video is in the description. Follow the link below to convert it to Arduino code.
      ua-cam.com/video/Wcaa8mUf51U/v-deo.html

  • @mbinacedric3566
    @mbinacedric3566 2 роки тому +1

    i want to use esp32 instead of nano, but 12v is too much for the esp32(3,3v max) . What can i do?

    • @OnosTech
      @OnosTech  2 роки тому +1

      Connect DC 7~35V to the 4-20mA module, then calibrate its VOUT to 3.3V. Use a DC-DC converter to step down the DC 7~35V to 3.3V for the ESP32

    • @mbinacedric3566
      @mbinacedric3566 2 роки тому

      @@OnosTech do the vcc absolutely need to be connected to the esp32 or just the vout and gnd ?

    • @OnosTech
      @OnosTech  2 роки тому +1

      Connect just the Vout and the GND to the ESP32

    • @mbinacedric3566
      @mbinacedric3566 2 роки тому +1

      @@OnosTech ok thank you

    • @mbinacedric3566
      @mbinacedric3566 2 роки тому

      @@OnosTech ok thank you! i'm powering the module and the sensor with the same 24V, is it ok ?

  • @akshayshetty8592
    @akshayshetty8592 Рік тому

    How to make 4/20 mA opreating with out sensor Plc using Arduino nano

    • @OnosTech
      @OnosTech  Рік тому

      I don't currently have the 4/20mA output module

  • @michaelgraff6978
    @michaelgraff6978 Рік тому +1

    Why not use a resistor and if you are worried a zener to clamp maximum? You don’t need a module to convert current to voltage.

    • @OnosTech
      @OnosTech  Рік тому

      That can also be done. But the purpose of the video is to minimize or eliminate soldering for those that cannot solder and to provide perspective on field instrumentation zero and span calibration.

    • @9wattd
      @9wattd Рік тому +1

      I think, if resistor 250 ohm burnt out or connection loose at this point, microcontroller will get 24 VDC from sensor and make microcontroller burnt out too. SO this module may protect this issue.

  • @kwasiben4163
    @kwasiben4163 Рік тому +1

    Nice project please can we have the Arduino code to try it at home

    • @OnosTech
      @OnosTech  Рік тому

      The LDmicro code for the video is in the description. Follow the link below to convert it to Arduino code.
      ua-cam.com/video/Wcaa8mUf51U/v-deo.html

  • @KHIRD
    @KHIRD 3 роки тому +1

    :)

    • @OnosTech
      @OnosTech  3 роки тому

      😊😊😊

    • @KHIRD
      @KHIRD 3 роки тому

      @@OnosTech 😊😊😊😊😊😊

  • @mbinacedric3566
    @mbinacedric3566 2 роки тому

    can you share the arduino code for this please?

    • @OnosTech
      @OnosTech  2 роки тому +1

      This was done with LDmicro and not with Arduino IDE. I will include it in the discription in you want

    • @mbinacedric3566
      @mbinacedric3566 2 роки тому

      @@OnosTech ok , can you share in in LDmicro ?

    • @OnosTech
      @OnosTech  2 роки тому

      @@mbinacedric3566 Link to LDmicro and Hex files:
      drive.google.com/file/d/1kVk6F1KUyipGDzGkNV4GKncnL0uMS-f5/view?usp=sharing

  • @shakitalohan4282
    @shakitalohan4282 3 роки тому

    hola

  • @heppyarifrahman6502
    @heppyarifrahman6502 Рік тому

    If i just want to display with dmd, can you show Me the connection to Arduino uno? Tanks