Jerena
Ny medlem
Project presentation:
A basic Engine Management System (ECU) idealized to manage a 2-Stroke/4-Stroke up to 2 cylinders applied in: mini/small/medium motorcycle, trimmer, chainsaw, motorized bike, moped, Go-kart etc.
Inputs:
- VRS sensor
- Two Hall Sensor (Possibility to replace VRS to Hall Sensor technology, the second input can used to measure vehicle speed, or can use to Hall Sensor inputs to implement an anti-wheelie strategy calculate the speed difference between front wheel and rear wheel and decreasing torque immediately through the ignition advance timing)
- Throttle Position Sensor (TPS)
- On-board Manifold Absolute Pressure (MAP)
- Water Temperature
- Lambda Sensor (two types: narrow or wide band, depends how the PCB was populated)
Outputs:
- Control Stepper Motor Driver for an Idle Air Control actuator with auto-diagnostic (to manage Idle Speed set-point and simulate Throttle dash-pot mechanism)
- Three relay drive (Crank / Fuel Pump / Auxiliary ) with auto-diagnostic
- Two injection drives with auto-diagnostic (High Impedance)
- Two ignition drives with auto-diagnostic (for TDI Ignition System / High Impedance)
- Trigger Signal to command a external Ignition System like a Capacitance Discharge Ignition (CDI)
(this is a discussion point, because the chosen uC, it doesn´t a free pin to control a two cylinder CDI)
- Generates a tachometer signal for a Cluster
- Lambda Heater Driver
- Two extra drivers (Low Side and High Side) to improve new functionalities (example: MIL, shift-light, nitro valve etc.)
Communication:
- K-Line for diagnostic/services purposes
- CAN (integrate with another modules as: Cluster, BCM, Brake System and other things that you wish, implement diagnoses routines, maintenance services, configuration services etc.)
- I2C to connect with another electronic modules as: Accelerometer, LCD, RF modules etc.
- Serial (USART) to Flashing and update software in a simple way (without specific development tool to flash microcontroller directly) use only a PC USB + adapter (USB to serial), also can use to calibrate system (easy to implement an interface that communicates PC to ECU)
Operational functionalities:
- On the fly full calibration (Injection Map, Ignition Map, Engine Idle Set-point, fuel compensations, spark advance compensations etc.)
- Memorized important parameters about the trip: max engine speed, atmospheric pressure, fail historic etc. System was equipped with a Power Latch circuit where when you turn the key-on position to key-off and the system can record all important data inside the RAM memory to FLASH memory before the ECU power off, becoming a permanent available data)
The relevant system characteristics are:
- Cheap and feasible to create a prototype (for this I was defined a very cheap microcontroller but is not compliant with automotive standards, I was choose an uC similar that applied in Bluepill development board, but with two times more FLASH memory)
- Very simple and cheap connectors (they not automotive compliant, but I believe it works perfectly for start test period because I based my development to my experience with Megasquirt ECU and other systems that I did)
- To use robust devices to ensure success in operation (the most critical parts as: Injector drivers, Ignition drivers, relay drivers etc.)
- After base software was built, easy to implement new functionalities
- Reusable in new/different setups and specific projects (can easy configurable)
I have some experience to develop this kind of system and I would you like to find some people motivated to develop with me as partners and contributors, because demands a lot of work to develop and validate and I´m not specialized in all development areas as: Hardware Design, PCB design, Wire Harness design, Diagnostic Software implementation, some Control strategies, Communication Protocols) and at this moment I don´t have a motorcycle to perform the validation tests, my main skills are based in coding and software architecture design, but I have a comprehensive knowledge about electrical and mechanics parts are involved at this kind of product development, my objective is create an affordable Engine Management lab, improve my knowledge and experience, exchange knowledge, increase my network contacts here in Sweden (because I´m new here) and have fun, mainly!
To start, I drew a draft containing the main Ideas about the hardware circuit that I was presented in requirements list showed above and I believe it´s a good start to develop the software (architecture, libraries and etc.)
About the software the first idea is create a scheduler using FreeRTOS with some callbacks (temporary and by events), the uC static configuration to configure and define all basic hardware functionalities, some fundamental libraries with basic functionalities (crankshaft period/speed/angular position, engine temperature, throttle position and others) and in application level all the strategies to manage the engine combustion (control injector valve to inject the adequate fuel quantity, to calculate the best spark advance angle to control ignition drivers to generates spark at the precision moment and other things).
As a complex project, needs to start to develop simple strategies and after achieve a good base software (stable), improve and sophisticate controls step by step...
I have many other ideas related (modernize old Off-Road Motorcycles to increase performance and functionalities, create hybrid small engines, permit engine to work with another fuel types, increase performance and decrease pollution generation and many another technical possibilities that become achievable).
Someone would like to help me or give me some tips/suggestion about it?
I have many personal documents that support my ideas, I can show you if anyone is interested…
PS: The hardware schematics drew is not definitive version, I´m using to developed the Schematics and PCB a free development environment called EasyEDA.
View attachment New_ECU.pdf
A basic Engine Management System (ECU) idealized to manage a 2-Stroke/4-Stroke up to 2 cylinders applied in: mini/small/medium motorcycle, trimmer, chainsaw, motorized bike, moped, Go-kart etc.
Inputs:
- VRS sensor
- Two Hall Sensor (Possibility to replace VRS to Hall Sensor technology, the second input can used to measure vehicle speed, or can use to Hall Sensor inputs to implement an anti-wheelie strategy calculate the speed difference between front wheel and rear wheel and decreasing torque immediately through the ignition advance timing)
- Throttle Position Sensor (TPS)
- On-board Manifold Absolute Pressure (MAP)
- Water Temperature
- Lambda Sensor (two types: narrow or wide band, depends how the PCB was populated)
Outputs:
- Control Stepper Motor Driver for an Idle Air Control actuator with auto-diagnostic (to manage Idle Speed set-point and simulate Throttle dash-pot mechanism)
- Three relay drive (Crank / Fuel Pump / Auxiliary ) with auto-diagnostic
- Two injection drives with auto-diagnostic (High Impedance)
- Two ignition drives with auto-diagnostic (for TDI Ignition System / High Impedance)
- Trigger Signal to command a external Ignition System like a Capacitance Discharge Ignition (CDI)
(this is a discussion point, because the chosen uC, it doesn´t a free pin to control a two cylinder CDI)
- Generates a tachometer signal for a Cluster
- Lambda Heater Driver
- Two extra drivers (Low Side and High Side) to improve new functionalities (example: MIL, shift-light, nitro valve etc.)
Communication:
- K-Line for diagnostic/services purposes
- CAN (integrate with another modules as: Cluster, BCM, Brake System and other things that you wish, implement diagnoses routines, maintenance services, configuration services etc.)
- I2C to connect with another electronic modules as: Accelerometer, LCD, RF modules etc.
- Serial (USART) to Flashing and update software in a simple way (without specific development tool to flash microcontroller directly) use only a PC USB + adapter (USB to serial), also can use to calibrate system (easy to implement an interface that communicates PC to ECU)
Operational functionalities:
- On the fly full calibration (Injection Map, Ignition Map, Engine Idle Set-point, fuel compensations, spark advance compensations etc.)
- Memorized important parameters about the trip: max engine speed, atmospheric pressure, fail historic etc. System was equipped with a Power Latch circuit where when you turn the key-on position to key-off and the system can record all important data inside the RAM memory to FLASH memory before the ECU power off, becoming a permanent available data)
The relevant system characteristics are:
- Cheap and feasible to create a prototype (for this I was defined a very cheap microcontroller but is not compliant with automotive standards, I was choose an uC similar that applied in Bluepill development board, but with two times more FLASH memory)
- Very simple and cheap connectors (they not automotive compliant, but I believe it works perfectly for start test period because I based my development to my experience with Megasquirt ECU and other systems that I did)
- To use robust devices to ensure success in operation (the most critical parts as: Injector drivers, Ignition drivers, relay drivers etc.)
- After base software was built, easy to implement new functionalities
- Reusable in new/different setups and specific projects (can easy configurable)
I have some experience to develop this kind of system and I would you like to find some people motivated to develop with me as partners and contributors, because demands a lot of work to develop and validate and I´m not specialized in all development areas as: Hardware Design, PCB design, Wire Harness design, Diagnostic Software implementation, some Control strategies, Communication Protocols) and at this moment I don´t have a motorcycle to perform the validation tests, my main skills are based in coding and software architecture design, but I have a comprehensive knowledge about electrical and mechanics parts are involved at this kind of product development, my objective is create an affordable Engine Management lab, improve my knowledge and experience, exchange knowledge, increase my network contacts here in Sweden (because I´m new here) and have fun, mainly!
To start, I drew a draft containing the main Ideas about the hardware circuit that I was presented in requirements list showed above and I believe it´s a good start to develop the software (architecture, libraries and etc.)
About the software the first idea is create a scheduler using FreeRTOS with some callbacks (temporary and by events), the uC static configuration to configure and define all basic hardware functionalities, some fundamental libraries with basic functionalities (crankshaft period/speed/angular position, engine temperature, throttle position and others) and in application level all the strategies to manage the engine combustion (control injector valve to inject the adequate fuel quantity, to calculate the best spark advance angle to control ignition drivers to generates spark at the precision moment and other things).
As a complex project, needs to start to develop simple strategies and after achieve a good base software (stable), improve and sophisticate controls step by step...
I have many other ideas related (modernize old Off-Road Motorcycles to increase performance and functionalities, create hybrid small engines, permit engine to work with another fuel types, increase performance and decrease pollution generation and many another technical possibilities that become achievable).
Someone would like to help me or give me some tips/suggestion about it?
I have many personal documents that support my ideas, I can show you if anyone is interested…
PS: The hardware schematics drew is not definitive version, I´m using to developed the Schematics and PCB a free development environment called EasyEDA.
View attachment New_ECU.pdf