![]() |
|
|
|
Registered
|
Arduino - Digital AC control system for '80 911
Am on tail end of resurrecting my ‘80’s AC from a Black Death experience. With all other complications being embraced, it seemed an interesting project to develop a digital AC control & graphic interface. Plan is to use an Arduino Uno connected to a Nextion 2.8” display. Credit to "Dr. J" / John for jumping in to attend sketch/programming for this. I’m dealing with hardware & install.
Idea for this arose from an interest to better understand 911 AC temps & pressures. To start with, this was a temporary digital setup designed to collect and monitor a wide scope of data---an AC Frakenstein experiment of sorts. With the effort going into development, it made sense to morf it into a permanent system. The many-sensor-program has now been pared down to the essentials: A. Ambient temp & humidity ![]() Preserving '80 Porsche aesthetics... sure... part of this challenge. Of course a digital system is immediately out of place in an ’80 911 but… will make bold attempt to integrate this mod so unit “seems an appropriate fit.” My stock ’80 center console has 2 AC control knobs---fan speed and temp switch. Between these 2 knobs is a speaker front-to-rear fade controller. Below these controls is where the new hardware is headed. ![]() Both AC control knobs will be maintained. Fan speed switch will feed power to digital system (with step down from 12v to 5v.) Temp control switch will connect to potentiometer and used to set cabin’s temp (“Set Temp.”) Temp sensor placed at evap's core will control compressor, preventing evap from going below 32.1 dF. 4x20 dot matrix was the original graphic display plan. While this would work, challenge was finding a bezel to trim the install with. There are some bezels… but… none could be considered having a Porsche look & feel IMHO. Even with small, full color graphic displays… bezels are a surprising issue. Only product line I found with a comprehensive array of small screen sizes WITH bezels is 4D. Their 2.8” unit fits horizontally with bezel. 4x20 dot matrix compared to 2.8 LCD (drawn to scale.) ![]() Because John knows Nextion and not 4D product programming, we're going with the Nextion 2.8 with a 4D bezel. (4D and Nextion 2.8” units have matching dimensions. The 3.2 units do not.) Unfortunately the bezel for the 2.8 unit is not much to speak off. As far as I can tell, it’s a solid piece of clear plastic that’s black-coated to form the bezel. (Not complaining---some bezel is better than no bezel!) Being solid vs a cut out means there’s 2 layers of plastic to see through in this case. Am not sure how well this will work from a visibility perspective. Since 4D seems a sharp company, I’d imagine they’d not be doing a double-lens unless it works. Another down side with a full face bezel is the Nextion’s touch-screen capability is lost. Some interesting things could be done with touch-screen so… am looking into alternative bezel solutions in order to preserve the touch-screen-ability. One idea is to CNC mill a bezel. Another is to 3-D print it. If anyone has ideas on how to approach a “cut out” bezel… pls post. Planned layout... ![]() Whether to finish the added face/surface in black plastic or leather remains to be tested. Idea here is to make existing panel and the addition... seamless. There are also questions concerning sinking the bezel and screen area as a “design consideration"---would this be "good" design?... or a waste of time? How to attach the new face panel (at the bottom to the console) without any apparent/external fasteners? ...These and more questions seek answers.
__________________
Karl ~~~ Current: '80 Silver Targa w /'85 3.2. 964 cams, SSI, Dansk 2 in 1 out muf, custom fuel feed with spin on filter Prior: '77 Copper 924. '73 Black 914. '74 White Carrera. '79 Silver, Black, Anthracite 930s. |
||
![]() |
|
El Duderino
|
Karl,
I was going through some pics last night and I thought you might find this one interesting for inspiration. This is a pic of the controls used in the Singer. ![]() Glad to see someone working on this. I have had this idea noodling around for a while. Wish I wasn't too busy with work right now -- I would love to work on this. ![]()
__________________
There are those who call me... Tim '83 911 SC 3.0 coupe (NA) You can't buy happiness, but you can buy car parts which is kind of the same thing. |
||
![]() |
|
Registered
|
^^^ TY Tim. Interesting consolidation of controls. Clearly a retro look. Out of curiosity am wondering if that is Porsche or aftermarket? Dial temp... that does not seem early model Porsche but I'm not up to speed on all the early control configs.
__________________
Karl ~~~ Current: '80 Silver Targa w /'85 3.2. 964 cams, SSI, Dansk 2 in 1 out muf, custom fuel feed with spin on filter Prior: '77 Copper 924. '73 Black 914. '74 White Carrera. '79 Silver, Black, Anthracite 930s. |
||
![]() |
|
Registered
Join Date: Jul 2013
Location: South East England
Posts: 1,692
|
Careful with LCD, some don't like heat and turn completely black.
__________________
www.classicretrofit.com |
||
![]() |
|
Registered
Join Date: Feb 2014
Location: Lomita, CA
Posts: 2,688
|
Quote:
Application should require less than 20-30 lines of C code.
__________________
Dave |
||
![]() |
|
El Duderino
|
Quote:
The thing is that I really can't think of a reason it cannot be done with off the shelf components. It would take a little research to figure out what rheostat, fan speed knobs, etc you'd need, how to adapt it to the existing system(s) and package the enclosure -- but it seems do-able. Now if you wanted to make it where you set a desired temp and the system adjusts temp/fan speed automatically, that would take a little more work but still do-able. Personally, I deleted the center console in my car so I'd like to see something that wouldn't require it fitting in that spot alone. It would have broader application to more models.
__________________
There are those who call me... Tim '83 911 SC 3.0 coupe (NA) You can't buy happiness, but you can buy car parts which is kind of the same thing. |
||
![]() |
|
![]() |
Registered
|
Quote:
![]() Quote:
Quote:
Thought about an in-dash plan here. While I'm not a purist, placing a display screen in an '80 dash does not work for me---it's too far out of context even for my preference. Located in the center console... it works for me.
__________________
Karl ~~~ Current: '80 Silver Targa w /'85 3.2. 964 cams, SSI, Dansk 2 in 1 out muf, custom fuel feed with spin on filter Prior: '77 Copper 924. '73 Black 914. '74 White Carrera. '79 Silver, Black, Anthracite 930s. |
|||
![]() |
|
Registered
Join Date: Feb 2008
Location: Marietta GA
Posts: 2,560
|
Have you seen the Restomod Air stuff? They have some slick looking controls and even have a spartphone app you can control the system with.
Custom Aftermarket A/C Systems & Pro Touring A/C Parts: Hot Rod... ![]() ![]() |
||
![]() |
|
Registered
|
^^^ Uber techno stuff Will! Thought about this direction but... given my leaving phone behind quite often, is better (in my case) to have AC controlled by onboard system.
__________________
Karl ~~~ Current: '80 Silver Targa w /'85 3.2. 964 cams, SSI, Dansk 2 in 1 out muf, custom fuel feed with spin on filter Prior: '77 Copper 924. '73 Black 914. '74 White Carrera. '79 Silver, Black, Anthracite 930s. |
||
![]() |
|
Registered
Join Date: Jul 2013
Location: South East England
Posts: 1,692
|
ROFL! 25 years a control systems designer, if I had a penny for every time I heard that!!!
Choose your temperature sensor type wisely as this will impact the software effort required. Typically, automotive temperature sensors are resistive devices or thermocouples. Both are non-linear, requiring either a LUT or a polynomial calculation against published constants. Control of temperature against a setpoint requires either a PID controller implementation or 'fuzzy logic'. Both are difficult to get right. PID especially time consuming to 'tune'. Many commercial PID temperature controllers have auto tuning capability but can still struggle to tune, resulting in never achieving setpoint or too much compressor cycling. You definitely need to have a manual override btw. If I were you I'd aim firstly to have a read back only system and play with it manually to see if your brain can be the control. You will start to develop a set of rules in your head as to how to control the temperature. This is basically what 'fuzzy logic' is, a set of rules. Code the rules and see how you get on with the control. Trust me, if you go down the PID route, you may be in for a long ride. I work on this stuff daily and it most certainly isn't ’30 lines of C code'. Not trying to be negative, just realistic. Good luck with the project!
__________________
www.classicretrofit.com |
||
![]() |
|
Registered
|
^^^ Jonny... I have 2 sensor types planned. One is a temp only sensor. This unit goes into evap's core.
DS18B20 Waterproof Temperature Sensor ![]() DS18B20 Waterproof Temperature Sensor - oddWires Next sensor is temp & humidity. One unit will go behind bumper for ambient info. Second unit is in cabin, on ceiling just aft of seats. The DHT22 is a basic, low-cost digital temperature and humidity sensor. It uses a capacitive humidity sensor and a thermistor to measure the surrounding air, and spits out a digital signal on the data pin (no analog input pins needed). Its fairly simple to use, but requires careful timing to grab data. The only real downside of this sensor is you can only get new data from it once every 2 seconds, so when using our library, sensor readings can be up to 2 seconds old.
![]() https://www.adafruit.com/products/385 Am waiting on John to hear if all planned sensors and Nextion display can be connected to the Arduino. I believe a "Dallas" one wire config is needed so each sensor must have a unique & readable ID... Just realized this sensor is not one-wire compatible.
__________________
Karl ~~~ Current: '80 Silver Targa w /'85 3.2. 964 cams, SSI, Dansk 2 in 1 out muf, custom fuel feed with spin on filter Prior: '77 Copper 924. '73 Black 914. '74 White Carrera. '79 Silver, Black, Anthracite 930s. |
||
![]() |
|
Mighty Meatlocker Turbo
Join Date: Apr 2016
Location: North TexASS
Posts: 18,533
|
Karlicious, I think that you have gone completely and utterly (or is that "udderly"?!?!) insane due to years of ridiculous humidity exposure, bro! My a/c needs are more simplererer than yours; cold and colder - no fancy, electronic climate monitoring and control needed (could probably just use a toggle switch that I would use to cut power to the compressor whenever I was cold enough or detected evaporator icing - don't really even need a fookin' thermostat)!
Butt despite your ever increasing psychosis, I still luv yew, longtime!!! |
||
![]() |
|
![]() |
Registered
Join Date: Feb 2014
Location: Lomita, CA
Posts: 2,688
|
Quote:
a solution before the actual coding begins. What had been proposed by the OP is NOT an overly complex design effort as has been suggested!
__________________
Dave Last edited by mysocal911; 10-08-2016 at 12:33 AM.. |
||
![]() |
|
Registered
Join Date: Jul 2013
Location: South East England
Posts: 1,692
|
Quote:
Rescued too many spaghetti code projects... By your '30 lines of code' statement you gave the OP the impression that the software would be easy and thus completed quickly. It won't be easy unless effort is put in up front in the requirements stage whcih takes time.
__________________
www.classicretrofit.com |
||
![]() |
|
Registered User
Join Date: Jun 2015
Location: Irvine & Saudi
Posts: 96
|
"How to assemble and fix an AC from the NASA's international space station"
You guys should rename this thread to this^
__________________
A Targa. |
||
![]() |
|
Registered
|
Quote:
I've seen your padded cell Rono. Is just a different color than mine. ![]() Swamp luvs ya back Bro!
__________________
Karl ~~~ Current: '80 Silver Targa w /'85 3.2. 964 cams, SSI, Dansk 2 in 1 out muf, custom fuel feed with spin on filter Prior: '77 Copper 924. '73 Black 914. '74 White Carrera. '79 Silver, Black, Anthracite 930s. |
||
![]() |
|
Registered User
|
I've been looking at using an Arduino computer to take can bus information from my Megasquirt ECU and displaying it on my console. Have you given consideration to the readability of the display in sunlight?
|
||
![]() |
|
Registered
Join Date: Feb 2014
Location: Lomita, CA
Posts: 2,688
|
Obviously more if one decides to do assembly language coding.
__________________
Dave |
||
![]() |
|
Mighty Meatlocker Turbo
Join Date: Apr 2016
Location: North TexASS
Posts: 18,533
|
|||
![]() |
|
Registered
|
Quote:
1. Cabin Temp Rules: IF Cabin temp is > Set Temp, THEN compressor = ON2. Preventing Evap Freeze Rules: IF Cabin temp > Set Temp, and Evap =< 32.1 dF, THEN compressor = OFF. (Evap temp always has priority as to whether compressor is ON or OFF.)3. There are some other control rules such as auto-display-OFF and screen contrast yet to sort out. System Ops: Power is fed Arduino from Fan speed switch. 12v steps down to 5v. When Fan is turned ON, digital control & display is ON. Display comes on in status it was when last shut off. Temps are all and always in dF. Existing thermo knob controls potentiometer for “Set Temp”. This does away with existing switch and capillary. To prevent screen display from buring in, display auto-shuts-OFF after 2 minutes of non interrupted display. (Turning it back on has yet to be resolved. Touch screen is the idea but stock bezel for 2.8” display prevents touch screen-ability. Need solution to replace stock bezel... 3-d print? CNC milling? I don't know answer.) Unknowns: Not being familiar with Arduino environment, am uncertain as to all planned parts being able to connect to it… even with a Dallas One-Wire protocol established. Basically I do not yet know how many pins the display will take. Quote:
____ __ _ Few words on my insanity and NASA-esque nature of this project... This is all done for the creative challenge of it---answering questions: Can it be done? If so... how? It's like climbing a fookin mountain... there's no practical sense to doing so... one does it to do it. (Same insanity applies here ![]()
__________________
Karl ~~~ Current: '80 Silver Targa w /'85 3.2. 964 cams, SSI, Dansk 2 in 1 out muf, custom fuel feed with spin on filter Prior: '77 Copper 924. '73 Black 914. '74 White Carrera. '79 Silver, Black, Anthracite 930s. Last edited by Discseven; 10-09-2016 at 09:28 AM.. |
||
![]() |
|