Commit Graph

1045 Commits

Author SHA1 Message Date
Vitor Moreno B. Sales c8ee272aca
Update speeduino.ini (#483) 2020-12-03 08:54:25 +11:00
celso acyr 4a2d6482e3
Value of programmable outputs in the datalogger. (#444)
Fixed value of programmable outputs, now appears in the datalogger.

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-12-02 10:50:06 +11:00
Josh Stewart 4f6e99cbe0 Revise the number of channels on the stm32 Balck testing board. Closes #473 2020-12-02 09:52:23 +11:00
Vitor Moreno B. Sales 00801ad82f
Added pinIsReserved macro (#479)
* Added pinIsReserved macro

Function used to don't initialize reserved pins such as USB on ARM boards, each pin must be defined on board.h file

* Update board_teensy35.h

Include Serial and CAN0 pins
2020-12-02 08:59:44 +11:00
Tjeerd df1f5ccbf0
Closed loop idle improve (#481)
* Squashed commit of the following:

commit c73f316fa5bf8c929a8fef5736f4a40045ea992f
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Wed Nov 25 21:53:45 2020 +0100

    cleanup and fix merge issues

commit 57f1e8c6c73bcfb699b18ac51a2ec646be822f55
Merge: 04478ca 131673d
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Wed Nov 25 18:59:58 2020 +0100

    Merge branch 'Closedloop_idle_improvements' into ClosedLoopIdleImprovement

commit 131673dc60417cbc773b0763d2f93e917c83325f
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Sun Nov 22 21:54:03 2020 +0100

    more fiddeling with idle control

commit e4406166cde91552027a0dfb7958d6894098f066
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Sun Nov 22 20:36:24 2020 +0100

    More fiddeling with idle control

commit 45822003d41e021e3ed93e8e14ce05479ddfd17b
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Sat Nov 21 14:59:32 2020 +0100

    fix initial value

commit ff8fadae7844bd8e5934ee0f311fbf5e0842ec29
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Thu Nov 19 23:14:14 2020 +0100

    add TPS limit to prevent integeral windup.

commit 7683b2e65569787b1c94eae6f4847cdadd394402
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Thu Nov 19 22:40:53 2020 +0100

    cleanup idle.h

commit da55ee9dbd76d65608bfb5b950bc948a498b9599
Author: Tjeerd <tjeerdie@users.noreply.github.com>
Date:   Thu Nov 19 22:36:18 2020 +0100

    Further improvement simplifying code for closedloop PID control with feedforward.
    make PWM output work
    Tinkering new Idle control
    working on closedloop idle
    Initial work on improving closed loop Idle control

* reset platformio.ini

Co-authored-by: Tjeerd <tjeerdie@users.noreply.github.com>
2020-12-02 08:37:58 +11:00
DIY-EFI fe6f0c684a
Add Idle up output (#378)
Implement functionality to allow a defined output pin to toggle (normal or inverted) based on the idle up input pin.

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-11-16 08:49:22 +11:00
henriquebelaz 60ffb92c45
Added default Fueltech WB-O2 Nano wideband values. (#467)
* Added Fueltech WB-02 Nano default wideband calibration.

Default wideband lambda values go from 0.59 at 0.2V to 1.10 at 4.8V.

* Update speeduino.ini

* Update speeduino.ini
2020-11-12 07:23:23 +11:00
Josh Stewart 5e6fd748dc Merge branch 'master' of https://github.com/noisymime/speeduino 2020-11-10 16:12:14 +11:00
Josh Stewart 27630dfaf0 Memory definitions for a few upcoming changes 2020-11-10 16:11:59 +11:00
sandmanWAjeep 0f67b5ddfc
Update speeduino.ini (#466)
changed the numbers for the secondDataInBits. This fixed issue #464 where the second condition for rule number 1 was being used to evaluate rule number 2 of the programmable outputs.
2020-11-10 15:46:22 +11:00
Josh Stewart 4d28aca672 Remove typo in ini file. Fixes #474 2020-11-09 11:41:16 +11:00
Josh Stewart 4661a040f9 Free up position 0 on the pinLayout array. Fixes #472 2020-11-04 08:37:48 +11:00
Josh Stewart e4ecd00618 Allow the hard launch and flat shift cuts to operate below the engine Protection min RPM 2020-10-20 10:56:03 +11:00
Josh Stewart dc18ea91c1 Serial performance tweaks. Remove uneeded data rate variable 2020-10-19 15:22:19 +11:00
Josh Stewart 05f6da9e4a Move Teensy35 CAN init. Fixes #456 2020-09-18 12:42:24 +10:00
Josh Stewart ffa6054e37 Remove typo in ini file 2020-09-18 11:05:17 +10:00
Josh Stewart bc0b756a92 Minor BOM file updates 2020-09-18 10:47:39 +10:00
celso acyr 14c7058239
ODG Wideband option (#452)
Common calibrations for ODG conditioners
2020-09-05 14:24:32 +10:00
Josh Stewart e418224405 Formatting cleanup of ini file 2020-09-04 09:41:50 +10:00
Josh Stewart 494d63d598 Add serial rate gauge and throughput tweaks 2020-09-04 09:19:43 +10:00
Josh Stewart e9fcaffe5b Merge branch 'master' of https://github.com/noisymime/speeduino 2020-08-23 08:57:24 +10:00
Vitor Moreno B. Sales 25f2ef24d0
[Decoder] Add Weber-Marelli pattern (#400)
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-08-23 08:56:35 +10:00
Josh Stewart f746471b47 Separate 2nd spark table from fuel table 2020-08-23 08:45:47 +10:00
Josh Stewart fb15a565ea
Pr/435 (#445). Closes #435
* Add files via upload

* Add files via upload

* Update storage.h

* Update log size

Co-authored-by: DylanRooijakkers <69131866+DylanRooijakkers@users.noreply.github.com>
Co-authored-by: Dylan Rooijakkers <rooijakkersd@gmail.com>
2020-08-23 08:27:44 +10:00
Josh Stewart 9a0f770a75 September 2020 development signatures 2020-08-23 08:09:51 +10:00
celso acyr 6b5788d09f
FIX A8 Fixed duplicate A8 (#443)
Fixed duplicate A8
2020-08-23 07:33:49 +10:00
Josh Stewart 21063a60ff August 20 signatures and base tunes 2020-08-22 21:15:25 +10:00
Josh Stewart 7c3db9b7df Fix for programmable outputs not funcitoning 2020-08-20 16:58:44 +10:00
Josh Stewart bb58d02b36 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-08-18 16:19:36 +10:00
Pasi Kemppainen c2558fa4a1
Bug fix and small improvement for local aux input channels (#398)
* Add config error indicator

* Fixes and naming change

* Fixes

* Change to fix conflicting error bit flag in init

* Updating IO flag setting

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-08-18 14:51:32 +10:00
iLeeeZi 8e9b680be6
Flex fuel sensor temperature and temperature correction (#413). Also closes #252
* Fuel temperature correction

* fix negative temperatures

* typo fixed
2020-08-18 12:34:56 +10:00
Josh Stewart 18e608be57 Add VSS gauge/logging in MPH 2020-08-18 12:18:30 +10:00
Josh Stewart af13bf7276 REvised layout for the progammable outputs dialog 2020-08-17 09:02:27 +10:00
Vitor Moreno B. Sales 8299c74d38
[AE] Introduce ReqFuel % multiplier (#332)
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-08-16 09:44:03 +10:00
Josh Stewart 20ee2c88a5 Combine multiply MAP options into single dropdown 2020-08-16 09:36:20 +10:00
Josh Stewart 356b8da8f0 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-08-16 09:01:44 +10:00
Josh Stewart 73938e9640 Test work on progammable outputs UI 2020-08-16 09:01:40 +10:00
Vitor Moreno B. Sales f84bdade64
[PW Math] Introduce fixed MAP multiply (#347)
* [PW Math] Introduce fixed MAP multiply

* Compilation fix

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-08-16 08:59:36 +10:00
Josh Stewart a6aafee534 Updated PW tests to ensure that work following the introduction of incorporate AFR 2020-08-14 13:17:16 +10:00
Antti Muurikainen 0c78b13c9f
First commit on incorporate AFR (#402) 2020-08-13 22:48:26 +10:00
Vitor Moreno B. Sales b29fa21775
Programmable outputs (#396)
* Programmable outputs

* Prevent array overflow

* Show fullStatus variables names on dialog

* Further fixes

* Update with master

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-08-12 14:21:36 +10:00
Josh Stewart 9624985299 Revert TS to using 1023 values for ADC calibration to allow custom WB entry 2020-08-11 17:25:20 +10:00
Josh Stewart 53c0dedde1 Complete new calibration routines for testing 2020-08-11 12:07:12 +10:00
Josh Stewart 0fe885344f Mostly working temp calibrations (See #422) 2020-08-07 14:30:56 +10:00
celso acyr 1d45f0d733
Fixed step value. (#390)
* Iac automatic resolution

Fix idle stepper, work direct with values < 255 and keep existing mode

* Fixed Hysteresis for stepper

0 value bug the counter.

* Fix value

Changed value to 255.

* Ensure no overflow on iacMaxSteps

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-07-30 09:14:10 +10:00
Pasi Kemppainen cc2b95da8d
Add "Half sync" indicator (#370)
* Half sync indicator for 3 different trigger patterns.

Added half sync indicator which shows that there is only primary trigger present for missing tooth, dual wheel and miata 9905 trigger patterns

* missing tooth required some adjusting

* forgot to remove stm32 pin mapping. I have it in other PR

* Leave only for missing tooth

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-07-29 11:07:43 +10:00
Josh Stewart 72531f9c9c Fix incorrect memory alignment in Pg 10 2020-07-27 23:47:52 +10:00
Autohome2 58200f8707
07072020 obdp3 (#411)
* fix to serial0 and serial3 when offset is 0 uses wrong command

* fix to serial0 and serial3 when offset is 0 uses wrong command

* fix hex num

* add teensy canbus library
teensy can read and write functions enabled

* update to teensyduino 1.49

* part 1 prepare structure for obd can port works
rename old can_command() to secondarySerial_command() for secondary serial and create new can_command for real CAN instruction decode.
fix masking for teensy 3x and 4

* set mega as default build

* last part of main obd2 canbus for teensy MCU

* tested obd2 for teensy3.5

* Only init CAN on Teensy with 3.5. Otherwise this will lockup on 4.1

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-07-27 12:34:05 +10:00
Vitor Moreno B. Sales 31541cca2d
[VVT] PID work (#412)
* [VVT] PID work

Tested on a half  moon CAM pattern as working, it should work on others too.

Added option to reverse the PWM output

Co-Authored-By: pazi88 <48950874+pazi88@users.noreply.github.com>

* Fix typo

Co-Authored-By: diy-efi <diy-efi@users.noreply.github.com>

* Add second VVT pwm on same timer

All precious VVT variables was renamed to VVT1 and added VVT2 stuff.

Tested with logic analyzer.

* Define VVT2 for other boards

Added vvt2Pin

* Just update on first tooth

Co-authored-by: pazi88 <48950874+pazi88@users.noreply.github.com>
Co-authored-by: diy-efi <diy-efi@users.noreply.github.com>
2020-07-27 09:05:02 +10:00
Mateusz Muszyński 5b342d27bd
Water methanol injection (#417). Refer #154
* Add water methanol injection

* Set signature back to default

* Set signature back to default

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-07-22 11:27:21 +10:00
Josh Stewart f006dacf2b Merge branch 'master' of https://github.com/noisymime/speeduino 2020-07-05 14:30:22 +10:00
Josh Stewart 99eb493d90 Minor changes to the engine limiter interface 2020-07-05 14:30:18 +10:00
Vitor Moreno B. Sales 7bcf4bcb15
[FP] Add injector delay for priming (#391)
* [FP] Add injector delay for priming

* Fix build

* Add the startup TPS read back in to ensure proper flood clear check

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-07-05 14:28:57 +10:00
Josh Stewart e42a742797 Initial implementation of the 420a decoder. See #133 2020-07-01 16:54:52 +10:00
Josh Stewart ae29912ecd Minor typos, comments and wording cleanup 2020-06-30 11:18:12 +10:00
Josh Stewart 1ec7e7ee86 Mostly complete engine protection (excl AFR) 2020-06-06 14:27:46 +10:00
Josh Stewart 56509b3a4a Merge branch 'master' of https://github.com/noisymime/speeduino 2020-06-06 10:55:38 +10:00
Josh Stewart c3c6cc33c7 Minor work on oil and fuel pressure readings 2020-06-06 10:55:34 +10:00
Josh Stewart 940a6826b5 Initial work on engine protection system 2020-06-06 10:52:27 +10:00
Vitor Moreno B. Sales 27cc6ddf4c
Fix recently added functions (#393)
Changed aseTsnDelay name to aseTaperTime
Added a default aseTaperTime to 0.1S
aseTsnStart isn't needed, removed
Added IAC_STEP_OL taper, big thanks to Ryan
Default dfcoMinCLT is 0C, added calibration offset and increased it to 40C as described on updates.ino
Changed bitRead to BIT_CHECK
Fix dfcoStart wasn't been reseted if conditions was droped before elapsed time causing next DFCO activation right away
Few cosmetical changes on ini

Update commits counter
2020-05-29 12:25:33 +10:00
Josh Stewart fc43f3a479 Allocate memory for fuel/oil pressure inputs 2020-05-29 12:21:28 +10:00
Josh Stewart 2c1269eef9 June development signatures 2020-05-25 09:14:48 +10:00
Josh Stewart 64ef8f40ae Signature and base tunes for 202005 2020-05-22 15:38:15 +10:00
Josh Stewart 24260d1368 Add missing init sections for 36-2-1 2020-05-22 13:49:33 +10:00
Vitor Moreno B. Sales b321e8e17d
[PID] Increase parameters and output resolution (#377)
Parameters are 0.03125% for kP and kI, 0.00981% for kD. Increased output 4 times to give enought room for kP.

PID now ignore compute if input is zero to avoid overshoot, kI and kD part as well.

Added idlePID.Initialize() to crank part to start PID from a working condition.

Show idleLoad when cranking.

Fix TS numbers, increase max value

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-05-21 19:29:38 +10:00
Antti Muurikainen 113247f005
Cranking enrichment to ASE (or run) taper (#364)
* Cranking enrichment tapering to ASE (or run)

* Precision fix and better helptext

* Fixed calculation and added comments

* Small fix for the taper final values

* Styling

* runSecsX10 is now uint32_t, so modify accordingly
2020-05-19 15:22:43 +10:00
Josh Stewart 05022a5d22 Add option to disable fan whilst cranking. Fixes #383 2020-05-18 10:30:03 +10:00
Josh Stewart d73af98010 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-05-12 12:14:57 +10:00
Josh Stewart a826b20307 Most of the remaining VSS parts 2020-05-12 12:14:37 +10:00
Pasi Kemppainen b7e91b58df
Added option for soft limit to also be able to retard by x-amount of degrees (#368)
* Changed the soft limit from absolute value to retard by

* Added selection for fixed and relative retard

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2020-05-09 08:39:13 +10:00
celso acyr 8ac3717507
Idle Steeper motor cracking in closed loop (#371)
* Idle Steeper motor cracking  in closed loop

Adding to run position while starting the engine..

* Update speeduino.ini
2020-05-06 15:17:53 +10:00
Josh Stewart a335820b46 Enable the use of the 50% hardware test modes 2020-05-04 15:08:45 +10:00
Josh Stewart ccad3d258f VSS calibration routines (untested) 2020-04-23 20:34:31 +10:00
Josh Stewart e5f2193abe Introduce command button handler and expand the hardware testing to 8 channels 2020-04-22 11:02:35 +10:00
Josh Stewart 5366695f96 Initial VSS dialog 2020-04-20 23:43:02 +10:00
Josh Stewart fae78b95f7 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-20 22:57:39 +10:00
Josh Stewart 4aa86aae67 Initial basic VSS calcs (Incomplete) 2020-04-20 22:57:00 +10:00
Antti Muurikainen fb0750580b
FIx flexfuel ignition correction value displayed in TS (#361) 2020-04-20 19:52:29 +10:00
Antti Muurikainen 274f424151
Acceleration enrichment cold temperature adjustment (#359)
* New README format

* Update README.md

* STM32F407 fixes (#338)

* Correct overflow for 32bit timers

* fix pins PA0-PA5 on some f407 boards

* Enable access to SRAM Backup domain at boot

* Add missing callback functions

* Change timer resolutions. Corrects idle/aux timer frequencies

* 32 bit overflow only for STM32F4

* Check and update ignition count target before checking other conditions to avoid peramently disabling ego correction in case ignition count rolls over while ego correction is disabled. (#344)

Co-authored-by: bera-n <notrevealedbera-n@gmail.com>

Fixes #343

* Setup memory for vss

* Update all dialog help links to the new wiki

* [DFCO] Add a minimum coolant (#353)

* [DFCO] Add a minimum coolant

On pure ethanol or E85 the engine need a lot fuel to return from DFCO when cold.

Add a minimum temp

Fixes copy-paste error

Fix sign error

* Add signed cast on the calibration offset

Co-authored-by: Josh Stewart <josh@noisymime.org>

* AE cold temp correction

Added possibility to increase AE amount on cold engine. Max cold modifier is tapered with clt.

* Added help texts and value limitation in speeduino.ini and overflow prevention in corrections.ino

* Terminology patch

* Unsigned long in calculation isn't really needed as AE max setting is 255 (+100). Changed to uint16_t.

* Comment revision for the previous

* Updated function description

* Fixes to make correction equal in MAP and TPS modes

* AE cold temp correction

Added possibility to increase AE amount on cold engine. Max cold modifier is tapered with clt.

* Added help texts and value limitation in speeduino.ini and overflow prevention in corrections.ino

* Terminology patch

* Unsigned long in calculation isn't really needed as AE max setting is 255 (+100). Changed to uint16_t.

* Comment revision for the previous

* Updated function description

* Fixes to make correction equal in MAP and TPS modes

Co-authored-by: Josh Stewart <josh@noisymime.org>
Co-authored-by: iLeeeZi <ilari.vehniainen@hotmail.fi>
Co-authored-by: bera-n <bjorn.nyhlen@gmail.com>
Co-authored-by: Vitor Moreno B. Sales <vitor_boss@yahoo.com.br>
2020-04-19 08:21:52 +10:00
Vitor Moreno B. Sales 127bc1585a
[DFCO] Fix - delay isn't working if conditions aren't met immediately (#363)
* [DFCO] Include a delay

* [DFCO] Fix - delay isn't working if conditions aren't met immidiatly

Co-Authored-By: muuris <55035659+muuris@users.noreply.github.com>

Co-authored-by: Josh Stewart <josh@noisymime.org>
Co-authored-by: muuris <55035659+muuris@users.noreply.github.com>
2020-04-17 23:32:10 +10:00
Antti Muurikainen 8e89d5ff3e
Fix negative values in flexfuel ignition advance (#360)
* Fix negative values in flexfuel

* Simplification

* Update previous values

* Comment update
2020-04-16 16:31:54 +10:00
Antti Muurikainen 5b9bc789ab
Datalog entries of pulsewidth with 3 decimals instead of 1 (#336)
It's already with this higher resolution in TS, and tuning idle and low load area with big injectors really require more than just one decimal precision.
2020-04-12 08:13:53 +10:00
Antti Muurikainen 53faee1a3e
First commit (#358) 2020-04-12 07:31:03 +10:00
Vitor Moreno B. Sales 62e90379f6
[DFCO] Add a minimum coolant (#353)
* [DFCO] Add a minimum coolant

On pure ethanol or E85 the engine need a lot fuel to return from DFCO when cold.

Add a minimum temp

Fixes copy-paste error

Fix sign error

* Add signed cast on the calibration offset

Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-04-08 11:25:53 +10:00
Josh Stewart 7edd9f7d38 Update all dialog help links to the new wiki 2020-04-08 08:30:47 +10:00
Josh Stewart af5d769147 Setup memory for vss 2020-04-07 23:45:24 +10:00
Vitor Moreno B. Sales 558d063f56
[DFCO] Include a delay (#348)
Co-authored-by: Josh Stewart <josh@noisymime.org>
2020-04-03 14:46:11 +11:00
iLeeeZi fc40cc24db
prevent priming pulse if flood clear is active (#289) 2020-04-02 10:42:26 +11:00
iLeeeZi 8722065168
6 and 8 cylinder sequential injection (#280)
* 6 cyl sequential related cleanup

* disable 6cyl seq fuel trim tables for now

* add the over 2 squirts fix

* Add 5 and 6 cylinder semi and full sequential

* 5 cylinder changes

* fix priming pulse when using paired or semi-sequential injection

* add 5 cyl special case back

* Add missing 8 cyl stuff

* add missing PW8

* allow to change inj4Ang with non sequential 5 cylinder

* add missing helptext
2020-04-01 17:03:11 +11:00
Vitor Moreno B. Sales 1c7ac1a825
Fix idle taper variable names and include commits counter (#346)
* Fix ini errors

* Include commits counter
2020-04-01 14:33:41 +11:00
Josh Stewart 5107372f30 Merge branch 'master' of https://github.com/noisymime/speeduino 2020-04-01 12:21:03 +11:00
Josh Stewart 5ce4d06975 Add design files for v0.4.4b board 2020-04-01 12:20:47 +11:00
Pasi Kemppainen 1b4d81453c
6&8-cyl wasted cop (#314)
* Added 6-cyl cop mode

* Update to ini

* Why not 8-cyl wasted COP too

Co-authored-by: Pasi Kemppainen <pazi88@users.noreply.github.com>
2020-03-26 21:49:55 +11:00
Josh Stewart e6cf7b57cb Cleanup from last commit 2020-03-25 22:08:08 +11:00
Vitor Moreno B. Sales 4ca428e61e
[IDLE] Crank to run PWM taper (#340) 2020-03-25 21:36:45 +11:00
Vitor Moreno B. Sales 63b726cf78
[ASE] Transition time to disable (#342)
* [ASE] Transition time to disable

* Real time ASE

* Fix last commit

* Fix variables declaration
2020-03-24 12:36:24 +11:00
iLeeeZi a3aedad316
Calculate the injector open time in tunerstudio (#319)
* Add injector open time calculation option

* update calculations dash

* better help text

* remove option to turn off
2020-03-19 15:27:23 +11:00
Josh Stewart bc67453098 Addition of 0-720 injector timing curve. See #306 2020-03-17 18:27:05 +11:00
Josh Stewart faaf530b0c Merge branch 'master' of https://github.com/noisymime/speeduino 2020-03-17 10:39:39 +11:00
Josh Stewart 48387cf14c Change ini to move individual injector timing to an RPM based curve 2020-03-17 10:39:35 +11:00