Open giorgiodidon opened 4 months ago
Check that the thermocouple is isolated from ground. There cannot be a tc to ground loop. The 31856 depends on an isolated tc. If the tc wiring goes close to any metal there is a risk of a contact. Even a damp pathway might be a problem. Ceramic insulators work well when dry. Ronald.
On Thu, Feb 15, 2024, 2:55 AM giorgiodidon @.***> wrote:
hi all, trying to upgrade kiln with max31856 and a type S thermocouple, but i'm having these errors, and have no idea what's the problem, already double checked pin out, wiring and config.py
2024-02-15 11:50:44,682 ERROR oven: Problem reading temp cold junction temp too high 2024-02-15 11:50:44,903 ERROR oven: Problem reading temp cold junction range fault 2024-02-15 11:50:45,123 ERROR oven: Problem reading temp cold junction range fault
thank you for your time giorgio
— Reply to this email directly, view it on GitHub https://github.com/jbruce12000/kiln-controller/issues/171, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXA65GYLBDUHOXQN7AD47YLYTXSQTAVCNFSM6AAAAABDKA2CPWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGEZTMMRSGE3DSMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Thank you for your answer, I don't know how to check isolation from ground for the TC, anyway the raspberry, 31856 and TC are on my table far from anything else so the TC should be isolated from ground
To check tc to ground you need a VOM meter on ohms . Measure from either side of tc to ground it should be infinite ohms, or open circuit.
On Thu, Feb 15, 2024, 11:06 AM giorgiodidon @.***> wrote:
Thank you for your answer, I don't know ho to check isolation from ground for the TC, anyway the raspberry, 31856 and TC are on my table far from anything else so the TC should be isolated from ground
— Reply to this email directly, view it on GitHub https://github.com/jbruce12000/kiln-controller/issues/171#issuecomment-1946998145, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXA65G7IUOAYVLS4JMNDLJ3YTZMC5AVCNFSM6AAAAABDKA2CPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWHE4TQMJUGU . You are receiving this because you commented.Message ID: @.***>
hi, tc is isolated from ground tested with a VOM on ohms and it is isolated. also tested 31856 with a type k TC (after modified config.py) but same errors. any othe suggestion? giorgio
change to the kill-controller directory... post the output of git branch
and git log|head -30
here. that will tell me what branch and commit you're running. you should also post config.py so we can check that for problems.
pi@raspberrypi:~/kiln-controller $ git branch
pi@raspberrypi:~/kiln-controller $ git log|head -30 commit 8c9d3881dc9e36e80ccd2cb99a6d0e22ebbd237c Author: jason bruce jbruce12000@gmail.com Date: Mon Dec 11 10:21:41 2023 -0500
change autodection so only SW SPI needs pins listed in config.py
commit 9fb5ec940f929e3c1ce0e450ae70c7daeb6184d2 Author: jbruce12000 jbruce12000@gmail.com Date: Thu Dec 7 10:29:29 2023 -0500
adding section
commit d66ce7b616e621264a3fc5a26e2edef0c2d0c9b1 Author: jbruce12000 jbruce12000@gmail.com Date: Tue Dec 5 21:59:13 2023 -0500
another fixme
commit 267c999152dde7d778a2809977bd3104e3d9e3b2 Author: jbruce12000 jbruce12000@gmail.com Date: Tue Dec 5 15:27:27 2023 -0500
change subject
commit 97879168de7e027d76d829efd22ed48d6b84d723 Author: jbruce12000 jbruce12000@gmail.com Date: Tue Dec 5 15:00:00 2023 -0500
fix code block
config.py: import logging import os from digitalio import DigitalInOut import busio
######################################################################## #
log_level = logging.INFO log_format = '%(asctime)s %(levelname)s %(name)s: %(message)s'
listening_port = 8081
########################################################################
#
kwh_rate = 0.40 # cost per kilowatt hour per currency_type to calculate cost to run job kw_elements = 3.0 # if the kiln elements are on, the wattage in kilowatts currency_type = "€" # Currency Symbol to show when calculating cost to run job
######################################################################## #
#
#
#
#
#######################################
#######################################
#
#
#
#######################################
#######################################
#######################################
#######################################
#######################################
#######################################
try: import board spi_sclk = board.D17 #spi clock spi_miso = board.D27 #spi Microcomputer In Serial Out spi_cs = board.D22 #spi Chip Select spi_mosi = board.D10 #spi Microcomputer Out Serial In (not connected) gpio_heat = board.D23 #output that controls relay except (NotImplementedError,AttributeError): print("not running on blinka recognized board, probably a simulation")
#######################################
#######################################
max31855 = 0 max31856 = 1
import adafruit_max31856 thermocouple_type = adafruit_max31856.ThermocoupleType.S
######################################################################## #
seek_start = True
######################################################################## #
sensor_time_wait = 2
######################################################################## #
#
pid_kp = 7.849466047285052 # Proportional 25,200,200 pid_ki = 14.711412131887194 # Integral pid_kd = 226.60766791897024 # Derivative
######################################################################## #
#
stop_integral_windup = True
######################################################################## #
simulate = False sim_t_env = 65 # deg sim_c_heat = 500.0 # J/K heat capacity of heat element sim_c_oven = 5000.0 # J/K heat capacity of oven sim_p_heat = 5450.0 # W heating power of oven sim_R_o_nocool = 0.5 # K/W thermal resistance oven -> environment sim_R_o_cool = 0.05 # K/W " with cooling sim_R_ho_noair = 0.1 # K/W thermal resistance heat element -> oven sim_R_ho_air = 0.05 # K/W " with internal air circulation
sim_speedup_factor = 1
######################################################################## #
#
temp_scale = "c" # c = Celsius | f = Fahrenheit - Unit to display time_scale_slope = "h" # s = Seconds | m = Minutes | h = Hours - Slope displayed in temp_scale per time_scale_slope time_scale_profile = "m" # s = Seconds | m = Minutes | h = Hours - Enter and view target time in time_scale_profile
emergency_shutoff_temp = 2264 #cone 7
kiln_must_catch_up = True
pid_control_window = 5 #degrees
thermocouple_offset=0
temperature_average_samples = 10
ac_freq_50hz = False
########################################################################
########################################################################
#
ignore_temp_too_high = False ignore_tc_lost_connection = False ignore_tc_cold_junction_range_error = False ignore_tc_range_error = False ignore_tc_cold_junction_temp_high = False ignore_tc_cold_junction_temp_low = False ignore_tc_temp_high = False ignore_tc_temp_low = False ignore_tc_voltage_error = False ignore_tc_short_errors = False ignore_tc_unknown_error = False
ignore_tc_too_many_errors = False
########################################################################
automatic_restarts = True automatic_restart_window = 15 # max minutes since power outage automatic_restart_state_file = os.path.abspath(os.path.join(os.path.dirname( file ),'state.json'))
########################################################################
kiln_profiles_directory = os.path.abspath(os.path.join(os.path.dirname( file ),"storage", "profiles"))
########################################################################
throttle_below_temp = 300 throttle_percent = 20
thank you all giorgio
hi all, if it seems to be all ok with config.py and wiring i will try with a new 31856, my last thought is my 31856 is not working. let me know if you can thank you for your time giorgio
Make sure that the tc 56 or 55 board has a capacitor across the tc connection and also across the 5 volt input . This is needed to keep electrical noise from accessing the board. The value of the cap. isn't critical I would suggest 0.1 to 1.0 mfd. ceramic type. 10 volt or above ok. They need to be next to the board. Ronald
On Fri, Apr 12, 2024, 12:08 AM giorgiodidon @.***> wrote:
hi all, if it seems to be all ok with config.py and wiring i will try with a new 31856, my last thought is my 31856 is not working. let me know if you can thank you for your time giorgio
— Reply to this email directly, view it on GitHub https://github.com/jbruce12000/kiln-controller/issues/171#issuecomment-2051137978, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXA65G7DM6TQZPZCROTSGQ3Y46CATAVCNFSM6AAAAABDKA2CPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJRGEZTOOJXHA . You are receiving this because you commented.Message ID: @.***>
hi @giorgiodidon , did you ever get this fixed? I see your on the blinka branch with the latest code [at the time of the post].
Not yet, the only thought is hardware failure somewhere, the 31856 or the thermocouple but I had no time to (and money!) to buy a new one, but I will let you know as soon as I will have news. Thank you for your time.
hi all, trying to upgrade kiln with max31856 and a type S thermocouple, but i'm having these errors, and have no idea what's the problem, already double checked pin out, wiring and config.py
2024-02-15 11:50:44,682 ERROR oven: Problem reading temp cold junction temp too high 2024-02-15 11:50:44,903 ERROR oven: Problem reading temp cold junction range fault 2024-02-15 11:50:45,123 ERROR oven: Problem reading temp cold junction range fault
thank you for your time giorgio