Hobbyist Toolkit

cancel
Showing results for 
Search instead for 
Did you mean: 

Linx N Channel Digital Write VI caused loss of communication with Raspberry PI

I attempted to control a 4 channel relay board using the Linx Digital Write VI(N Channel Mode), but it caused my raspberry pi 3B to lose communication with host computer whenever I attempted to deploy it. I had to use 4 of the Digital Write VI's in Single Channel Mode for me to control the relay board. Has anyone else run into this issue? 

0 Kudos
Message 1 of 6
(1,331 Views)

Hi, 

Please can you provide the details of the relay module you are using and how it is connected to the Raspberry Pi. What equipment are you controlling with the relay contacts?

Does the problem occur if the relay module is disconnected from the Raspberry Pi?

0 Kudos
Message 2 of 6
(1,281 Views)

Here is the link to the current relay module I am using: 

https://www.amazon.com/gp/product/B072XGF4Z3/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&psc=1

 

At the time of initial testing the relays were not controlling anything. This problem occurred with the relay module disconnected, and using a different brand of relay modules.  

0 Kudos
Message 3 of 6
(1,272 Views)

Are you using Linx channel 7 (GPIO 4) ?
Check that the one-wire interface is disabled in raspi-config.  The one-wire interface allocates GPIO 4 and the LabVIEW runtime will exit because it is unable to access the GPIO channel.

 

0 Kudos
Message 4 of 6
(1,216 Views)

Indeed, some comments state:

 

gpio 4 is relay 1
gpio 22 is relay 2
gpio 6 is relay 3
gpio 26 is relay 4

Rolf Kalbermatter
My Blog
0 Kudos
Message 5 of 6
(1,208 Views)

Yes I am using channel 7, 22, 6, 26. One Wire was not turned on during testing. When I modified my code and used 4 digital writes (single channel mode) the code load onto the raspberry pi and worked as expected

0 Kudos
Message 6 of 6
(1,175 Views)