matt-downs / arduino-oled-auto-gauges

haha subaru wrx go brrrr
38 stars 14 forks source link

Provide circuit diagram #2

Open matt-downs opened 4 years ago

matt-downs commented 4 years ago
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 commented 4 years ago

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

gurvir44 commented 4 years ago

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

half-finished commented 4 years ago

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

gurvir44 commented 4 years ago

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:notifications@github.com Sent: May 3, 2020 5:06 AM To: matt-downs/arduino-oled-auto-gaugesmailto:arduino-oled-auto-gauges@noreply.github.com Cc: gurvir44mailto:gurvir_4@hotmail.com; Mentionmailto:mention@noreply.github.com 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.

matt-downs commented 4 years ago

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

gurvir44 commented 4 years ago

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 commented 4 years ago

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

matt-downs commented 4 years ago

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

half-finished commented 4 years ago

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 notifications@github.com 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.

gurvir44 commented 3 years ago

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!

tobynambur commented 1 year ago

Hallo how to make the sreen in Bar instat PSI