hoantv / VNPedal

Pedal uses multiple load cells
MIT License
18 stars 3 forks source link

Add force feed back for shifter #2

Open hoantv opened 4 years ago

hoantv commented 4 years ago
huseyinctlbs commented 4 years ago

Hi. I'm closely interested in your project. I'm so glad to see you have made some serious progress on something I've been researching for a long time. I'm especially curious about the ffb effect you plan to make for the xy shifter.

I would like to do a 3d printed xy shifter to test with your software if it's appropriate for you.(i will share all the desings with you).

Thanks a lot for sharing those information with us.

hoantv commented 4 years ago

I am investgating 2 options

huseyinctlbs commented 4 years ago

I think the second way would be more expensive my friend. Arthur Mellen Wellington said that about the engineering "An engineer can do for a dollar what any fool can do for two is attributed to him" :))

But some persons from endonesia (maybe you have seen them) have made xy shifter with just 2 pot using with arduino instead of button prototype. This could be more easier and more cheaper than using real car mechanism :)) and maybe can use a vibration motor that vibrates the shifter stick.

Or can be there will be a geared system on each axis and a servo or dc motor that block the shifter stick if not pressed on clutch pedal.

I think these methods are more appropriate to the words of "Wellington" :))

hoantv commented 4 years ago

i see. I though about use joystick as shifter before :). I saw it is too weak, maybe broken. I though about 2 poteniometer. But i dont know about mechanic, so i have to choose some available materials. At the moment, all are ideas :d.

hoantv commented 4 years ago

It is seem that you are making new firmware for ffb wheel?

huseyinctlbs commented 4 years ago

Oh yes. I have done a shifter from ffb joystick with a software. It was setting the limits of the gears with a template and hold the stick at gear positions. But i remember that it has not have the clutch option for blocking the shifter stick.

Anyway these are just ideas for now like you said. And i just want to tell you that these ideas can be made with software. If you need some help, you can ask me. lazy_1989@hotmail.com is my mail.

Im waiting to hear good news from you. Thanks a lot for sharing such a project with people.

huseyinctlbs commented 4 years ago

Sorry i haven't seen your post. Yes i'm trying to do that but i don't have a startpoint for it. Then your github will be a good startpoint to me. Let's be in contact. :)) Thanks again.

hoantv commented 4 years ago

If you are interested in, Pls join my projects. I will make other version for other MCU (maybe stm32).

huseyinctlbs commented 4 years ago

Yes i have joined. As far as I know, STM32 series development boards are more powerful than arduinos. But I guess the arduino should come after STM. Stm series boards requires more experience and the necessary experience could be learned in the arduinos. Do you have another page? Facebook or instagram that we can connect?

hoantv commented 4 years ago

//XY shifter use potentiometer -> maybe use encoder

define xRange 1200

define yRange 900

define xPin A0

define yPin A1

uint8_t xPosition = 1; uint8_t yPosition = 1; uint8_t shifterPosition = 0; int xValue = 0, yValue = 0;

// calculate Shifter Position
xValue = analogRead(A0); yValue = analogRead(A1); //Value Map to PMW signal. xPosition = map(xValue, 0, xRange, 0, 3); yPosition = map(yValue, 0, yRange, 0, 2); switch (xPosition) { case 0: switch (yPosition) { case 0: shifterPosition = 1; break; case 2: shifterPosition = 2; default: shifterPosition = 0; break; } break; case 1: switch (yPosition) { case 0: shifterPosition = 3; break; case 2: shifterPosition = 4; default: shifterPosition = 0; break; } break; case 2: switch (yPosition) { case 0: shifterPosition = 5; break; case 2: shifterPosition = 6; default: shifterPosition = 0; break; } break; case 3: switch (yPosition) { case 0: shifterPosition = 7; break; case 2: shifterPosition = 8; //Reverse default: shifterPosition = 0; break; } break; default: break; }

hoantv commented 4 years ago

This is my idea about ffb XY shifter: