Jump to content

DIY Gauge experiments


TSD

Recommended Posts

Fancy :)

I wonder if a rotatable ring (like on a watch face) would be a nice way to switch between which gauges are displayed in case you have more sensors hooked up to a gauge.

  • Like 1
Link to comment
Share on other sites

Aargh! Now I'm stuck - I tried to make it as simple as possible, no moving parts, so it could survive a few years in a wet landy. On the other hand, I really like that idea, and straight away I start schemeing ways it could be done :rolleyes:

As it stands now, it does have the option for a couple of external button inputs, but I haven't made any use of them so far.

There is also a single 'tap the screen here' input option, but I've not even populated the circuit board for that.

Link to comment
Share on other sites

3 hours ago, TSD said:

Aargh! Now I'm stuck - I tried to make it as simple as possible, no moving parts, so it could survive a few years in a wet landy. On the other hand, I really like that idea, and straight away I start schemeing ways it could be done :rolleyes:

As it stands now, it does have the option for a couple of external button inputs, but I haven't made any use of them so far.

There is also a single 'tap the screen here' input option, but I've not even populated the circuit board for that.

Sorry :ph34r:

Link to comment
Share on other sites

I like the gauge!

The idea of a rotatable ring bezel sounds good, but at first thought, it could compromise waterproofing.  On second thought, I figured you could make a snap-on ring with a magnet built in and add a Hall Effect device to the inside of the casing.  That could even be used as an analog input - move the ring fast to change mode, slowly to change brightness for example.

I had a go at making a similar gauge using a mixture of sensors & reading OBD data https://www.youtube.com/watch?v=vjrugu0hZ-0
Waterproofing buttons was an issue so I tried using the little Piezo sensors (like the speakers you used to get in the back of digital watches) as a 'tap' sensor.  They don't need to be mounted directly behind the glass, back of the display seemed to work.  When you tap the display, you get a little voltage spike which is fairly easy to differentiate from general noise / touching.  You can also use it as a buzzer.

I tried a capacitive touch sensor - but they were too prone to accidental touches.

Link to comment
Share on other sites

I like the piezo idea. Since they are inherently narrowband, I imagine it does most of the job of filtering rattly tdi dashboard noise before you even read the signal from it :D

My 'tap the screen' sensor is just an ambient light plus IR sensor behind the glass - the same kind of thing that turns off a smartphone touchscreen when you hold it up to your face. It's simple to detect transient changes in IR level with a finger on the glass, and also measure visible light level to dim the gauge at night. Equally, the same sensor could detect a pattern on the back of a rotating ring control through the glass.

If I was developing this as a commercial product, I'd put an NFC interface onboard to give configuration and datalogging via a smartphone.

I'm as vulnerable to feature creep as anyone, but at its core I think the task is to provide the user with the required information, as clearly and legibly as possible. Ideally, I should be able to glance across at the instrument cluster and straight away know if all the pointers are in roughly the right place, without thinking about it.

Freely admit I've broken this principle with multiple gauges per housing, and unnecessary digital readouts, and it will probably (certainly) get worse with the battery monitor gauge. I haven't even begun to think about how to handle all that. I will get the hardware up and running first and see where that takes me...

 

Link to comment
Share on other sites

What I was trying to achieve with mine, was a single gauge which could replace everything apart from the speedo.  Set high or low limits and display those values preferentially if out of bounds - that's the only time you are really interested in them!  The point was to de-clutter the dash.

 

Link to comment
Share on other sites

