Electronics Section about electronics, connectors, and wiring

Bosch integrated pressure/temp sensors

Thread Tools
 
Search this Thread
 
Old 04-22-2021, 02:47 PM
  #21  
I'm Miserable!
 
Socals14's Avatar
 
Join Date: Apr 2015
Posts: 132
Total Cats: 10
Default

I use one of these with my Haltech 1500. Works well...although I had to find a spot where I could get both temp AND pressure. So I installed it in a oil filter sandwich plate. Works OK, just have to keep in mind the location when monitoring.
Socals14 is offline  
Old 04-22-2021, 03:15 PM
  #22  
Senior Member
Thread Starter
 
msmola2002's Avatar
 
Join Date: Aug 2017
Location: Norwich NY
Posts: 635
Total Cats: 322
Default

Awesome. On my last purchase from Haltech I grabbed a few of the m10-->NPT fittings. Next order from priority mazda, I will grab a sensor. I will install on a turbo oil feed tee. I have one that has 2 ports, so use one for sensor and one for turbo oil and jsut cap that off until I am ready to turbo stuff.
msmola2002 is offline  
Old 04-22-2021, 03:19 PM
  #23  
Junior Member
 
hedz0r's Avatar
 
Join Date: May 2015
Location: Milwaukee
Posts: 53
Total Cats: 10
Default

Originally Posted by msmola2002
Awesome. On my last purchase from Haltech I grabbed a few of the m10-->NPT fittings. Next order from priority mazda, I will grab a sensor. I will install on a turbo oil feed tee. I have one that has 2 ports, so use one for sensor and one for turbo oil and jsut cap that off until I am ready to turbo stuff.

I have been playing with this sensor for the last week or so, unfortunately the temp pin does not output a linear 0-5v curve. I am currently working on trying to find a tiny arduino board to convert the log curve to linear so i can have my MS read it and output the values properly.
hedz0r is offline  
Old 04-22-2021, 03:29 PM
  #24  
Senior Member
Thread Starter
 
msmola2002's Avatar
 
Join Date: Aug 2017
Location: Norwich NY
Posts: 635
Total Cats: 322
Default

Originally Posted by hedz0r
I have been playing with this sensor for the last week or so, unfortunately the temp pin does not output a linear 0-5v curve. I am currently working on trying to find a tiny arduino board to convert the log curve to linear so i can have my MS read it and output the values properly.
The calibration curve is this

Is there a way to make a curve in tunerstudio? for haltech you can select a calibration with those curves and it will work.
msmola2002 is offline  
Old 04-22-2021, 04:09 PM
  #25  
Junior Member
 
Spaceman Spiff's Avatar
 
Join Date: Apr 2018
Location: Central Texas
Posts: 356
Total Cats: 93
Default

Originally Posted by hedz0r
I have been playing with this sensor for the last week or so, unfortunately the temp pin does not output a linear 0-5v curve. I am currently working on trying to find a tiny arduino board to convert the log curve to linear so i can have my MS read it and output the values properly.
Tiny arduino is not going to have good ADC/DAC performance. Does MS not let you add points to your calibration curve to approximate the sensor calibration?

E.g. like this?


Spaceman Spiff is offline  
Old 04-22-2021, 05:04 PM
  #26  
Junior Member
 
hedz0r's Avatar
 
Join Date: May 2015
Location: Milwaukee
Posts: 53
Total Cats: 10
Default

Originally Posted by Spaceman Spiff
Does MS not let you add points to your calibration curve to approximate the sensor calibration?
Unfortunately, Generic Sensor Inputs on MS can only be 0-5v linear or match existing curves used for MAT/CLT/IAT sensors already configured and used elsewhere.
ie: I have a GM iat sensor with a known curve, I can choose for the bosch sensor to match the same configuration as the GM IAT curve, if it lined up.
hedz0r is offline  
Old 04-22-2021, 10:49 PM
  #27  
Junior Member
 
Spaceman Spiff's Avatar
 
Join Date: Apr 2018
Location: Central Texas
Posts: 356
Total Cats: 93
Default

Well that's no fun.

In which case I'd grab one of these sweet new teensy 4s (https://www.pjrc.com/store/teensy41.html , seriously these are such insane value), a 5v to 3v logic level shifter, and just hook the teensy up to the MS3 with CAN. That way you can have whatever calibration or filtering you want + error handling and room to add more sensors down the line on the teensy (or SPI devices like thermocouple amp, GPS, etc. -- https://github.com/mantonakakis1/MegaCAN) and just broadcast it to the MS3. With whats out there in the community it should be pretty spoon feedy, but for sure some amount of coding involved. Talk about something you can't do with a Haltech (sadly.....)
Spaceman Spiff is offline  
Old 04-23-2021, 10:16 AM
  #28  
