arduino-oled-auto-gauges icon indicating copy to clipboard operation
arduino-oled-auto-gauges copied to clipboard

Provide circuit diagram

Open matt-downs opened this issue 4 years ago • 11 comments

Arduino Pin Connected to
A0 Sensor signal
5V 5V VCC input from 12v USB adapter & Display VCC & Sensor VCC
GND 5V GND input from 12v USB adapter & Display GND & Sensor GND
A4 (SDA) Display SDA
A5 (SCL) Display SCL

matt-downs avatar Apr 22 '20 04:04 matt-downs

@gurvir44 I don't have the software installed to generate a schematic right now but this should hopefully help you out 😄

matt-downs avatar Apr 22 '20 04:04 matt-downs

Is there a way i can email you? I need a bit more help :/

gurvir44 avatar May 03 '20 00:05 gurvir44

Which part are you stuck with? It worked first time when I followed it 1-1

half-finished avatar May 03 '20 09:05 half-finished

I don’t have a oil pressure sensor yet, is there a part number for one you bought?

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows 10

From: half-finishedmailto:[email protected] Sent: May 3, 2020 5:06 AM To: matt-downs/arduino-oled-auto-gaugesmailto:[email protected] Cc: gurvir44mailto:[email protected]; Mentionmailto:[email protected] Subject: Re: [matt-downs/arduino-oled-auto-gauges] Provide circuit diagram (#2)

Which part are you stuck with? It worked first time when I followed it 1-1

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/matt-downs/arduino-oled-auto-gauges/issues/2#issuecomment-623078760, or unsubscribehttps://github.com/notifications/unsubscribe-auth/APIV5BVIZSETO3P54ANVHRTRPUXZ3ANCNFSM4MN2M7LQ.

gurvir44 avatar May 03 '20 18:05 gurvir44

In my case, the previous owner of my car had installed Defi brand digital boost and oil pressure sensors and gauges - I was able to hook into the existing 3 wire sensors. They were like these ones here: https://www.defi-shop.com/installation/sensor/

I think I used a multimeter initially to work out that the Defi sensors were powered by 5v which meant I could power and read them straight from the Arduino. The 3 wires were 5v VCC, 5v GND, and the sensor output. I looked at the datasheets for a bunch of 5v sensors like this one and just made the assumption that the Defi sensor reads from 0 to 140psi and the output would be between 0.5-4.5v. I did the same guesswork for the Defi boost sensor.

I believe sensors like these could work too, however I haven't tried them: https://www.rallysportdirect.com/part/gauge-sensors-wiring/prs-psebos-prosport-electric-boost-sender https://www.rallysportdirect.com/part/gauge-sensors-wiring/prs-pssmops-prosport-premium-oil-pressure-fuel-pressure-sensor

matt-downs avatar May 04 '20 02:05 matt-downs

Thank you! I uploaded the command to my Arduino today and it worked. Sorry for the questions, its my first time using a Arduino.

gurvir44 avatar May 04 '20 03:05 gurvir44

Sorry to bother again, can you run both boost and oil pressure with one ardiuno? Or do you need a new one.

gurvir44 avatar May 06 '20 23:05 gurvir44

In terms of hardware: Sensor readings won't be an issue, just hook each one up to a different analogue input. Not too sure how to drive 2 seperate i2c displays from the same Arduino though. The Arduino Nanos are pretty cheap so I just opted for a seperate one to drive each display lol

matt-downs avatar May 07 '20 04:05 matt-downs

Yeah just google how to run 2 displays, you have to do some soldering and addressing in the code but it’s pretty easy, you should be able to run as many sensors as you have analog or digital I/O’s

Sent from my iPhone

On 7 May 2020, at 2:00 pm, Matt Downs [email protected] wrote:

 In terms of hardware: Sensor readings won't be an issue, just hook each one up to a different analogue input. Not too sure how to drive 2 seperate i2c displays from the same Arduino though. The Arduino Nanos are pretty cheap so I just opted for a seperate one to drive each display lol

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

half-finished avatar May 08 '20 10:05 half-finished

My sensor outputs from 1-5v. Do i just have to un comment "return (m - 102) / 0.0585;" so there is no scale? Or do i have to "calculate" a scale for 1-5 which is just simply 0-1023n Edit: Got it!

gurvir44 avatar Apr 12 '21 00:04 gurvir44