Im just a newbie in Adruino, just want to ask how to connect & program this:
I have a 5 output signals that need to display to Adruino LED display individually.
Output signal is 24V dc but I can connect it to a relay as a switch output since the supply of Adruino Uno and LED is only 5V dc.
Signal 1: Air pressure High
Signal 2: Air pressure Low
Signal 3: Water flow high
Signal 4: Water flow in
Signal 5: Unit on or off
Signal 5: Must be on the 1st row always as on or off
Signal 1 to 4 message should be on the 2nd row and which is ever is detected.
I just made a simple flow, I already made the connection from the Water Flow checker & air pressure switch to the PLC (FX3u-14MR) unit. Next thing is how to connect the output of the PLC to the Adruino Uno and create a code for the individual display alarm base on the output signal from the PLC.
I just purchased a beginner's kit of Arduino, and I'm just using the Arduino uno and 16/2 LED display. As for the program code, really I'm newbie and I just learned the welcome display message. What I need to learn now is how to make a code for individual message base on the signal output from my PLC (FX3u-14MR) a 24V or relay type signal. I don't I know if I can use the A0 to A5 input signal of UNO board to my PLC out.
Basically this is my current signal and need to encode with UNO for the display
Signal 1: Air pressure High
Signal 2: Air pressure Low
Signal 3: Water flow high
Signal 4: Water flow in
Signal 5: Unit on or off
Since you only mention "Uno", and since the diagram is labeled "Arduino Uno (Rev3)", I moved this out of the UNO R4 Minima forum category, which is only to be used for subjects directly related to the new UNO R4 Minima board.
@roldan_d if you are actually using an UNO R4 Minima instead of the classic ATmega328P-based Uno board, then let me know and I'll move your topic back to the UNO R4 Minima. Otherwise, please be more careful to select the appropriate category in the future when creating topics here.
You're currently not using a I2C LCD display so you can use A0..A5; if you were using an I2C display, you can not use A4 and A5 as they are the I2C pins.
Instead of relays, you can use voltage dividers, transistors or optocouplers. Optocouplers have the benefit of providing galvanic isolation (just like your relays).
You mean, I will just need to drop down the PLC 24V output to be connected with A inputs?
How about a sample condition code for the display.
eg.. if A0 is on --> "Air pressure High"
if A1 is on ---> "Air pressure Low"
The 24V system must first be decoupled from the Arduino system using optocouplers. The discrete input signals can be read out via the digital inputs of the Arduino. You should invest in an I²C interface board for the LCD to save troubleshooting time and nerves.
You can mark the topic as 'solved' by clicking the "solution" button under the most useful reply. That way others that encounter the same issue know that a possible solution is available.