Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 15 days ago
JSON representation

Raspberry Pi Pico/RP2040 project to read Ethanol % and temperature from a GM flex fuel sensor and transmit via CANBUS.

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%).

![Wiring Diagram.png](https://github.com/Sixline/PicoECA/blob/31fcc2172cd30a571ddddda284e793472f792b68/Wiring%20Diagram.png)

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.

![Completed Module.png](https://github.com/Sixline/PicoECA/blob/31fcc2172cd30a571ddddda284e793472f792b68/Completed%20Module.png)

```
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)
```