OpenMarine

Full Version: 1Wire temp sensor not detected / GPIO disabled
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all, 
I tried to install a 1wire temperture sensor following the Mac Arthur Hat docs. Changed GPIO pin to 19 and so on. Problem is: GPIO does not find the sensor.
When clicking on "reload" the message "GPIO disabled" shows up. Also tried different pins, but no luck. Any help is appreciated! 
Cheers Dominik
Even more strange: the ICM Module isn't detected also... Sad ICM-20948 IMU module
Hard to tell what's going on.

Can you post screenshots of your GPIO and I2C configuration?
(2025-01-03, 09:33 PM)Adrian Wrote: [ -> ]Hard to tell what's going on.

Can you post screenshots of your GPIO and I2C configuration?

Hi Adrian, 
here are some screenshots. GIPO Pin is configured, but it is not detected. This is a 1Wire temperature sensor (DS18B20)

I2C is getting an adress but won´t be delivered to SignalK. There is no authorisation request in SK neither.
PyPilot does not recognise the module (20948) stacked on the Mac Arthur HAT. Another module (BMP180) connected to the pins of PI directly, gets an adress,
but is not shown in Signal K.
Thanks for pointing me in the right direction.
Your screenshot of the GPIO app shows, that you haven't selected the correct GPIO as used by the MacArthur HAT. Please make sure to follow all steps in the documentation:
https://macarthur-hat-documentation.read...figuration
Quote:Go to the GPIO app, 1W tab and click Set 1W GPIO. Select GPIO 19 and click OK. After reboot, we should get the list of connected sensors [..]

[attachment=3203]

For the I2C IMU: Note that the IMU is configured via the PyPilot app, not the I2C app. You should still see the I2C address of the IMU though:
[attachment=3204]

If you don't see "68" in the "Add I2C sensor" dialog of the I2C app, it's likely that your sensor is not properly inserted, or it is defective/dead.
Thanks for your help. I'm pretty sure l, that I tried GPIO 19 at first, but that didn't help. I'll try again.
The IMU is unfortunately not detected by PyPilot, but I'll try to connect it to the Raspi pins directly now, maybe that'll help. To be continued...
[attachment=3205][attachment=3207]
(2025-01-06, 05:28 AM)Adrian Wrote: [ -> ]Your screenshot of the GPIO app shows, that you haven't selected the correct GPIO as used by the MacArthur HAT. Please make sure to follow all steps in the documentation:
https://macarthur-hat-documentation.read...figuration
Quote:Go to the GPIO app, 1W tab and click Set 1W GPIO. Select GPIO 19 and click OK. After reboot, we should get the list of connected sensors [..]



For the I2C IMU: Note that the IMU is configured via the PyPilot app, not the I2C app. You should still see the I2C address of the IMU though:


If you don't see "68" in the "Add I2C sensor" dialog of the I2C app, it's likely that your sensor is not properly inserted, or it is defective/dead.
 
Hi Adrian, so I tried the I2C first, directly connected to the pins. No address showed up, so I guess it's broken.

The 1Wire temperature sensor didn't show up on GPIO neither. GPIO19 did not do the trick, neither on the Mac Arthur Hat, nor on the pins directly. See the pictures below. GPIO not detected it says, and that's what startles me. GPIO service is running in OP though.

[attachment=3208][attachment=3209]
Make sure to not forget the resistor between Data a VCC when connecting a 1-Wire sensor directly to the pins on the Raspberry Pi. Otherwise it won't show up. The MacArthur HAT has that resistor on-board.

Also make sure to enable 1-Wire in the Raspberry Pi Configuration
[attachment=3211]

The is how it looks when a 1-Wire sensor is connected via the MacArthur HAT. 
[attachment=3212]

The "GPIO service is disabled" status message when clicking refresh seems to be a red herring.
Hi Adrian, that's what I did. 1wire is enabled. I have a 4.7k pull up resistor in between VCC and Data, but nothing is detected. Maybe the DS18B20 is broken too. I'm running out of ideas.
If you have an Arduino, or another Pi with stock Raspberry Pi OS, you could try to run through one of the many tutorials for connecting a DS18B20 and see if that works. Same for the I2C IMU. That way you could determine whether the sensors are defective or the gremlins are with the Pi or OpenPlotter.
Pages: 1 2