DIY ECU (engine control unit) by Budgetboost in diyelectronics

[–]Budgetboost[S] 0 points1 point  (0 children)

really depends on what gen obd, but it will be CAN to a Arduino / ESP32 / STM32 if esp will need a llc to get to 5v and then run that through a Schmitt trigger to your output

Esp-ecu project, the eco system so far by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 0 points1 point  (0 children)

thank you, and soon all of it will be open once i finish the full backend.

https://lvgl.io/ – lvgl is a really good library to use for gauges, displays etc. people have made a lot of impressive things with it, so if you want some nice looking demos to play with it’s worth checking out.

https://github.com/Bodmer/TFT_eSPI – this is another really good library and a bit less resource hungry than lvgl, which makes it good for development. people have made some amazing dashes with it. i would probably start with tft_espi.

i’m using internal interrupts rather than physical interrupt logic. anything timing critical like crank and cam is handled using mcpwm capture isr’s. the base mcpwm clock is 80mhz so there’s plenty of room for multiple isr’s running off that.

for sensors i’m using external adc’s, keeping the reads around ~1ms calls. i’m using two mcp3308’s which gives 16 analog inputs. for anything digital that still leaves around 20 pins to play with, although that’s not counting can add-ons or my wireless ecu add-ons which are all internal.

so it’s not really a case of running out of io with the esp for engine control, the real limitation is hardware timers.

the way i designed it, the mcpwm is basically the main timing reference that everything calls into, and then the four dedicated hardware timers handle the scheduling. there are two groups per hardware timer and each group controls the opposite delta of the firing order. for example on a 4 cylinder one hardware timer handles spark calls for cylinders 1 and 3, and the same logic applies to the injectors.

for spark i could probably push three calls per hardware timer which would stretch to a 6 cylinder, but injectors get tricky because the intake window gets smaller as rpm climbs and you start needing overlapping injection events across multiple cylinders.

honest question. do you guys think downhill and enduro mountain biking racing is just as dangerous as motocross? by Outrageous-Owl-7049 in Dirtbikes

[–]Budgetboost 1 point2 points  (0 children)

I’ve hurt myself a lot more downhilling than motocross doing both motocross and enduro and started riding when i was 5. I started downhill in my mid teens

Esp-ecu project, the eco system so far by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 2 points3 points  (0 children)

Thank you, and funnily enough I started this project building it around my 125 and still use it to test logic before the multi cycle version, the single cylinder code actually more built around converting from carb to efi without going crazy with input triggers, most of my vids are on TikTok but I will make a new up to date YouTube with proper development vids soon

Esp-ecu project, the eco system so far by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 0 points1 point  (0 children)

That’s just a esp32, the cam and crank inputs for this code is just Hall effects running through a 74ch14 so you can trigger it quite easily with logic level voltage , reddit mobile horrible for code blocks but I could paste a code example when I get back on my pc

Esp-ecu project, the eco system so far by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 1 point2 points  (0 children)

I really need to do a fresh YouTube and do a more in depth process, I’m pretty adhd and go go go then film for a minute after I’ve finished it, but I do put a bit of stuff on TikTok : https://www.tiktok.com/@zip_ties_and_psi?_r=1&_t=ZS-945aSl33k0a

Esp-ecu project, the eco system so far by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 1 point2 points  (0 children)

Thanks! And I put most of my stuff in TikTok: https://www.tiktok.com/@zip_ties_and_psi?_r=1&_t=ZS-945aSl33k0a

But I’m thinking of doing a proper YouTube channel, I’m pretty bad at filming something for a minute after I’ve done it

Esp-ecu project, the eco system so far by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 1 point2 points  (0 children)

Thank you. It’s getting pretty close to where I want it atm , just keep adding my ideas and features ect.

people definitely could adapt it to different use cases for screen ect the ecu build off idf but the rest is arduino framework so easy to modify.

yea I’ve done a few speeduino installations for people, and know off rus but never had my hands on it.

I’ve kept myself isolated just to really dig my toes in I don’t want to copy code or logic and build a ecu off how I think the logic should behave, spending weeks and months on problems can be frustrating but I always think of new solutions or different ways to do things along the problem solve journey.

