![]() |
|
|
|
Registered
Join Date: Feb 2014
Location: Lomita, CA
Posts: 2,688
|
Quote:
1. You have one output controlling the compressor clutch relay thru a logic level FET, e.g. 2N7000. 2. You have four inputs which are continually read in a loop; the temp setting pot., the cabin temp, the Evap temp, and if desired the outside temp to provide another feedback element if the control loop. The Arduino chip (AVR), like the PIC chip, provides analog to digital inputs if your temp sensors lack that. 3. Good that you have thought of hysteresis which helps reduce the closed-loop possibility of oscillations. At this point you need to focus on your sensors to determine what the signals will look like and what conversions will be necessary. That's the critical area of your design. After that, you can develop a preliminary flow-chart of your design. Interfacing the controller with the display is secondary in your design effort, as it is fairly straight-forward. Breadboard the system and test it without the display function integrated to check the overall concept.
__________________
Dave Last edited by mysocal911; 10-09-2016 at 09:41 AM.. |
||
![]() |
|
Registered
Join Date: Jul 2013
Location: South East England
Posts: 1,692
|
Quote:
Real world effects (like entering shade / bright sun or opening the door/window) will cause the cabin temperature sensor to not accurately reflect the 'nominal' temperature in the cabin. To combat this you will firstly need to apply a suitable software filter to the cabin sensor input over time. A 'moving average' filter will probably be ok. It will act like a damper on the sensor value so the system doesn't react to spikes (like a brief door opening). Secondly, you should use a 'trend' for the temperature (again, over time), rather than a snapshot. To understand this, imagine the car is hot and the A/C system has been on 'full'. You would hope that the cabin temperature would start to fall on an exponential gradient curve. If you suddenly got a below setpoint reading from the cabin sensor, the chances are it is a freak event (like you cracked the window or waved your hand). By your rules above, the compressor would switch off, which is undesirable. If however, you followed the 'trend' you would know that the input is false. Now, the other issue is thermal inertia. You actually want to stop the compressor before you reach the setpoint, otherwise you will overshoot it. Worse, when the temperature rises, you will not be able to start the compressor in time because of your hysteresis. In hot weather, the car temperature will rise something like 5 times faster with the A/C off, than it cools with it on so the system is lopsided. You really need the compressor to be switched on well in advance of the cabin sensor going over set point or a massive overshoot will occur. How can this be done? Well, it is done with a PID controller. The PID controller takes into account 'history' and also 'looks ahead'. Yep, it's all about time again. This is an interesting project and you will have lots of fun but expect the software to take at least 4 times longer than you expect. Drop me a line if you need some help, I have been doing this stuff a very long time and know most of the pitfalls. p.s. All modern car cabin temperature sensors are fitted in shade and have a small fan so that a known quantity of air is sampled over time (not that again!).
__________________
www.classicretrofit.com |
||
![]() |
|
Mighty Meatlocker Turbo
Join Date: Apr 2016
Location: North TexASS
Posts: 18,533
|
Hey Karl, speaking of "padded rooms"; I use an electronic controller very similar to what you've described in this thread to control/override the thermostat of a window a/c that I use to super-cool my bedroom for sleeping purposes (I sleep best in temps below 60 degrees F - mid to low 50s are the best for me). It is a self contained unit that measures room temp, has a heater element that attaches to the a/c's evaporator temp probe, and a frost sensor for the evaporator. The only "trouble" for automotive use is that it is 120V (AC) powered (not to mention it is costly).
It is fully adjustable for temperature, frost sensing sensitivity, etc. This is one of the most pleasing gadgets that I have ever bought for myself - have been using it every night for a little more than two years and works perfectly. I discovered this little gem when I was doing online searching for instructions on how to build something similar since window a/c units are only capable of temps of about 64 degrees, and simply replacing the thermostat with a toggle switch does not work since the evaporator then freezes up (I tried this, buttofcourse). https://www.amazon.com/CoolBot-Cooler-Controller-window-conditioner/dp/B003VSLTAI/ref=sr_1_1?ie=UTF8&qid=1476040680&sr=8-1&keywords=koolbot ![]() Last edited by Rawknees'Turbo; 10-09-2016 at 02:36 PM.. |
||
![]() |
|
Registered
Join Date: Jul 2013
Location: South East England
Posts: 1,692
|
^. Yep, that's a PID controller.
Here's your typical far eastern copy 12V PID:
__________________
www.classicretrofit.com |
||
![]() |
|
Registered
Join Date: Feb 2014
Location: Lomita, CA
Posts: 2,688
|
Quote:
coding that controls the on/off of the compressor. Once that's accomplished, one can add more sophisticated algorithms as system needs dictate. Adding time delays before changing the state of compressor is simple to add to the algorithms. Bottomline: He's NOT designing this controller as a replacement for the early problematic Porsche Boxer 986 CCU.
__________________
Dave Last edited by mysocal911; 10-09-2016 at 02:18 PM.. |
||
![]() |
|
Registered
|
I have a very stupid question. When someone like Wong programs his chips, he puts the car on a Dyno and reads various data while the car is running (air flow, etc). But, there is no OBD2 port. How do you connect a computer to read the data in the DME ??
__________________
1986 Bosch Icon Wipers coupe. |
||
![]() |
|
![]() |
Mighty Meatlocker Turbo
Join Date: Apr 2016
Location: North TexASS
Posts: 18,533
|
The data the he is reading is being gathered by the dyno's data acquisition system (tailpipe sniffer for air-to-fuel ratios, ignition timing monitoring via plug wire clamp or similar method, horsepower and torque output, knock detection, etc) and changes are made to the fuel and ignition systems in order to accomplish whatever his goals are - there is no plugging into, or reading data within the DME.
|
||
![]() |
|
Registered
Join Date: Feb 2014
Location: Lomita, CA
Posts: 2,688
|
Quote:
using a Windows app. One can also use a chip emulator and another app to store and run modified chip maps without having final EPROM chip installed, i.e. changing map values easily with a PC connected while ECM is installed in the vehicle.
__________________
Dave |
||
![]() |
|
Mighty Meatlocker Turbo
Join Date: Apr 2016
Location: North TexASS
Posts: 18,533
|
^^^
Thanks, I was unaware of that. |
||
![]() |
|
Registered
|
Sugarwood,
If you have a need to modify your DME's maps, chat with Sal Carceller, you will find him in he forum under topics of MAF. Sal helped me with my fuel and ignition maps. There is no 'data' that changes or is collected and stored in the DME that I'm aware of.
__________________
Kuehl 1987 911 cab, modified https://griffiths.com/ |
||
![]() |
|
Registered
|
Not changing anything, just upgraded to a Wong chip, and was doing a little background reading for fun. That's cool you can use a chip emulator without writing to an actual chip.
__________________
1986 Bosch Icon Wipers coupe. |
||
![]() |
|
Registered
|
Yup, you can use a Moates Ostrich to get things down pat and leave it attached, or
burning the new maps to a chip reduces connections and loss if the ostrich battery dies. If you go down the MAF road, Sal is the got to guy. Make sure you don't have any air leaks before change your chip; warp intake manifold flanges are common if the engine has been worked on in the past.
__________________
Kuehl 1987 911 cab, modified https://griffiths.com/ Last edited by kuehl; 10-10-2016 at 11:37 AM.. |
||
![]() |
|
Registered
|
Quote:
Worth noting is a comment on One-Wire. I thought this was an essential system protocol based on the number of wires from the display and multiple sensors feeding into the Arduino. John says One-Wire is good but not a requirement here. (As a One-Wire humidity sensor could not be found... this is good news for the parts monger.) When I receive parts, all of it goes to John. He'll breadboard the system outside the car. I'll install after it's proven. Quote:
TREND... mo interesting. I interpret this as averaging data over a given period. Nice thinking. THERMAL INERTIA... This is great stuff. You're pushing boundaries of AC control beyond even my insanity! This has the feel of "environmental prediction." I can see shutting the compressor down in advance of Set Temp being achieved based on inertia... but turning it on in advance??!! Impressive thinking. This is something to consider after system is up and running. Thanks for drop line offer Jonny! Quote:
Padded room with snow maker... way to go Rono. You chill for sure. That's interesting gizzmo. Looked into some units like that but they were expensive. Funny that you tried to over-ride system to improve... Fookin u at the helm 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. Last edited by Discseven; 10-11-2016 at 12:31 PM.. |
|||
![]() |
|
Registered
Join Date: Dec 2011
Location: Space-time continuum
Posts: 1,231
|
|||
![]() |
|
Registered
|
^^^ Toast... Nice note on mod. And hats off to Singer for clever move on retro'ing new CCU. This project... not concerned with period appropriateness. Design goal is a high quality, finished look that integrates "nicely" with black '80 interior.
Today---tested for reflection off display (using iPhone as stand-in.) Is non-issue depending on viewing angle and angle that display is mounted at. Is definitely bad news if line of sight (via display) is out through rear window to bright background---display is useless in this case. Bottom line = angles are critical consideration. Setting it correctly avoids having to duck/bob to eliminate any intrusive reflection. It's possible to "sculpt" panel where display will mount so reflection is roof of car---works with black headliner. Other possibility is to mount display so it can rotate to preferred angle. This gets complicated to produce. (Reflection from my point of view is black/optimal... so not sure how much attention I'm going to give this.) John has Nextion display he's going to test for in-sunlight visibility of displayed images. While John attends sketching/programing, I'll be working on the mounting plate (that extends down from existing AC control panel) and how to finish it---black leather or black plastic cover? Plan is to fab added panel out of sheet aluminum... 0.032" material.
__________________
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,
Some displays have a matte finish versus a glossy one for this very reason (daylight reflection). Consider the Teslas have a big display right in the center console. Maybe it's time to find a Tesla dealer and go for a test drive. ![]() FrenchToast - excellent picking up on the 964 unit.
__________________
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
|
^^^ Good point on material reflection characteristics Tim. John has display unit (in hand) that we'll use. I'll ask him.
Largest challenge so far has been a bezel to finish install with. Many of these small display manufacturers make a fine display... but NO bezel. Won't go into why we're using a Nextion 2.8 display with a 4D 2.8 bezel but that's where the display/bezel combo stands at this moment. Unfortunately this 2.8 bezel is full plastic. This means if used, there'll be the bezel plastic layer over the screen layer. Not optimal. Alternative is to make cut out bezel. Will eventually explore how to go about doing so. Suggestions are welcome. Am going to test sculpting the mounting panel so looking at the display reflects my black headliner. Since cubby's verticals (where added mounting panel goes) are parallel, is simple matter to sculp & adjust panel until tilt of display is correct. Might be possible to preserve a ledge of storage space (in center console cubby) when doing this.
__________________
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
|
Quote:
You could review OLED displays that are curve able (flexible). Or mount your display in a frame you can pivot. Otherwise use a white on black display (white text on black background) for highest contrast; you might find that contrast scheme blends in better with the cockpit as opposed to full color, or, use dimmable dedicated digital LEDs.
__________________
Kuehl 1987 911 cab, modified https://griffiths.com/ Last edited by kuehl; 10-12-2016 at 04:41 PM.. |
||
![]() |
|
Registered
|
^^^ CG... Display is full color graphic so background will be jet black. Text will be high contrast. Screen set up is seen earlier in thread.
After considering importance of angle that display is mounted at, have decided it being best to tilt it back a few degrees when mounted (in center console.) This will ensure display's face reflecting black headliner (from driver's perspective.) Rather than make mounting plate from aluminum sheet, am going to sculpt the mounting plate out of something. Not sure what yet. Sculpting means AC controls face plate will---without question---be finished off in a leather covering (to accommodate 3 dimensional curves.) This plan adds a good deal of work. Am thinking "finished product" will be more appealing than taking easy route. John tested legibility of actual Nextion display in car. Visibility is good.
__________________
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
|
Quote:
![]() |
||
![]() |
|