MickTheMechanic / Shiftlight

An opensource shiftlight project using Arduino and Neopixel products
27 stars 16 forks source link

2009 Mustang GT help (V8) #18

Closed LunixXd closed 6 months ago

LunixXd commented 10 months ago

Hey Mike I stumbled across your post when looking to make things in my avionics class. I’m currently a student and have access to many things such as an oscilloscope so I thought I would attempt to make this shift light work in my car.

I’ve done some research trying to figure out how to connect this and I have remade your schematic v1.2 on a pcb board with the dip trace software and im going to print it tomorrow at school. I was wondering how to safely connect this without blowing anything up in my vehicle, I care about it. With that being said Ive seen many people pull the tacho in from the coil driver wires as seen in this post from an official tach light company, raptor performance. ( https://www.raptorperformance.com/pages/raptor-shift-light-install-mustang-2005-2010-4-6l-5-4l-v8 ) is that where I should pull a tach signal for your circuit or should I go through via obd2, I’m not sure what Pinout provides rpm with my obd either as all companies seem to be different. I can provide photos of the circuit in a few days after I build it and give you any other vital info you need to help out. Any input is appreciated and thank you for sharing this information with us.

Ps: this is the first time I’ve ever really done anything this advanced with electrics and Arduinos so I’m learning as I go.

MickTheMechanic commented 10 months ago

Hi,

so for a signal you just need something that is rpm relevant, you could use the signal for the ignition coil, the cam sensor, the Tacho signal from behind the dash, and so on. You just need to have a think about home many times per rotation the signal you are using triggers, and calculate the shift frequencies in the code accordingly.

The signal input on the board goes through a voltage divider to lower the voltage down to an acceptable level for the Arduino. If you are using a 5v signal then you don’t need these.

The Tacho signal on the OBD connector seems to be only Daihatsu and a few other Japanese manufacturers, consult a workshop manual/wiring diagram to see if this is also present on your car. I can’t say if American manufacturers also did this.

Please be aware that there was a mistake in the wiring diagram that is shown in README.me. There is a link there to an issue where a sketch is shown showing the correct connection of the transistor. Please take a look at that if you haven’t already.

M52byfix commented 10 months ago

Hi friend. I'm setting up the circuit right now. But your transistor connection seems to be wrong. And my car has 6 coils. Do I need a transistor? And is there a problem with the circuit diagram? I've tried many times. There is a problem. The transistor connection is questionable. I would be very glad if you could help. I am waiting for your reply.

MickTheMechanic commented 10 months ago

As I said earlier, the correct transistor connection is shown in issue #4

MickTheMechanic commented 10 months ago

IMG_8759

M52byfix commented 10 months ago

My rpm signal is 5v. Should I still use transistors? And without a transistor, is there a difference in the circuit diagram?

MickTheMechanic commented 10 months ago

You should be able to connect the 5v signal directly to the gpio pin without any need for a voltage divider or transistor.

MickTheMechanic commented 10 months ago

Keep In mind that the Arduino needs to have a ground connection to the car

M52byfix commented 10 months ago

Gpio. I didn't understand that. Maybe d2 pin?

MickTheMechanic commented 10 months ago

Yes, gpio is just another name for the Arduino pin

MickTheMechanic commented 10 months ago

Just connect your 5v signal directly to the d2 pin

M52byfix commented 10 months ago

D2. Is this true. Because I threw away 2 arduino nanos. Yes, this is a shame. I tried all kinds of remedies to make it work. And the arduino nano is broken. X 🙈

M52byfix commented 10 months ago

D2 I'm going to put a 10k resistor between the rpm signal cable and the rpm signal cable. As a precautionary measure

MickTheMechanic commented 10 months ago

That should be ok

M52byfix commented 10 months ago

I am grateful for your quick replies. Thank you very much

M52byfix commented 10 months ago

Bu iyi olmalı

Hi friend. It worked, and it worked. But sometimes it works inconsistently. I saw a video of a Honda. It has a Honda-like problem and sometimes it doesn't work at all for a while.

LunixXd commented 9 months ago

Finally got the board complete after waiting for shipping, I will be testing it in the lab come morning, I’ll let you know how well it functions once I get it installed. but in the meantime here are photos of the board

IMG_8853 IMG_8854

Brown is ground, red Is power and green is signal, just for the time being. The board printed too small during the build so I readjusted it to make it work. I can’t drill holes in a straight line for the life of me so I just cut the legs of the arduino and lined them where I needed them then soldered connections.

FullSizeRender

This last photo is the board in our schematic software, diptrace. Showing it just in case I did anything incorrectly.

LunixXd commented 9 months ago

IMG_8855

It works! Now when connecting it to my car should I use the positive or negative side of the coil for the tach in signal? When I flip the leads of the signal generator to the negative wire it doesn’t pick up anything.

M52byfix commented 9 months ago

How the transistor connection was made. Can you share a schema?

LunixXd commented 9 months ago

I had posted a photo of the schematic above, it follows the same connection as the paper drawing that mick drew

M52byfix commented 9 months ago

IMG_20231203_205236 IMG_20231203_205258 IMG_20231203_205333 IMG_20231203_205345 IMG_20231203_205353 I did without a transistor. But it is more advantageous to use transistors.

LunixXd commented 9 months ago

Mick, I had it installed and here’s what happen: I turn the car on and the startup animation runs as normal, after that the lights blink red at an idle then I reved it and they turned off permanently. I uninstalled it and was going to do some troubleshooting of my own however, my question if my car is having an output from the coil as pulses per minute. Would I need to convert the pulses to a 12v signal, if so how? Or should they be fine like that after altering the code?

MickTheMechanic commented 9 months ago

Add a Serial.print to the code to print the frequency to the serial monitor

M52byfix commented 9 months ago

c5aaabc44c7d29692bad86e584cfcb45fe0f62eb What is the purpose of 10k resistance. And why does it go to the gnd line. Is it necessary to put a resistor between the transistor and the D2 pin?

LunixXd commented 9 months ago

The hz signal is out of wack, it would jump from 20 to 300 to 400 at idle. Maybe I need this? (https://www.holley.com/products/gauges_and_gauge_accessories/tach_adapters/parts/8918) My car may not produce the hz signal I’m looking for I’m not sure why the coil doesn’t give me a steady hz rate.

MickTheMechanic commented 9 months ago

You have a 5v signal correct? If that’s the case then you don’t need any transistor or resistor. Try connecting directly to D2

the 10k and 47k resistors create a voltage divider, which drops the voltage.

MickTheMechanic commented 9 months ago

Also make sure the Arduino is connected to the vehicle ground

LunixXd commented 9 months ago

Hey mick, do you think this would be possible to make?https://www.holley.com/products/gauges_and_gauge_accessories/tach_adapters/parts/8918 It looks too simple to not attempt to especially with its high price all it does is Converts Low-Voltage/High-Current Pulse To A Clean 12-Volt Square Wave.

MickTheMechanic commented 9 months ago

If you have a 5v signal then connect directly to D2.

What you are asking is pointless, you want to convert a 5v signal to 12v so that you can convert it back to 5v.

Just try to connect directly to D2 if you are sure you have a 5v signal

LunixXd commented 9 months ago

Ah I see, that makes more sense. I need to use my brain more often lol. But what doesn’t make sense is the hyperactive hz signal I’m receiving from the coil. It doesn’t even seem correlated to the rpm’s when I reved it and I can’t get a good stable reading. The circuit works just fine on the bench and that’s why I was looking at this adapter for the engine but maybe your fix may work I will have to test it down the road as school is currently closed for break. They use that adapter on my car for mechanical and electrical shift lights. There isn’t a problem with your circuit but there is one with my vehicle and how it gets its rpm signal, thank you for taking the time to respond to me.

MickTheMechanic commented 9 months ago

If you are using this circuit with a 5v signal then it would explain your sporadic frequencies, since you are not getting a proper high (5v) low (0v) logic. You are getting something like 0v to 2v because the voltage is being divided. So sometimes a high is being detected as a high and sometimes a high is being detected as a low.

this is why I keep insisting you test with the 5v signal directly to D2.

MarcPerformance commented 9 months ago

IMG_20231203_205236 IMG_20231203_205258 IMG_20231203_205333 IMG_20231203_205345 IMG_20231203_205353

Hello Mike! first of all, thank you for this project. I built it, I'm going to test it on my personal car FORD FOCUS 2009 Gasoline. I mounted the transistor in the correct position. Before I mount it, how do I test it on the work table? How do I apply the signal to the input when it is on the work table? Above in a post by M52byfix, in the pictures I notice a device near the dashboard clocks.... What device is it?

Thank you! Marco

M52byfix commented 9 months ago

IMG_20231203_205236 IMG_20231203_205258 IMG_20231203_205333 IMG_20231203_205345 IMG_20231203_205353

Merhaba Mike! öncelikle bu proje için teşekkür ederim. Ben yaptım, kişisel arabam FORD FOCUS 2009 Benzinli üzerinde test edeceğim. Transistörü doğru konuma monte ettim. Monte etmeden önce çalışma masasında nasıl test edebilirim? Çalışma masasındayken sinyali girişe nasıl uygulayabilirim? Yukarıdaki M52byfix'in bir gönderisinde, resimlerde gösterge paneli saatlerinin yanında bir cihaz dikkatimi çekiyor... Hangi cihaz bu?

Teşekkür ederim! Marco

You need a frequency generator. Square wave frequency generator

MarcPerformance commented 9 months ago

M52byfix , thanks for the quick response. I built this device from the youtube clip. Can I do these tests with it?

https://www.youtube.com/watch?v=GBmlMa-vJ8c&list=PLsp5MpqlTBRZajQEVdIYyT1N4g78S8RrR&index=36

Marco

M52byfix commented 9 months ago

M52byfix, hızlı yanıtınız için teşekkürler. Bu cihazı youtube klibinden oluşturdum. Bu testleri onunla yapabilir miyim?

https://www.youtube.com/watch?v=GBmlMa-vJ8c&list=PLsp5MpqlTBRZajQEVdIYyT1N4g78S8RrR&index=36

Marco https://youtu.be/Dq0noaVAR50?si=JwWL_Y8V5ibtb3HS

This is my video. Watch

MarcPerformance commented 9 months ago

20231226_235153.jpg

I managed to test it on the work table! I uploaded another signal generator, this one from the youtube clip.

https://www.youtube.com/watch?v=G26TqnncUgk&t=903s

LunixXd commented 8 months ago

Mick, late response but the voltage was too high for the chip and I blew it to be honest, got a new one installed, works on the test bench just fine, tried it the in the car again, same results. I’m not sure where else I could pull a hz signal related to the tach via obd or the back of the gauge cluster. Is there any other way of doing this? I have no clue how my car gets its RPM signal at this point maybe the ecu under the hood??? But still at square one again what would you suggest I do? Thx for any input

LunixXd commented 8 months ago

It seems the coil I chose which is closest the driver is a bit fuzzy when at a flatline on the o-scope. (I don't think coil is faulty but could be a possibility.) Would a Schmitt trigger work well in combination with the board to get a clean precise output on the lights? Also, would overhauling or modifying any part of code allow compatibility between a coil connection? Simply put, my car doesn't output the right signal for the board so I have to do something before the board to clean/compute the signal.

LunixXd commented 8 months ago

image you said im supposed to be getting square waves too correct? These are the type of waves I get from the coil connecting with the o-scope.

LunixXd commented 6 months ago

IMG_9650 Was able to get it working and installed quite nicely, I had to go through the ecu to get a signal however ford blocks the pin (25) that you have to get to and I had to find a donor Mustang to get the right square connecting pin. To anyone else attempting this, save yourself time and go through the ecu.