View unanswered posts | View active topics It is currently Tue Oct 24, 2017 3:07 am



Reply to topic  [ 119 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12
Knock sensing ideas and circuit designs 
Author Message
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
I want to work on this with FreeEMS, what do you recommend in firmware?

what I want to test:
-program by SPI at the begining the params

and then in each cycle make a read by spi

_________________
Sierra XR4i 2.0T


Thu Feb 20, 2014 9:15 pm
Profile
LQFP112 - Up with the play
User avatar

Joined: Fri Feb 01, 2013 4:18 pm
Posts: 143
Location: Jersey City, USA
I have a hip9011 module design if anyone needs it but I do not have the time to solder & test this board :(

Image

KiCad project is available at https://svn.code.sf.net/p/rusefi/code/t ... ip9011.zip

oshpark project

_________________
http://forum.diyefi.org/viewtopic.php?t=2070 http://www.rusefi.com


Thu Feb 20, 2014 9:23 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14828
Location: Home sweet home!
Aitor!! What do you mean "what do I recommend in firmware"? No entendido, tio :-)

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Fri Feb 21, 2014 11:22 am
Profile WWW
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
:P

I wanted to ask advice about which source files do you recommend me I could modify to insert test code in order to do that things.
To the first programming should not be very hard, I've more doubts about when polling the device, as it varies with ign timing



PS: russian, your board looks good. I've to have a look to the schematics, I could be interested in one for my DIY build

_________________
Sierra XR4i 2.0T


Fri Feb 21, 2014 3:56 pm
Profile
LQFP112 - Up with the play
User avatar

Joined: Fri Feb 01, 2013 4:18 pm
Posts: 143
Location: Jersey City, USA
It could be useful to begin with an independent test code which just establishes the connectivity and catches knock on some simulated signal before actually looking at modifying the existing firmware? Just my 2 cents.

_________________
http://forum.diyefi.org/viewtopic.php?t=2070 http://www.rusefi.com


Fri Feb 21, 2014 4:07 pm
Profile
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14828
Location: Home sweet home!
Ahh Iii TOR!!!

New files

knock.c
knock.h

Write the code you need to in knock.c
Place knock.h where you need to call into your knock.c functions and call into them there.

main.c
realtimeISRs.c

These are the most likely culprits for prototyping such code by calling into it.

You may want or need to have an interrupt service routine, too. If so you need to look at the other ISR files and headers and mimic that (including installing in the vector table).

Fred.

_________________
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!


Sat Feb 22, 2014 10:51 pm
Profile WWW
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
russian wrote:
It could be useful to begin with an independent test code which just establishes the connectivity and catches knock on some simulated signal before actually looking at modifying the existing firmware? Just my 2 cents.


I did that with an arduino time ago. I was successful programming it and reading data through SPI. Tested it with generated frequencys by the computer's sound card..

So next is to test something similar with my FreeEMS

_________________
Sierra XR4i 2.0T


Sat Feb 22, 2014 11:12 pm
Profile
QFP80 - Contributor
User avatar

Joined: Sun Aug 21, 2011 6:26 pm
Posts: 77
Location: Spain
Fred wrote:
Ahh Iii TOR!!!

New files

knock.c
knock.h

Write the code you need to in knock.c
Place knock.h where you need to call into your knock.c functions and call into them there.

main.c
realtimeISRs.c

These are the most likely culprits for prototyping such code by calling into it.

You may want or need to have an interrupt service routine, too. If so you need to look at the other ISR files and headers and mimic that (including installing in the vector table).

Fred.


Ok thanks. I will play a little with this when having free time

_________________
Sierra XR4i 2.0T


Sat Feb 22, 2014 11:13 pm
Profile
TO220 - Visibile

Joined: Thu Aug 14, 2008 4:59 am
Posts: 11
Speaking of waking from the dead. Hi...
I have been doing everything but automotive stuff. I will be paying more attention here and trying to get up to speed with all the changes. I see TI still has the TPIC8101 listed as active. That is a good thing. For MCU my focus has changed to XMEGA now.

Mark

_________________
Any tool can be the right tool...


Mon Mar 03, 2014 4:48 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 119 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.