• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPIX-4DI4DO and NetPi-Nodered container issues
#1
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.


Attached Files Thumbnail(s)
               

.txt   NetPiNodeRed_docker_inspect.txt (Size: 13.91 KB / Downloads: 1)
  Reply


Messages In This Thread
NPIX-4DI4DO and NetPi-Nodered container issues - by alhammi - November-13th-2020, 02:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  NIOT-E-NPIX-RS485 LucioFiam 6 4,390 January-21st-2023, 05:20 PM
Last Post: Armin@netPI
  https certificate issues in new nodered docker image Dipro 1 1,722 May-4th-2022, 05:46 AM
Last Post: Armin@netPI
  HTTP Request using Nodered DSongra 6 3,558 August-20th-2021, 11:44 AM
Last Post: Armin@netPI
  TOSILOCK for CONTAINER COswald 3 2,269 July-13th-2021, 11:32 AM
Last Post: Armin@netPI
  Access to RTC from my own container application tad 1 3,599 March-19th-2021, 02:58 PM
Last Post: Armin@netPI
  [SOLVED] Starting services/commands/scripts at startup of a container Jonas.Sellmann@outlook.de 9 6,271 March-9th-2021, 08:47 AM
Last Post: WalterSchaefer
  OpenVPN container Armin@netPI 0 1,668 January-3rd-2021, 12:13 PM
Last Post: Armin@netPI
  operating Console of a container on netPI connected to Wi-Fi tethering tad 3 2,706 December-3rd-2020, 12:32 PM
Last Post: tad
  NIOT-E-NPIX-4DI4DO with netpi-netx container WalterSchaefer 3 6,756 November-25th-2020, 01:06 PM
Last Post: zen89
  Get host MAC via REST API inside container bschandra 4 3,739 November-16th-2020, 09:26 AM
Last Post: bschandra

Forum Jump:


Users browsing this thread: 1 Guest(s)