“Black Box” to measure engine revs and time - feasible ?

Is your library on github by any chance?

Fraid not, and is an ugly enough hack (bear in mind it was also my first attempt at C++ :) ) that it's not going to be without some tidying up that I'm unlikely to find time for. Matt's sounds like a better candidate to be the world's go-to Arduino SeaTalk library, suggest you badger him instead :p

Pete
 
Seatalk is different - don't think an esp can do the 9 bit serial needed. Care to share your seatalk code? :)

Here you go, Seatalk code, as platform independent as you'll get it...

https://jmp.sh/Z6QVXIM

It sends and receives, including collision detection, back-off and retry. Does parsing and composing of messages. It's for a PIC, but the Seatalk send and receive bit is all done with 2 GPIO's defined in seatalk.h along with defines to change the tri-state setting on those pins. do_seatalk_read() and do_seatalk_write() need calling 38400 times a second, from an interrupt driven by a hardware timer.

This project does NMEA-0183 parsing/composing too as it's a Seatalk to NMEA-0183 bridge.

All the hardware schematic/layout files are in the zip as well for DesignSpark.

And here is the same code (although Seatalk read only) in ARM configuration, for a STM32F in this case...

https://jmp.sh/aNIff86
 
Last edited:
Sorry , don't understand - do you mean you have 9 bit serial talking to seatalk on an ESP8266/32?

Yes, I wrote (well, i half did with lots of assistance from some more cleaver than me!) an Arduino library to read and write ST (including collision management) and yes, its runs on Arduino (tested on DUE, UNO, NANO and PRO Mini 3.3v 8mhz) and also ESP8266 Nodemcu, not using UART, any digital pins you like.
 
Yes, I wrote (well, i half did with lots of assistance from some more cleaver than me!) an Arduino library to read and write ST (including collision management) and yes, its runs on Arduino (tested on DUE, UNO, NANO and PRO Mini 3.3v 8mhz) and also ESP8266 Nodemcu, not using UART, any digital pins you like.

Sounds perfect :cool:

Care to share? Is it on github?

TIA
 
Sounds perfect :cool:

Care to share? Is it on github?

TIA

its mangled into something way more complex, its on my list of things to do to separate it out and make it available, not going to be anytime soon mind you...suppose I could slap something up there half done :-)
 
its mangled into something way more complex, its on my list of things to do to separate it out and make it available, not going to be anytime soon mind you...suppose I could slap something up there half done :-)
Sorry, forgot I asked already!
Been meaning to have a go at seatalk/signalk for a while but not spent any time at it at all.

Back to the OP - anyone care to give a few lines overview how you could measure revs from the alternator output rather than mess about with magnets & hall sensors?

Ta
 
Is a "tiny tach" no use to you? I have one and it has recorded hours and displayed revs reliably for about 12 years. I guess it doesn't do all you want. I think the method of picking up a pulse from an injector line is ingenious. Bit like a fitbit for an engine.
 
Sorry, forgot I asked already!
Been meaning to have a go at seatalk/signalk for a while but not spent any time at it at all.

Back to the OP - anyone care to give a few lines overview how you could measure revs from the alternator output rather than mess about with magnets & hall sensors?

Ta

The coding should be the same except the pulse to RPM conversion factor.

The signal from the alternator may need some electronics to condition the signat to make it compatible with the Arduino
 
Top