whitfijs-jw / volvo240-digitaldash Goto Github PK
View Code? Open in Web Editor NEWVolvo 240 Digital Dash Project. It's not much, but its honest work.
License: MIT License
Volvo 240 Digital Dash Project. It's not much, but its honest work.
License: MIT License
Move junk out of main.cpp
Work on Pi Zero/Zero 2 support for a linux image along with the Pi3 and Pi4 images that are currently setup
To boot can0 + mcp2515 in config.txt in boot partition had to be disabled.
Check if network interfaces needs to be tweaked as well to remove can0 bringup
Late 70's/Early 80's dash connectors are physically similar to the late 80's connectors for which this was designed to support. There should at least be some documentation on how a patch harness should be wired to work with the existing connections on the board.
As a part of this effort it's probably worthwhile to make an untested/unconfirmed section of the readme:
Describe the bug
The folder declared for eigen pointer has either been moved or deleted, needed to manually download eigen package and put into that folder
Should be an easy fix
Long pressing a button should be configurable -- start with trip odometer resetting.
MAP sensor atmospheric offset is not configurable
gcc-11 and a I'm assuming 12 fail to build qt5. Immediate alternative is to use gcc-10 or below. Will need to look into the buildroot upstream to see how this is being handled.
In adc.h:
/* 5V inputs go through voltage divider for 3.3V ADC inputs -- not quite 100% */
static constexpr double REFERENCE_VOLTAGE_DIVIDER = (15.0e3 / (15.0e3 + 8.2e3));
static constexpr double INPUT_VOLTAGE_DIVIDER = (15.0e3 / (15.0e3 + 8.2e3));
static constexpr double VOLTAGE_CONVERSION_CORRECTION_FACTOR = 3.3 / (INPUT_VOLTAGE_DIVIDER * 5.0);
farther down:
/**
* @brief Read scaled ADC value
* @param channel: adc channel to read
* @return current measured voltage
*/
double readValue(int channel, double vRef = -1) {
double volts = ((double)readRawValue(channel) / (double)mMaxVal);
if (vRef < 0) {
updateReference();
return volts * mVref * VOLTAGE_CONVERSION_CORRECTION_FACTOR;
} else {
return volts * vRef;
}
}
Not sure what happened but the multiplication by mVref and division by 5.0 are superfluous and introduce a small error.
Switched 12V from VSS connector to power supply is unprotected from reverse polarity and load dump.
Options:
- Big (5-7kW) unidirectional TVS diode to to cover both situations. Main goal is to limit load dump voltage spike to be within the voltage range of the power and other inputs. (https://www.littelfuse.com/~/media/electronics/datasheets/tvs_diodes/littelfuse_tvs_diode_sld8s_datasheet.pdf.pdf)
- Bidirectional TVS diode for load dump and schottky diode for reverse voltage protection.
12V input protection is a little more open ended.
Replace the cap-touch board with a 5" capacitive touch screen -- would only work with dual HDMI output rpi4.
todo:
Move the junk outside of the main file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.