MickTheMechanic / Shiftlight

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

Trying to get the project running #4

Closed Lakshitha747 closed 3 years ago

Lakshitha747 commented 3 years ago

Mike,

Thanks for the project. Trying to get the code working for my honda (4 cylinder). Did everything according to your diagram without using the LM7805 as im powering my Arduino Uno from my laptop for now. This works but I'm getting frequency values when my ECU wire is not connected and the the idle frequency is showing in the high 40000. The -12v, is it fixed to the chasis as earth or?. If you could find the time to help me that would be really great. Im sort of new to this and I have no idea whats going on

Thank you

MickTheMechanic commented 3 years ago

Very strange indeed... the same problem was reported in #3

I will need to look into this further. I know of several other people who have successfully built the project without issues, so I am fairly confident it’s not an issue with the code.

Can you provide more information, like what you are using as a signal, does the bug also appear when you have the signal wire connected etc etc...

Lakshitha747 commented 3 years ago

Thanks for your help,

Yeah its the same when its connected. It cant be an issue with the code cause the first time I tested it I got the proper values. The idle frequency was at 30Hz and when pin was removed it was showing 0Hz. I'm using the same wire sent to my tacho

Lakshitha747 commented 3 years ago

Working on getting you the pictures. Actually didn't expect a reply so quickly

MickTheMechanic commented 3 years ago

I found the problem, my wiring diagram is wrong... I will post an updated version in a few moments

Lakshitha747 commented 3 years ago

Thank you for the help. But just in case it was my error this is what my diagram looks like.

index

MickTheMechanic commented 3 years ago

43231FE9-B0A0-4185-BEA6-BA8ADE258A0D

please try this configuration with the PNP transistor and let me know how it works.

Also make sure your Arduino gnd pin has a connection to the car body when you are powering via the laptop.

Lakshitha747 commented 3 years ago

Alright thanks. I'll let you know how this goes

MickTheMechanic commented 3 years ago

Did it work out for you?

Lakshitha747 commented 3 years ago

Sorry waiting on the transistors. Country is on lock down bit hard to get the stuff. I'll update the forum as soon as I get the parts and build the circuit. Is there another alternative to the transistor that you know of other than the PNP transistor #2N3906?

MickTheMechanic commented 3 years ago

Do you have any other PNP transistors?

Lakshitha747 commented 3 years ago

s8550, s8050 transistor

MickTheMechanic commented 3 years ago

You can try the S8550, it would probably work.

Lakshitha747 commented 3 years ago

Alright. I'll try with the S8550 and let you know

MickTheMechanic commented 3 years ago

Any luck?

Lakshitha747 commented 3 years ago

Trying it right now with a S8050 transistor (cant seem to find my S8550 transistors). Trying to print igfreq but the serial monitor shows nothing. I have a random println in the loop and even that doesn't print. Can this be expected when running with this transistor?

Lakshitha747 commented 3 years ago

Ok so now its printing a bunch of zeros

Screenshot (15)

MickTheMechanic commented 3 years ago

Do you have the gnd pin on the Arduino connected to the car body ground?

Lakshitha747 commented 3 years ago

Yeah now I took the ground off and now its showing 50s 49s. When the revs increase it increases by like +1 not much and on idle and even when the vehicle is off its saying a constant 50. Looks like the transistor. I'll have get new ones

Screenshot (16)

Lakshitha747 commented 3 years ago

Well my transistors finally came and I tried it with the 2N3906 and it works. Thanks for all your help with this. Just one more thing, when I do use this with the 12v, I can use a step down converter to reduce the voltage and power the Arduino and the rest of the circuitry will stay the same?

ezgif com-gif-maker

The frequencies are set pretty low

MickTheMechanic commented 3 years ago

Yes, you can use either a stepdown or a linear regular, and the rest will stay the same.

Which wiring diagram worked for you in the end?

Lakshitha747 commented 3 years ago

This one

43231FE9-B0A0-4185-BEA6-BA8ADE258A0D

Lakshitha747 commented 3 years ago

I'll close this issue now. Again thanks for your help with this.

JeFeRoJo commented 2 years ago

Well my transistors finally came and I tried it with the 2N3906 and it works. Thanks for all your help with this. Just one more thing, when I do use this with the 12v, I can use a step down converter to reduce the voltage and power the Arduino and the rest of the circuitry will stay the same?

ezgif com-gif-maker

The frequencies are set pretty low

Hello.

I just created an account here to ask you how you have implemented the display with the RPM counter. I am also trying to get the project to work on my Honda (EUDM Civic EK3) and am going to test it again with the new published diagram.

Thanks!