Manta M8P i2c_bus name

Sorry for the late reply!

Here is what I put…

[temperature_sensor Chamber_Middle]
sensor_type: BME280
i2c_address: 119
#   Default is 118 (0x76). The BMP180, BMP388 and some BME280 sensors
#   have an address of 119 (0x77).
i2c_mcu: mcu
#i2c_bus:
i2c_software_scl_pin: PA8
i2c_software_sda_pin: PC9
#i2c_speed:
#   See the "common I2C settings" section for a description of the
#   above parameters.

It doesn’t show humidity like I hoped it would but it does show the temp and pressure.

Thanks for the sanity check. I eventually gave up on trying to make either the BME280 and AHT20 work. Something about my flavor of Klipper just didn’t like them.

In the end, I did get both temperature and humidity using an AHT10 and the following code.

## CABINET HUMIDITY AND TEMPERATURE ##

[temperature_sensor Cabinet_T_&_RH]
sensor_type: AHT10
#
# PIN SELECTIONS
i2c_software_scl_pin: PA8
i2c_software_sda_pin: PC9
#
# BUS ADDRESS SELECTION
i2c_address: 56
#   Default is 56 (0x38). Some AHT10 sensors give the option to use
#   57 (0x39) by moving a resistor.                       
#
# SAMPLING INTERVAL
aht10_report_time: 5
#   Interval in seconds between readings. Default is 30, minimum is 5

That seemed to do the trick for me, and hopefully it eventually helps somebody else. I’m now to where I’ve got five temperature readings to display in Klipper:

Extruder hotend temperature
Bed temperature
Beacon eddy current sensor temperature
CB-1 processor temperature
Temperature inside “IKEA Lack table” homemade cabinet

And I have relative humidity inside the cabinet as well. I think with those, and perhaps one more thermistor mounted inside the processor enclosure above my motor drivers, I can figure out when to turn on various fans, which is a big part of what I’ve been trying to do here.

2 Likes

Awesome! Thanks for that. I couldn’t care less about pressure so I think I will try swapping out for an AHT10 and see how that goes. I think I have some around here somewhere lol

Could you please format your code snippet as Preformatted Text. It’s better to read ad makes more sense.

Format

1 Like

Sorry about that… I’m new to this group and just learning my way around.

I think I just fixed the problem with some editing. And now that I know where the magic formatting button is, I’m a lot more likely to get ti right next time.

Thanks for your help.

Yes, for some reason, Klipper seems to like the AHT10 and not the AHT20. I actually couldn’t even get the AHT20 to work, but the AHT10 dropped right in with just about zero effort. Because I have my ancient (but highly upgraded at this point) original Ender 3 stationed in one of those “IKEA lack table” enclosures and I’m not at all squeamish about drilling holes in an $18 table, I designed a little plastic enclosure for the AHT10. And the enclosure has a tab to accept a wood screw so I can screw it to the inside up above the printer, opposite where I have the webcam mounted.

When you get it all working, Klipper will display temperature and RH, with RH being in a slightly smaller font. I abbreviated “Temperature” and “Relative Humidity” for the reason that Obico will happily pass both values to my cell phone, but my cell phone screen is such that if I wrote it all out, it’d wind up off the edge of the screen. And I do like to be able to monitor things remotely and abort a print from afar if I can see it’s gone wild because of something like bed adhesion breaking loose.

1 Like

Yeah when I originally tried it was an AHT20 and I couldn’t get it to work either. But I had the BMP280 and was able to get it to work. It is supposed to have an AHT10 in it as well but I couldn’t get Klipper to pull the humidity. If I remember right I ordered some AHT10’s when I was doing that. I need to look around and see if I actually did. And if so get that swapped out. Having your code will help a ton. Thanks!

I have a problem with my AHT10 sensor. I have a Manta M8p V2.0 and CB1.
when i use this code i get ‘‘shutdown: soft_i2c NACK’’.

I don’t know how to enable i2c or find the problem.

Can somebody please help me with this problem?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.