Junior Member
 
hedz0r's Avatar
 
Join Date: May 2015
Location: Milwaukee
Posts: 53
Total Cats: 10
Default

Originally Posted by Spaceman Spiff
Well that's no fun.

In which case I'd grab one of these sweet new teensy 4s (https://www.pjrc.com/store/teensy41.html , seriously these are such insane value), a 5v to 3v logic level shifter, and just hook the teensy up to the MS3 with CAN. That way you can have whatever calibration or filtering you want + error handling and room to add more sensors down the line on the teensy (or SPI devices like thermocouple amp, GPS, etc. -- https://github.com/mantonakakis1/MegaCAN) and just broadcast it to the MS3. With whats out there in the community it should be pretty spoon feedy, but for sure some amount of coding involved. Talk about something you can't do with a Haltech (sadly.....)
I am using the CAN network for another peripheral right now, so I'd like to handle it in ADC/DAC, take the input of the sensor, create a lookup table in the microcontroller and spit out a linear mapped 0-5v value to the input pin of the MS3. The problem I am finding is that 5v i/o does not seem to exist on arduino based boards as most run the cpu on 3.3v. Not worried about the programming aspect, as thats my day job, just trying to find the right hardware.
hedz0r is offline  
Old 04-23-2021, 02:13 PM
  #29  
Junior Member
 
Spaceman Spiff's Avatar
 
Join Date: Apr 2018
Location: Central Texas
Posts: 356
Total Cats: 93
Default

Gotcha gotcha.

Looks like MS uses a 10-bit ADC but given this is diy hardware in an environment with a good deal of noise you might be better off going with a 12 or 14 bit ADC/DAC combo and oversampling + filtering the input.

You could always grab 2 demo boards from the ADC/DAC mfg (i.e. analog devices, stmicro, ti, etc) but those are usually pretty expensive and likely overkill. Best easy-mode would be to get some 12-bit adc/dacs from adafriut/sparkfun and run them off the 5v rail from the ECU. They should be 3.3v and 5v tolerant, but not sure if you can use 3.3v logic if you're powering it off a 5v to get the ADC/DAC range you need. Either way a logic level shifter is cheap and easy.

https://www.adafruit.com/product/1083
https://www.adafruit.com/product/935
https://www.adafruit.com/product/757

Should be easy code attached in the docs depending on if you want to use an mcu that supports circuit python (the new hotness these days it would seem) or just arduino IDE c code. Regardless that adc will run at ~3 kHz, probably best to run it quick and just take a large moving average before your lookup table or calibration curve.

If you wanted to go totally overkill with ton of expandability, these lil fpga boards are cheap for what you get, super robost/reliable compared to normal MCUs, and the system gives lots of option for future expansion, but also learning curve.

https://store.digilentinc.com/arty-a...lopment-board/
https://store.digilentinc.com/pmod-gps-gps-receiver/
https://store.digilentinc.com/pmod-a...a-d-converter/
https://store.digilentinc.com/pmod-s...tronic-switch/


Spaceman Spiff is offline  
Old 04-23-2021, 02:22 PM
  #30  
Junior Member
 
hedz0r's Avatar
 
Join Date: May 2015
Location: Milwaukee
Posts: 53
Total Cats: 10
Default

Originally Posted by Spaceman Spiff
Gotcha gotcha.

Looks like MS uses a 10-bit ADC but given this is diy hardware in an environment with a good deal of noise you might be better off going with a 12 or 14 bit ADC/DAC combo and oversampling + filtering the input.

You could always grab 2 demo boards from the ADC/DAC mfg (i.e. analog devices, stmicro, ti, etc) but those are usually pretty expensive and likely overkill. Best easy-mode would be to get some 12-bit adc/dacs from adafriut/sparkfun and run them off the 5v rail from the ECU. They should be 3.3v and 5v tolerant, but not sure if you can use 3.3v logic if you're powering it off a 5v to get the ADC/DAC range you need. Either way a logic level shifter is cheap and easy.

https://www.adafruit.com/product/1083
https://www.adafruit.com/product/935
https://www.adafruit.com/product/757