Agreed, in some ways I liked the Citroen approach in the 80s of replacing gauges with warning lights, and adding a 'master' warning light. (The first I was really aware of, though maybe they weren't the first).

But I do like the 'trend' data learned from viewing gauges for weeks on end. It's useful to know if the temperature has suddenly shot up, or been climbing slowly all day, or if it's been marginal on hot days for months. Or, in the case of a tdi, there's no warning light at all because the gauge dropped when all the coolant fell out :wacko:

With most of our vehicles of course, it's 50/50 if the instrument is more or less reliable than the thing being monitored... :ph34r:

  • Like 1
  • Haha 1
Link to comment
Share on other sites

  • 2 weeks later...

Like many (ok, almost all) of my homer projects, this one got designed back to front. When I found the smart oil pressure sensors, I wanted to play with one, and see if it was any good. The round displays have been sat in a drawer since before xmas waiting for me to even open the box.

I really hate messing around with dev boards and loads of bodged wiring (at least for digits - it's the only proper way to do RF work!) and I already had a couple of PCB designs waiting to go out for manufacture...

So by the time the ebay fairy brought the sensors, I already had a PCB design. But it annoyed me, because there was space left on it, so feature creep set in, and I started adding things until it began to look busy. All sketched on the back of an old envelope, only a few sums done, and very little detailed reading  of a datasheet.

I didn't write a single line of code until after I'd sent the PCB out.

Not doing too badly for a prototype, only two cut/straps on the board so far, and only one glaring unfixable ****up with the pin assignments. Easily fixable in version 2, which will never happen.

I have the battery monitor version up and running now, but no graphics written yet. Hopefully will have something to show in a few days.

I've been clumsy, one of the displays has cracked so only half of it works. Hopefully the replacements arrive before I get bored and wander off to play with something else, leaving yet another unfinished project :rolleyes:

 

 

 

  • Haha 2
Link to comment
Share on other sites

On 5/7/2022 at 12:27 PM, TSD said:

I'd put an NFC interface onboard to give configuration and datalogging via a smartphone

I do a fair amount with NFC on smartphones and you might be able to do configuration but datalogging would be hopeless, much better to use bluetooth for both.

  • Like 1
Link to comment
Share on other sites

2 hours ago, Nonimouse said:

TSD,

Would you be up for amking a second oil temp/pressure guage, for cash money?

If I can scrounge up enough parts to build extras, then I will, no problem. But sourcing electronic components at the moment is madness, so no promises!

13 minutes ago, zardos said:

I do a fair amount with NFC on smartphones and you might be able to do configuration but datalogging would be hopeless, much better to use bluetooth for both.

You are right, I was only really thinking of configuration, where NFC works nicely (or did in the one project where I used it). Datalogging only in the sense of 'Max temp seen since last reset' kind of thing. Maybe some long term stats? I don't see much use for anything more than that, on a standalone box measuring only 1 or 2 things.

Bluetooth would (for me at least) be overkill and not a good fit for the task (of configuration), though it tends to give the marketing department a moist moment. If it was designed as a datalogger, with loads of simultaneous input channels, then live values datalogging would be useful. Come to think of it, I did a design like that years ago, and it was even less interesting than the giant prototype sewage pump it was attached to :ph34r: Thankfully, that had a 3G modem instead of Bluetooth, so no-one had to go anywhere near it :hysterical:

But anyway, this isn't a commercial product, it's just a bit of fun.

  • Like 1
Link to comment
Share on other sites

15 hours ago, TSD said:

If I can scrounge up enough parts to build extras, then I will, no problem. But sourcing electronic components at the moment is madness, so no promises!

 

Cool beans - let me know what you are trying to scrounge

Link to comment
Share on other sites

According to todays junk emails, it's World Metrology Day (how could I have forgotten?), so seems like a good time to post info on the third gauge version I've been fiddling with this week.

This is a battery monitoring gauge, using one of the smart sensors fitted to a lot of modern cars to prevent embarassing failures caused by the Stop-Start systems. There's not really anything new here, others have reverse engineered the sensors before, and Hella will even sell you a box for your motorhome for about £150.  But they don't seem to be widely known about, and I was curious to know what they can really do, and how well they perform. The intelligence of the system is all contained in a single housing, that replaces the ground lead terminal at the battery, and the additional wiring is very simple.  It can directly measure battery voltage, current, and temperature. Current measurement range +/-250A continuously, and quoted as safe out to 1200A, so it should survive even heavy winching (though it might not be an ideal device in that situation because of the voltage drop - more testing to follow). In addition, the unit is a 'coulomb counter', it keeps a running total of energy into and out of the battery. From that information it predicts state of charge of the battery, and comparing measured performance against predicted, the State of Health of the battery.

Because the real 'intelligence' is all contained in the sensor, all the gauge has to do is (other than initial configuration) poll the sensor for the info, and draw pretty pictures on the screen :)

So here is what I have so far :-

20220520_160525.jpg.c906659c739c9482f30ecec3b0f7bcf1.jpg

Couple of things to note - the 'analogue gauge' bits of the display are faked, just to reserve space of the screen, and both sets of digital readouts have the same info on them - that's because I only have one sensor connected at the moment. The main readouts are current and voltage, of course. The small value at the left is the 'State of Health' and on the right is the 'State of Charge'. I didn't bother to display battery temperature, as it's probably not very useful, and there's not much spare screen space!

First tests have been very encouraging, the voltage and current readouts are surprisingly accurate, the current reading was well within the 0.5% spec for my Fluke 189, which is the best ammeter I had to hand. Over limited bench testing this week, it seems to track battery stored capacity well, though I'm limited to about 30A for both charge and discharge on the bench. How well it tracks in the real world is another thing of course, but since they are fitted to loads of modern cars I'd hope it could be reasonably useful.

My design as it stands can support at least four sensors (so four batteries) but displaying the info would be fiddly. My use is for two batteries, so that is what I have aimed at.

Now I've proved it can work, I will buy a second sensor and try to get it installed in 1Bex over the next few weeks.

A few pics of the guts for those interested...

20220520_160606.jpg.2cb8e3d42716eafd91d357e10ed7052a.jpg20220520_160631.jpg.b314df0ae015dcd2137cad9369b0efce.jpg20220520_163042.jpg.5c28ce4cf679711d936555508b003c49.jpg

 

 

 

Edited by TSD
Added link
  • Like 3
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We use cookies to ensure you get the best experience. By using our website you agree to our Cookie Policy