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
As always, a mine of knowledge. 👍👌
Thanks
Very good and concise presentation straight to the point.
Thanks!
Wonderfull presentation, Clear and consise. Thank you
Thanks
Great description! Thanks!
Glad it was helpful!
Your videos are really good. Well explained.
Glad you like them!
Thanks a ton you have saved me a lot of time
That is great!
Good content about industri aplication 👍👍👍👍👍💪💪💪💪
I am glad to you like it
ciao questo tutorial e' veramente interessante , complimenti
Thanks
Thank you very much 👍 You save my time a lot. 👍👌👌
I am glad it is helpful.
Great tutorial
Thank you!
Amazing information
Thanks 😊😊😊
great knowledge
😊😊😊
Very good tutorial
Thanks
Great video
Thanks!
prefect video for me
Thanks
love this
I am glad you do!
well done
Thanks
Very good
Thanks
Thanks
You are welcome!
Cool!!!
😀😊😎
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.
Thankyou
You’re welcome 😊
Best out of all
Thanks
@@OnosTech quick question. Can you supply nano with 12v supply???
@@chirots Yes you can. Connect the 12V to Vin pin of the nano
Hi Onos:
It would be great you make a video about "PIC Configuration Bits". Regarding to PIC16F887 and PIC18F4520.
Great Videos btw
Okay
@@OnosTech Great!!! Thank you!!!
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?
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.
If i just want to display with dmd, can you show Me the connection to Arduino uno? Tanks
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!!
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.
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!
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.
@@OnosTech Thanks for the reply.
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!
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.
@@OnosTech Thanks
What do you things about a project with arduino generate 4-20mA to open and close a valve. grazie
It is a great idea!
very nice demo, any one know which company in china makes this module, i need schematic circuit to understand well
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
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?
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?
@@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.
what's the name of the your current source please ? I need to find one.
Follow this link. s.click.aliexpress.com/e/_AqqxZc
Links to other items are in the description.
Thanks for your video, so we can "show" decimal numbers by doing some math calculation?
Yes we can.
the 12v supply is for the module?
Yes please. The module power supply range is DC 7 V ~ 35 V
won't the 12v enter into the nano and damage it ?
The Nano Vin pin can operate with voltage range of DC 7~12V
Do we have to use the arduino?
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
Can i look at the Arduino coding?
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
i want to use esp32 instead of nano, but 12v is too much for the esp32(3,3v max) . What can i do?
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
@@OnosTech do the vcc absolutely need to be connected to the esp32 or just the vout and gnd ?
Connect just the Vout and the GND to the ESP32
@@OnosTech ok thank you
@@OnosTech ok thank you! i'm powering the module and the sensor with the same 24V, is it ok ?
How to make 4/20 mA opreating with out sensor Plc using Arduino nano
I don't currently have the 4/20mA output module
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.
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.
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.
Nice project please can we have the Arduino code to try it at home
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
:)
😊😊😊
@@OnosTech 😊😊😊😊😊😊
can you share the arduino code for this please?
This was done with LDmicro and not with Arduino IDE. I will include it in the discription in you want
@@OnosTech ok , can you share in in LDmicro ?
@@mbinacedric3566 Link to LDmicro and Hex files:
drive.google.com/file/d/1kVk6F1KUyipGDzGkNV4GKncnL0uMS-f5/view?usp=sharing
hola
Hi
If i just want to display with dmd, can you show Me the connection to Arduino uno? Tanks