Everything about Trigger (shaft position sensors)

It's all about the code!
Post Reply
izmirliss
Posts: 10
Joined: Wed Nov 13, 2013 10:38 pm

Everything about Trigger (shaft position sensors)

Post by izmirliss » Sun Dec 22, 2013 8:24 pm

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??

User avatar
russian
Site Admin
Posts: 9595
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Everything about Trigger (shaft position sensors)

Post by russian » Sun Dec 22, 2013 8:32 pm

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/t ... /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
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

izmirliss
Posts: 10
Joined: Wed Nov 13, 2013 10:38 pm

Re: Everything about Trigger (shaft position sensors)

Post by izmirliss » Sun Dec 22, 2013 8:36 pm

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_ */

User avatar
russian
Site Admin
Posts: 9595
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Everything about Trigger (shaft position sensors)

Post by russian » Sun Dec 22, 2013 8:40 pm

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 :)
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

User avatar
russian
Site Admin
Posts: 9595
Joined: Wed Aug 28, 2013 1:28 am
Location: Jersey City
Soldering skill: yes
Coding skill?: yes
Contact:

Re: Everything about Trigger (shaft position sensors)

Post by russian » Wed Dec 25, 2013 4:50 pm

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
https://rusefi.com/s/howtocontribute
very limited telepathic abilities - please post logs & tunes where appropriate - http://rusefi.com/s/questions
my skype is arro239

Post Reply