Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
blog:car_stuff_pycosworth [2021/08/18 10:14] – [Running PyCosworth] john | blog:car_stuff_pycosworth [2021/08/18 16:04] (current) – [Software Requirements] john | ||
---|---|---|---|
Line 4: | Line 4: | ||
**PyCosworth** is a monitoring, data-logging and diagnostic tool for (primarily Escort/ | **PyCosworth** is a monitoring, data-logging and diagnostic tool for (primarily Escort/ | ||
+ | |||
+ | Quick Links: | ||
+ | * General overview, Hardware & Software requirements - //keep reading this page// | ||
+ | * [[blog: | ||
+ | * [[blog: | ||
+ | * [[blog: | ||
+ | * [[blog: | ||
{{: | {{: | ||
Line 20: | Line 27: | ||
===== Hardware Requirements ===== | ===== Hardware Requirements ===== | ||
+ | |||
+ | In addition to my software, you need a few key pieces of hardware in order to access the sensor data from your Cosworth ECU: | ||
* **A vehicle with a //serial datastream enabled// Magneti Marelli ECU**, specifically: | * **A vehicle with a //serial datastream enabled// Magneti Marelli ECU**, specifically: | ||
Line 40: | Line 49: | ||
* Button 3: Restart ECU comms | * Button 3: Restart ECU comms | ||
- | * **Optionally: | + | * **Optionally: |
* **Optionally: | * **Optionally: | ||
- | * **Optionally: | + | * **Optionally: |
- | * **Optionally: | + | * **Optionally: |
- | * **Optionally: | + | * **Optionally: |
{{: | {{: | ||
Line 56: | Line 65: | ||
The addition of an AEM Wideband sensor and gauge makes it possible to simultaneously log AFR data at the same time as the main Cosworth ECU sensors. If you have another device that you wish to add support for, please let me know. | The addition of an AEM Wideband sensor and gauge makes it possible to simultaneously log AFR data at the same time as the main Cosworth ECU sensors. If you have another device that you wish to add support for, please let me know. | ||
- | It it not designed to work (and I have no way to test) on the Fiat/Lancia or *Ferrari F40!* version of the ECU, but *may* work. However, an [[http:// | + | It it not designed to work (and I have no way to test) on the Fiat/Lancia or Ferrari F40 version of the Magneti Marelli |
==== Hardware Configuration Guide ==== | ==== Hardware Configuration Guide ==== | ||
- | There are too many variables to say //" | + | There are too many variables to say //" |
===== Software Requirements ===== | ===== Software Requirements ===== | ||
- | All of the **Python** software library requirements are listed in the *requirements.txt* file, simply run: | + | All of the **Python** software library requirements are listed in the //requirements.txt// file, simply run: |
< | < | ||
Line 86: | Line 95: | ||
After initialisation is complete, the application will immediately move to the first defined sensor that is set in the [the configuration file](docs/ | After initialisation is complete, the application will immediately move to the first defined sensor that is set in the [the configuration file](docs/ | ||
- | You can cycle through the available Cosworth sensors | + | You can cycle through the available Cosworth sensors: |
+ | |||
+ | * **AMAL** valve duty cycle, | ||
+ | * **BAT** Battery voltage | ||
+ | * **CO** Base Fuelling, in percentage increase over base level | ||
+ | * **ECT** Engine Coolant Temperature, | ||
+ | * **IAT** Intake Air Temperature, | ||
+ | * **IGNADV** Ignition Advance, in degrees | ||
+ | * **INJDUR** Injector Pulse Width Duration, | ||
+ | * **MAP** Manifold Pressure, in millibars (or PSI, if configured via settings) | ||
+ | * **RPM** | ||
+ | * **TPS** Throttle Position, in percentage open | ||
+ | |||
+ | ... with a single press of **Button 2** at any time. In addition | ||
- |   | + | {{: |
The units the sensors are reading in are automatically shown to the right of the sensor value; whether this is a percentage, degrees centigrade, voltage, millibars or some other unit. | The units the sensors are reading in are automatically shown to the right of the sensor value; whether this is a percentage, degrees centigrade, voltage, millibars or some other unit. | ||
Line 98: | Line 120: | ||
You can press **Button 3** to re-establish communication links with the supported sensors (Cosworth ECU and AEM Wideband AFR) without powering the device off. Whilst comms are being restarted a wait message will be shown on-screen. | You can press **Button 3** to re-establish communication links with the supported sensors (Cosworth ECU and AEM Wideband AFR) without powering the device off. Whilst comms are being restarted a wait message will be shown on-screen. | ||
- |   | + | {{: |
- | ==== Additional | + | ==== Datalogging & Demo Functions ==== |
- | You can access a demo mode to test your hardware by running the application in *Demo Sensor* | + | You can access a demo mode to test your hardware by running the application in //demo sensor// |
- | In addition, you can start or stop logging at any point in time by pressing **Button 1** and a log of the active sensors will be recorded to disk/SD card. **Logging Mode** is indicated by the status display in the bottom right corner of the screen. | + | In addition, you can start or stop //logging// at any point in time by pressing **Button 1** and a log of the active sensors will be recorded to disk/SD card. **Logging Mode** is indicated by the status display in the bottom right corner of the screen. |
- |   from the first reading. | + | The **Time** column is the time relative to the first sensor reading. Since the Raspberry Pi and other similar embedded devices do not have clocks, there is no guarantee we can use a HH:MM:SS format, so we record each log of sensor readings as an offset (in seconds) from the first reading. |
===== Configuration ===== | ===== Configuration ===== | ||
- | All of the user-customisable settings are found in the file `libs/ | + | All of the user-customisable settings are found in the file < |
- | Please see [the configuration guide](docs/ | + | Please see [[: |
---- | ---- | ||
Line 126: | Line 148: | ||
===== Pectel Datastream ===== | ===== Pectel Datastream ===== | ||
- | For full details of the Pectel serial datastream, see [the Cosworth Pectel datastream protocol](docs/ | + | For full details of the Pectel serial datastream |