Using an Arduino to Run a Vehicle's A/C Compressor Cycle?
i trying figure out how use arduino pro mini clone run compressor cycle in 1998 nissan frontier pickup (d22 chassis, 2 wheel drive, ka24de gas 4 cylinder/5 speed manual. sold navarra in markets.). plan use 10k thermistor sense temperature of evaporator core cause arduino cycle relay on , off. way nissan wired it, air conditioning system has compressor , idle speed compensator wired if 1 goes on other too. therefore plan use part of wiring run see no reason not to. tested temporarily bypassing computer's air conditioning functions , still works, original binary switch ran in series prevent excessive pressure. doesn't work pcm's air conditioning control circuit turns compressor off when ignition on , on ignition turned off. else still works though not want replace expensive pcm, since truck has 384,000 miles on , not driven regularly.
my issue how write loop. need have compressor run until temperature reaches 34 f , shut off. want wait until temp rises 38-40f, turn on compressor clutch , repeat cycle. needs shutdown period evaporator core not freeze , hinder airflow. planning use sample sketch found read 10k thermistor returns temperature , add loop code once figured out. unfortunately not seem able find sample code particular situation. apologize if simple problem new programming.
my issue how write loop. need have compressor run until temperature reaches 34 f , shut off. want wait until temp rises 38-40f, turn on compressor clutch , repeat cycle. needs shutdown period evaporator core not freeze , hinder airflow. planning use sample sketch found read 10k thermistor returns temperature , add loop code once figured out. unfortunately not seem able find sample code particular situation. apologize if simple problem new programming.
there lot of info in description , i'm not sure parts relevant.
it looks me program needs this
if temp > 38
switch on
if temp < 34
switch off
but suspect there may bit more it.
can write down steps required in simple style this?
...r
it looks me program needs this
if temp > 38
switch on
if temp < 34
switch off
but suspect there may bit more it.
can write down steps required in simple style this?
...r
Arduino Forum > Using Arduino > Programming Questions > Using an Arduino to Run a Vehicle's A/C Compressor Cycle?
arduino
Comments
Post a Comment