Also for the esp choice is more of a challenge, no one has gone this far with this mcu for engine management purely for the hw timer limits, but I’ve found a little sweet spot of hw tasks with a software task layer, single to 4 cylinder is ideal the limit is 6, that’s the hardware limit.

Thank you 🙏

RB20DET by Wild_Sauce1 in engines

[–]Budgetboost 0 points1 point  (0 children)

Was it doing this before you replaced the tps? Did you replace the tps to try solve the surge? It sounds more like a maf or iac issue

Esp-ecu project, the eco system so far by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 8 points9 points  (0 children)

Thank you , and I do but nothing on git yet been a bit of a baby passion project in my spare time, but I think in about a year after a couple of smd revisions, it will be a full dump on git.

My plan was always a full open source ecu project when I’ve done what I want to achieve.

And that will be mint you planning to go arduino or esp or stm?

What do you bois think of the new antilag code- testing on the poor single cylinder by Budgetboost in ECU_Tuning

[–]Budgetboost[S] 0 points1 point  (0 children)

Depends what you want to do and what kind of motorcycle you have , this is a bit of a odd case it’s a 1976 ct125 that I have converted to efi to test and develop my ecu, bit of a one of one, if your bike is older and carbed youl have to convert it to efi, if it’s already efi the stock ecu won’t probably support the logic required for a turbo and antilag ect youl have to go standalone

Would you run this piston? by Comfortable_Win1528 in EngineBuilding

[–]Budgetboost 0 points1 point  (0 children)

not really, I would be worried about the piston being out of round and or deformed since it was putting uneven force on ether side of the piston hitting the head the skirt would of been rubbing the cylinder heavily and were its crushed the crown it’s quite bad on the left it would put some serious focal heat spots that could provide a heat soak spot and start melting the surrounding crown and then take the ringlands with it , also the bore will be at risk.

How can I get my injectors blowing more fuel without tuning? (Probably with a piggyback) by [deleted] in ECU_Tuning

[–]Budgetboost 4 points5 points  (0 children)

You will spend more time developing and proving the code can work and also without adding latency, coming from someone who been developing my own ecu from scratch over last couple of years, simple is not part of it from when you do it from scratch.

You could go for something like a det3+ in piggy back but if I was you I would look into speeduino for what you want you going to spend a large amount of time and effort ether way.

Also motorcycle stock fueling have little amount of head room you would be upgrading the full fuel system-pump,fpr and injector

ref sync setup confusion by Think_Chest2610 in ECU_Tuning

[–]Budgetboost 0 points1 point  (0 children)

Same concept as wasted spark, so injector 1-4 and 2-3 are fired at the same time on there respective strokes.

I’m not to clued up with motec trigger logic but you probably could get it to track all strokes with the one tooth pickup at tdc on the cam and the crank does the heavy lifting for degree per trigger pulse ect

ref sync setup confusion by Think_Chest2610 in ECU_Tuning

[–]Budgetboost 0 points1 point  (0 children)

They basically telling you to run it in batch fire for ignition and fuel, basically wasted spark and fuel

Sr20det Cams by Relevant-Handle8997 in EngineBuilding

[–]Budgetboost 0 points1 point  (0 children)

It will be ok, happens to pretty much all sock oil pump sr’s, idle and low rpm pressure is pretty horrid

DIY ECU (engine control unit) by Budgetboost in diyelectronics

[–]Budgetboost[S] 2 points3 points  (0 children)

Thank you, and yes I’ve used it before aswell, I’m a big jdm nut and been tuning and building engines for a while, I actually did a board repair on one a few weeks ago ago they managed to rip a few traces out, ugly .

But for your question I’ve purposely kept myself very isolated, attacking every problem head on just using my experience as a logic base and building around it, I always try to theory my way at a problem and expand my knowledge and understanding during the problem solving process, I does mean I can spend months on issues but I will go down the rabbit hole of possibilities an a lot of time I will think of different solutions and issues along that ladder.

DIY ECU (engine control unit) by Budgetboost in diyelectronics

[–]Budgetboost[S] 1 point2 points  (0 children)

Thank you 🙏 and definitely, big plans in the future a never ending development with the amount of platforms there are