November-13th-2020, 02:14 AM
Hi Armin,
I've been scouring for solutions in this forum for the past few days and I could not find the issue I am facing.
I currently have an RTE with me, with NPIX DIO expansion and a Keyence retroreflective sensor that is supposed to output 0 or 1 in NetPi Node-Red.
My container configuration is the same as per the github instructions of NetPi Node-Red (mapped /dev/gpiomem, running on privilege mode etc.)
My flow for a start is simple:
1st attempt:
-NPIX Input node to Debug node to see if any value comes out.
The outcome of this flow:
-The Input node status shows (cleared)
-The msg.payload only shows 0 once
From a documentation I read:
-Any unconnected ports on the DIO module will show 0
2nd attempt:
-Swapped the sensor signal wire from DIN 0 to 1
-Still same result
3rd attempt:
-Read the documentation and this forum and found out that DIN 1 coincides with RPi GPIO 14
-Installed RPi-GPIO nodes from the palette, used the input node and finally mapped the GPIO 14 and connect it to debug node as per 1st attempt.
-It still shows zero
I have checked that physical connection using a multimeter:
-Shows 24V, coinciding with the 24V external power supply that I am using to power up NetPi and the retro sensor
-NPIX Expansion slot PWR led shows green
I think Im missing out on something here. Please advice.
Many thanks!
Alhammi
[EDIT] Added attachments for better clarity of the issue. Also, this is likely to be a novice issue as this is only the second time that I used NetPi for developments.
I've been scouring for solutions in this forum for the past few days and I could not find the issue I am facing.
I currently have an RTE with me, with NPIX DIO expansion and a Keyence retroreflective sensor that is supposed to output 0 or 1 in NetPi Node-Red.
My container configuration is the same as per the github instructions of NetPi Node-Red (mapped /dev/gpiomem, running on privilege mode etc.)
My flow for a start is simple:
1st attempt:
-NPIX Input node to Debug node to see if any value comes out.
The outcome of this flow:
-The Input node status shows (cleared)
-The msg.payload only shows 0 once
From a documentation I read:
-Any unconnected ports on the DIO module will show 0
2nd attempt:
-Swapped the sensor signal wire from DIN 0 to 1
-Still same result
3rd attempt:
-Read the documentation and this forum and found out that DIN 1 coincides with RPi GPIO 14
-Installed RPi-GPIO nodes from the palette, used the input node and finally mapped the GPIO 14 and connect it to debug node as per 1st attempt.
-It still shows zero
I have checked that physical connection using a multimeter:
-Shows 24V, coinciding with the 24V external power supply that I am using to power up NetPi and the retro sensor
-NPIX Expansion slot PWR led shows green
I think Im missing out on something here. Please advice.
Many thanks!
Alhammi
[EDIT] Added attachments for better clarity of the issue. Also, this is likely to be a novice issue as this is only the second time that I used NetPi for developments.