Page 12 of 12

Re: Knock sensing ideas and circuit designs

Posted: Thu Feb 20, 2014 9:15 pm
by AiToR51
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

Re: Knock sensing ideas and circuit designs

Posted: Thu Feb 20, 2014 9:23 pm
by russian
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

Re: Knock sensing ideas and circuit designs

Posted: Fri Feb 21, 2014 11:22 am
by Fred
Aitor!! What do you mean "what do I recommend in firmware"? No entendido, tio :-)

Re: Knock sensing ideas and circuit designs

Posted: Fri Feb 21, 2014 3:56 pm
by AiToR51
: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

Re: Knock sensing ideas and circuit designs

Posted: Fri Feb 21, 2014 4:07 pm
by russian
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.

Re: Knock sensing ideas and circuit designs

Posted: Sat Feb 22, 2014 10:51 pm
by Fred
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.

Re: Knock sensing ideas and circuit designs

Posted: Sat Feb 22, 2014 11:12 pm
by AiToR51
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

Re: Knock sensing ideas and circuit designs

Posted: Sat Feb 22, 2014 11:13 pm
by AiToR51
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

Re: Knock sensing ideas and circuit designs

Posted: Mon Mar 03, 2014 4:48 pm
by L98TPI
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