https://github.com/sixline/picoeca
Raspberry Pi Pico/RP2040 project to read Ethanol % and temperature from a GM flex fuel sensor and transmit via CANBUS.
https://github.com/sixline/picoeca
canbus ethanol flex flexfuel fuel pico raspberry-pi rp2040
Last synced: 8 days ago
JSON representation
Raspberry Pi Pico/RP2040 project to read Ethanol % and temperature from a GM flex fuel sensor and transmit via CANBUS.
- Host: GitHub
- URL: https://github.com/sixline/picoeca
- Owner: Sixline
- License: gpl-3.0
- Created: 2024-08-02T22:41:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-03T00:32:41.000Z (11 months ago)
- Last Synced: 2025-04-05T21:45:03.002Z (3 months ago)
- Topics: canbus, ethanol, flex, flexfuel, fuel, pico, raspberry-pi, rp2040
- Language: C
- Homepage:
- Size: 2.23 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# Pico Ethanol Content Analyzer - Raspberry Pi Pico/RP2040
This will read the frequency(Ethanol %) and low pulse time(C Temp) of a standard GM Ethanol content sensor, print it to USB serial, and then transmit a CANBUS message.
Uses the PIO for CANBUS, using this library: https://github.com/KevinOConnor/can2040
CANBUS message format can be set to whatever. Default is set to mirror the Zeitronix format. It will transmit 50% Ethanol, max temperature, and a faulted sensor state for any error condition. The error conditions being a disconnected or failed sensor, too low of a frequency(below 0%), and too high of a frequency(above 100%).

Tested with:
* VDO / CONTINENTAL SE1004S or GM 13577429. Connector for the sensor is a Delphi 13511132. Cheap connectors on AliExpress work great.
* Texas Instruments SN65HVD230 CANBUS transceiver. Again, cheap breakout boards on AliExpress. Depending on your application you may not may not need a 120 Ohm termination resistor. The boards I bought from AliExpress included them.
* QS-1205CME-3A buck converter, from AliExpress, to step down the vehicle 12V to 5V needed for the Pico.Total cost was around $100.

```
Output Ethanol Content: % (Frequency Hz - 50)
Fuel temperature °C: [41.5 x low pulsewidth (ms)] - 81.25
Self diagnostics: Embedded (fuel contamination more likely as readings increase above 150Hz)
```