Coding my own open source 24x ECU [beta available]

User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

I've probably flashed it well over 100 times iterating this code. Pretty sure all code goes on EEPROM, separate part on board, internal is bootloader. It still shows up as a flash drive if holding boot button when plugged in, but that's it.
Don't stress specific units.
User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

Betting a lot of the adaptation from mycropython to Arduino uses a bunch of the same interpitter nonsense. Probably why compiler was less picky than for the Teensy.
Don't stress specific units.
User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

Will probably make a revision soon. Initialize pattern history to be 10101010 or 01010101. As is, there's potential for a false match at initial start up in one area of the wheel. When I initially set pattern length to 8, I figured the extra would help and just be simpler. Might later change it to 6 teeth per pattern and initialize 101010 or 010101, for the same 90 degree sync potential GM originally went for.
A logic analyzer/oscilloscope that can record would help show it with pictures and what not, but whatever. Thinking through what the ECU reads on startup... I know it needs done.
Don't stress specific units.
User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

Should reset pattern history to initialized values on low RPM cut too. That matters.
Don't stress specific units.
User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

I went ahead and made both those changes in 1st post, with 0 testing first.
Don't stress specific units.
User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

Considering direction of rotation and the specific pattern used, might not have mattered. Makes sense, designed to work with a very basic ASIC. Need to remember it's short teeth that decode as a 1. The more I mess with this wheel setup, the more I like it. The mechanical logic to it is great.
Don't stress specific units.
User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

It's reverted. I need to come up with a repeatable test and test both options. I'll blame it on lack of sleep, not that my reason matters for the end result. Shouldn't have pushed an untested update.
Don't stress specific units.
User avatar
AngelMarc
Posts: 296
Joined: Sat Apr 08, 2023 9:23 pm
cars: A CB450 running to 8,000RPM with a P59.

Re: Coding my own open source 24x ECU [beta available]

Post by AngelMarc »

Don't stress specific units.
Post Reply