Should be easy code attached in the docs depending on if you want to use an mcu that supports circuit python (the new hotness these days it would seem) or just arduino IDE c code. Regardless that adc will run at ~3 kHz, probably best to run it quick and just take a large moving average before your lookup table or calibration curve.

If you wanted to go totally overkill with ton of expandability, these lil fpga boards are cheap for what you get, super robost/reliable compared to normal MCUs, and the system gives lots of option for future expansion, but also learning curve.

https://store.digilentinc.com/arty-a...lopment-board/
https://store.digilentinc.com/pmod-gps-gps-receiver/
https://store.digilentinc.com/pmod-a...a-d-converter/
https://store.digilentinc.com/pmod-s...tronic-switch/

Thanks for this well thought out reply. I was looking into the logic level shifters, but am concerned as most have a minimum voltage of ~1.5 on the low side and slightly more on the high side, this will drastically reduce the resolution capable of the sensor. I was hoping to find a cheap diy type mcu that is very small and operates at 5v logic level, and is capable of 10bit. The problem will be finding something that has that and a adc/dac onboard. sample rate is not overly a concern for this application i dont think, as even at 1khz i would be getting readings at 1/sec which should be adequate for temp/pressure for logging and visual display on a gauge.

Edit:
this breadkout board you linked may be the ticket! https://www.adafruit.com/product/935
hedz0r is offline  
Old 04-23-2021, 02:42 PM
  #31  
Junior Member
 
Spaceman Spiff's Avatar
 
Join Date: Apr 2018
Location: Central Texas
Posts: 356
Total Cats: 93
Default

Yeah those adafruit boards will work with any arduino or teensy type MCU and, while slightly more expensive than some, they generally have good support/docs. All the analog input/output is handled by those 12-bit ICs, the MCU is only communicating digitally so no worries there.

