Page 1 of 1

Everything about Trigger (shaft position sensors)

Posted: Sun Dec 22, 2013 8:24 pm
by izmirliss
Hello...
i'm working on a trigger tooth simulator based on attiny2313... And i need to know tooth count of which types accepting by firmware (r600)
For example 60-2 or 36-1 or different??

Re: Everything about Trigger (shaft position sensors)

Posted: Sun Dec 22, 2013 8:32 pm
by AndreyB
The primary trigger in r600 as is would be Ford Aspire trigger, that's a dual Hall type camshaft position sensor:

Image
That's if you compile the source code without changing anything.

If you 'comment out' (i.e. add //) in front of the Aspire line in https://svn.code.sf.net/p/rusefi/code/trunk/firmware/config/engines/engines.h you should be able to switch to 36-1 or to 60-2.

But anyway, why are you writing a trigger simulator in the first place? Thing is we already have build-in simulators for the triggers we support. The simulated signal lives on PD1 & PD2 (see arro_board.h for more info) - if you put a jumper wire from PD1 to PC6 and from PD2 to PA5 you would see the simulated input & the output in the dev console

Re: Everything about Trigger (shaft position sensors)

Posted: Sun Dec 22, 2013 8:36 pm
by izmirliss
This is engine.h in firmware... i see #define EFI_ENGINE_FORD_ASPIRE TRUE definition... This mean firmware configured for Ford Aspire ???

Code: Select all

 engines.h    37 lines (27 with data), 531 Bytes

/*
 * engine.h
 *
 * @date Aug 30, 2013
 * @author Andrey Belomutskiy, (c) 2012-2013
 */

#ifndef ENGINE_H_
#define ENGINE_H_

#include "boards.h"

/**
 * 1996 1.3 Ford Aspire
 */
#define EFI_ENGINE_FORD_ASPIRE TRUE

/**
 * 36-1 toothed wheel engine
 */
//#define EFI_ENGINE_FORD_FIESTA TRUE

//#define EFI_ENGINE_SNOW_BLOWER TRUE

/**
 * 5 cylinder engine!
 */
//#define EFI_ENGINE_AUDI_AAN TRUE

/**
 * 60-2 toothed wheel engine
 */
//#define EFI_ENGINE_DENISVAK TRUE


#endif /* ENGINE_H_ */

Re: Everything about Trigger (shaft position sensors)

Posted: Sun Dec 22, 2013 8:40 pm
by AndreyB
izmirliss wrote:This is engine.h in firmware... i see #define EFI_ENGINE_FORD_ASPIRE TRUE definition... This mean firmware configured for Ford Aspire ???
Yes.

We definitely need to makes things more user-friendly in the future, but now you need to change the engine.h and recompile the firmware to switch to another engine. Since I would guess your car is something different - not Aspire not Neon not Primera - we would need to create you a default configuration. Ideally you should start a thread in 'Your car & your engine' and put as much technical info about your particular vehicle as you can :)

Re: Everything about Trigger (shaft position sensors)

Posted: Wed Dec 25, 2013 4:50 pm
by AndreyB
Status update: I have changed the code and now you can have multiple vehicles defined in the firmware simultaneously, more on this in the commands thread.

I have also added some description of the trigger decoder algorithm to http://rusefi.com/docs/html/index.html