The logic level shifter is needed as to get the 0-5V range you want you need to power the ADC/DAC ICs with 5V as well (which is fine even if your MCU doesn't have it because MS3 has a 5V rail). But, while they are both 1.8-5V logic tolerant ICs, I think they expect logic to be at the same level as VDD (5V), so the level shifter is just to translate the digital communication between the ICs (5V) and the MCU (3.3V/1.8V) over the I2C bus.

Good luck!

Last edited by Spaceman Spiff; 04-23-2021 at 03:15 PM.
Spaceman Spiff is offline  
Old 04-23-2021, 03:16 PM
  #32  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

Adafruit makes a M4 Feather that has a SAME51 with built in canbus plus transceiver as well as a DAC. Use a unity gain opamp as a buffer followed by a resistor divider to reduce 5v to 3.3v linearly, look at what rusefi is doing. You cannot use just a resistor divider as that's all a temp sensor is in the first place. Put all this on a stupid simple PCB that has input power filtering/clamping/polarity protection, maybe canbus filter if you care. Also, add the pullups, lowpass filters, etc...

Or forget the DAC and just pipe the data straight into the megasquirt over canbus. If you want to do the same on haltech, PM me and I'll tell you were to stick data, in what format.

Adafruit's code for canbus is kinda crap, but if you search github for my name you should find a ATSAME arduino canbus library that works.

Ms3 has three non-linear comp curves, maybe one more if you can use analog MAF. Most installs would have no issue using the stock CLT/IAT and as many of these sensors as you can manage.
deezums is offline  
Old 04-23-2021, 03:51 PM
  #33  
Junior Member
 
Spaceman Spiff's Avatar
 
Join Date: Apr 2018
Location: Central Texas
Posts: 356
Total Cats: 93
Default

I think he's using the can bus in a different format for a separate peripheral, but in for that sweet haltech can protocol, you have pm. Also that feather is sweet, might just pick one up to run my dash switches now...
Spaceman Spiff is offline  
Old 04-23-2021, 06:19 PM
  #34  
Elite Member
iTrader: (3)
 
deezums's Avatar
 
Join Date: May 2014
Location: Kansas
Posts: 3,146
Total Cats: 201
Default

The canbus controller on the SAME51 is incredible. I think there are enough buffers to be able to store each and every MS incoming broadcast message to a dedicated receive buffer. It uses SRAM directly, the very moment a message hits a buffer it's sitting waiting in SRAM for the CPU.

I don't know how teensy does it, but I can't bootload it so I don't give a hoot.

That feather has two of those canbus peripherals, only one transceiver and the available IO might be used somewhere else anyway, probably usb. Could easily port whatever format you are running to the megasquirt format, then forgo the ADC-DAC-ADC loop. Probably have to make a fully custom board then, but you can since it's not a teensy.

deezums is offline  
Old 04-23-2021, 09:53 PM
  #35  
afm
Senior Member
iTrader: (3)
 
afm's Avatar
 
Join Date: Nov 2015
Location: Berkeley, CA
Posts: 981
Total Cats: 508
Default

Originally Posted by hedz0r
Unfortunately, Generic Sensor Inputs on MS can only be 0-5v linear or match existing curves used for MAT/CLT/IAT sensors already configured and used elsewhere.
ie: I have a GM iat sensor with a known curve, I can choose for the bosch sensor to match the same configuration as the GM IAT curve, if it lined up.
Much as I hate to tell someone not to put ten more computers in their car, if you're using a recent firmware release on MS3, there is also an additional "Custom#1" thermistor calibration you can use for whatever you like. You can even specify transformations that don't neatly fit the three-parameter NTC curve generator.


Set it...




...and forget it.




afm is offline  
Old 04-26-2021, 08:24 AM
  #36  
Junior Member
 
hedz0r's Avatar
 
Join Date: May 2015
Location: Milwaukee
Posts: 53
Total Cats: 10
Default

Originally Posted by afm
Much as I hate to tell someone not to put ten more computers in their car, if you're using a recent firmware release on MS3, there is also an additional "Custom#1" thermistor calibration you can use for whatever you like. You can even specify transformations that don't neatly fit the three-parameter NTC curve generator.
This looks like it will mostly fit the bill, interpolation between the rows will cause some degradation of resolution. I am still on 1.4.1 as thats what my MS3 Basic shipped with, and havnt bothered with the later firmwares yet. Something to look into, thank you for pointing this out.
hedz0r is offline  
Old 10-18-2021, 08:23 PM
  #37  
Senior Member
Thread Starter
 
msmola2002's Avatar
 
Join Date: Aug 2017
Location: Norwich NY
Posts: 635
Total Cats: 322
Default

Update
9956-21-000 2006-2020 Mazda Brake Hose Gasket $1.98 ordered these washers
https://www.haltech.com/product/ht-0...-bspt-adaptor/ these adapters
PY8V-18-541B 2016-2020 Mazda Oil Pressure Sensor $57.49 this sensor

mazda parts from mazdapartsfactor/werner mazda in NH. Cheaper than priority, no messed up orders so far.

ordering trapezoid connector and wiring from Corsa Technic later this week
https://www.corsa-technic.com/item.php?item_id=1506

Have a bunch of stuff to do to my car as soon as the snow starts flying, after the valve seals, the knock sensor and running this off the turbo oil feed and connecting to the Haltech will be the next things on the list.
msmola2002 is offline  
Old 11-21-2021, 11:54 AM
  #38  
Senior Member
Thread Starter
 
msmola2002's Avatar
 
Join Date: Aug 2017
Location: Norwich NY
Posts: 635
Total Cats: 322
Default

Update again.

Using the haltech adapter, the washers I bought were superfluous. the sensor bottoms in the adapter and the washer is loose. So the washer is not needed. Put a thin smear of permatex sealant on the top of the threads, will see if it leaks when i get round to oiling it up and starting this thing
msmola2002 is offline  
Old 06-10-2022, 09:56 PM
  #39  
Junior Member
 
yuba's Avatar
 
Join Date: Feb 2020
Location: Phoenix, Az
Posts: 136
Total Cats: 70
Default

This is an old-*** thread, but are you supposed to run shielded wires for these sensors or something?

I have what I think is the same or a derivative of the same sensor in my K24 BRZ and the oil temperature immediately spikes 30-40f when wide open throttle. I am guessing there is some kind of interference at this point, sensor is in the stock pressure sensor location.
yuba is offline  
Old 04-16-2024, 02:59 PM
  #40  
Newb
 
eviking's Avatar
 
Join Date: Apr 2019
Location: Tacoma, WA
Posts: 20
Total Cats: 11
Default

Yuba, I can't speak to your problem, perhaps by now you've figured it out and want to share what the root of issue was?

msmola2002, I'm wondering how the sensor has been doing with your sealing method. I'm eyeing a $45 cheapo version of this sensor on Aliexpress. I'm hoping that if the sensor leaks, it would tell me so with a low pressure warning

I have seen the similar Lowdoller-branded sensor posted recently with a 1/8" NPT thread, if adapting m10 doesn't work well maybe I'll have to go that route.
eviking is offline  


Quick Reply: Bosch integrated pressure/temp sensors



All times are GMT -4. The time now is 07:57 PM.