-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DIY arduino steering wheel to fanatec wheelbase #12
Comments
so far I didn't get very far at all..
(hex) this message comes in every 5 seconds. it looks as if 0xA5 is the initialization byte, 0x9A is the termination byte, and the wheelbase tries communicating 7 consecutive times in every burst.
I could really use some clues and hints right now! please! :)
I cannot seem to attach the code as preview code, so here it is: |
Hi, You should probably, if not already, take a look on the wheel emulator you can find in dev-tool : t3_wheel_emu.ino |
Hi! |
Don't know about the CSW, but the CSL base clock the SPI bus just below 500kHz, so most boards should be able to handle that. You only have around 1.2ms between each frame, so you'll have to keep things fast enough if you want to handle inputs and stuff. The first thing to find is a board capable of running the spi bus in slave mode, with hardware interrupt on the Slave Select pin (and this pin must be available on your board). There is like 4us between the SS falling edge and the first clock tick so I don't think you'll be able to handle that with software SS. Then, come one of the most hardest part here : dealing with EMI issues. |
uh, wow! It's possible that I wasn't reading actual data on the clk / ss line at all, but noise, which was in the Mhz range! Also, bare in mind that the SPI bus on the fanatec is 3.3V. many arduinos use 5V. I might have burnt the MISO line on my wheelbase, by having it connected to 5V (before testing the line voltage) :| |
Try testing the power mosfet and the large smd diode next to it. I couldn't
find hardly any info about these boards online. I ended up having to get an
upgrade kit from fanatec to replace the v2 electronics & motor to v2.5
…On Mon, Jun 10, 2019, 19:25 devActive527 ***@***.***> wrote:
The emulator works great. A great job. I connected pins 3 and 5. By the
way, it is worth mentioning that to supply arduino should be taking 5v with
pin 11. Pin 4 has too low current efficiency. However, I encountered a
problem with my steering wheel. The motor has no strength to calibrate and
the 24v voltage drops to 15v. When I put the voltage directly on the motor
contacts, ffb works correctly. I suspect a damaged mosfet that turns 24v on
the engine. What do you think about it? Does anyone have a scheme to
connect the pedals? I would like to use others or build my own.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=ADJOFTOKPOQORBGC5XQZGADPZZ55XA5CNFSM4HN3QHJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKL77Y#issuecomment-500482047>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJOFTIJ47BC4KLE6IG5QHTPZZ55XANCNFSM4HN3QHJA>
.
|
It should be possible, if the packet that Darknao used is from a rim that
supports Xbox, or we get a packet from one that does.
…On Mon, Jun 10, 2019, 20:04 devActive527 ***@***.***> wrote:
Ok. A czy da się emulować za pomocą arduino jakąś kierownicę kompatybilną
z xbox one?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=ADJOFTLJT37Q7ZXCIYC7EB3PZ2CSDA5CNFSM4HN3QHJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXKPSQA#issuecomment-500496704>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJOFTIXMW5PPPBWH7H6LHDPZ2CSDANCNFSM4HN3QHJA>
.
|
I'm using a level shifter like this one |
I think my skills are not that good to do that...first gotta suply this level shifter, but do I need it for reading a rim? You said it is needed to preven base to burn out...but for rim do I risk to burn the rim?;) |
Although it is possible to put a voltage divider on any arduino output pin, (In case the arduino is master, these would be: MISO, MOSI, CLK, and CS. In case the arduino is slave, it's only the MISO pin), but it will only take a small wiring mistake, or the wrong code (pull an arduino pin that was supposed to be input to 5V - by mistake). I have accidentally connected 5v from my arduino to my wheelbase on the SPI interface, and nothing burned, but I don't recommend you to do that. get a level shifter. :| |
I believe Fanatec made the design themselves. There is a metal pin in the steering wheel (not pogo pins), and a metal receptacle in the base. I guess with a bit of searching we could find suitable pins. I'm going to create a printable part, that you can stick some pins through yourself with a bit of heat. I'm going to use nails as a simple alternative (not the best in terms of conductivity) |
my code is here |
Guys, need some help - Teensy board is very hard to be found around me, so is there any option some of the ardiuno boards to be used for Steering wheel to USB convertion? |
Yes, an arduino pro as well as several others can be recognized as joystick
by the OS. However the spi code will need to be rewritten to that target,
probably along other parts of the code.
…On Tue, Jun 18, 2019, 23:00 Krassi ***@***.***> wrote:
Guys, need some help - Teensy board is very hard to be found around me, so
is there any option some of the ardiuno boards to be used for Steering
wheel to USB convertion?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=ADJOFTOUKJAXCMG4XZJTUV3P3E5EZA5CNFSM4HN3QHJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODX7ZHAA#issuecomment-503288704>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJOFTOYLCYMAVIMJJPAYL3P3E5EZANCNFSM4HN3QHJA>
.
|
I saw ppl use Pro Micro for Thrustmaster rims USB covertion.. |
The pro micro does have an spi.
Making the spi adaptation will be the hardest part. If you are up to that
task, the rest should be a lot easier.
…On Wed, Jun 19, 2019, 03:48 Krassi ***@***.***> wrote:
I saw ppl use Pri Micro for Thrustmaster rims USB covertion..
Here is the info from btClubSportWheel:
This firmware has been developed and tested on a Teensy 3.1 and Teensy LC
but should work with any other compatible hardware.
The only requirement so far, is at least 1 SPI connectivity available.
So, the pro micro have this 1SPI covered?
and as this info is shown like only requirement that means that no extra
code change is needed, at least from what I understand..
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=ADJOFTKRCLELO2NSZIAEUJ3P3F65HA5CNFSM4HN3QHJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYALNGA#issuecomment-503363224>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJOFTKC4OJ5XCKHSJQ2H2LP3F65HANCNFSM4HN3QHJA>
.
|
So, uploading this code to Pro Micro and ofcourse use its pins coresponding to those on Teensy - will not work ? |
Hi!
apparently... I lied... I have not been working on it quite at all, really. :0 I have no idea what's causing the delay in pressing the buttons!! I just updated the 'beepEverySecond' branch to operate with the buffer (that I previously created for the SPI communications;) I don't think that changing the interrupt to a different pin would have any effect. By blades - do you mean paddle shifters? - I have mine hooked up to a different arduino (nano) so that I can use them while playing. the rj12 socket should be working fine, but I think you need to set up the paddle shifters using the on-wheel LCD display. in other words, you need to figure out my serial monitor interface, in order to enter the menu system on the wheelbase and bind the paddles. (* I remember you have to bind buttons for Fanatec's H shifter; I just assume you need to go in a similar route for the other peripherals. (might be wrong there) |
The paddles conected to rj on the back work plug n play, no need of setup;) If you do some custom ones you just need correct wiring for the 2 switches...you need to know which wire from the rj for what is used;) but it is simple nothing complicated there! |
great, that could have saved me my last race at SimRacingSystem when my shifter became buggy |
This will not make any difference, as my BeepEverySecond branch clearly
shows - the problem does not lie with the time that the arduino takes to
process the button press. There is something wrong in the communication
between the arduino and the wheelbase, and for some reason, that problem
only happens when a button is pressed; everything works fine when a button
is released.
…On Mon, 19 Aug 2019 at 16:00, devActive527 ***@***.***> wrote:
I meant that arduino uno has two interrupt pins and I thought it was worth
handling pressing the button as interrupt on pin 3. There is even a way to
handle many buttons on this one pin.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12?email_source=notifications&email_token=ADJOFTIKMPHDEXUMMTL6DSDQFKKO7A5CNFSM4HN3QHJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4S22WY#issuecomment-522562907>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADJOFTN6NSPIVQS6CVL6VWDQFKKO7ANCNFSM4HN3QHJA>
.
|
Yes... are you listening? 🙃 check out my beepeverysecond branch, hook in a buzzer, and see for yourself.
Intererence could be the problem, but it doesn't make sense as the problem will be the same both for button press and button release. |
do you have / can you make a wiring schematic? couldn't find one online |
Hi Ishachar, Delfinski, One thing I might suggest, is if you can get the positin and FFB working, forget using the fanatec base for buttons / shifters / pedals etc, and go with the OSH software on STM32 boards. I've done a number of these now for myself and others to make custom wheels & pedals controllers, they are quite versatile: https://opensimhardware.wordpress.com/pedal-button-controller/ |
I dont really see reason to use external devices for pedals, as all decent fanatec pedals are USB also...but event they wasnt - Why to avoid the base plug? |
Hi Delfinski, Just out of curiosity, whats the resolution of the fanatec pedals? (how many steps in game calibration?) |
You can easy find that info on Fanatec website for USB mode on the pedals which is build in...and ofcourse everyone can do suggestions and input here - just saying that your solution is not the best posible, if you dig deeper you will find that buttons and rotaries can be connected even to single cheap nano board... here the topic is for more complicated thing - to trick fanatec base to accept arduino powered rim..... the buttons to usb is piece of cake;) |
Hi MatMenzies!
Yeah, it's working since the time I uploaded the code to github. I have no idea what causes the buttons delay, but otherwise, for position + ffb + entering the wheel menu and changing settings / calibrating the wheel center etc - everything works fine. |
Hi Guys, Than I'll get a second hand Fanatec and give it a shot. Thanks for now Bakhol |
yes. |
Thanks Ishachar, At this moment I got an Fanatec Elite Base running Version 475 (if I'm right, this shows up on the display of the wheel delivered with it)) PLUG---------Teensy But at this point nothing happens. Thanks for now Bakhol |
Above teensy works on my second base CSW V1. So that's sorted. |
Please note |
Hello All, Has enyone been able to get either the Teensy 3.2 or the Arduino Nano working on a Fanatec CLS Elite V1? Regards, Pistolidas |
As I already asked, Darknao, I would thank you if you clicked 'lock conversation' on this issue. (I'm thinking that closing it may get people to miss it completely) |
As I already asked, Darknao, I would thank you if you clicked 'lock conversation' on this issue. (I'm thinking that closing it may get people to miss it completely) |
As I already asked, Darknao, I would thank you if you clicked 'lock conversation' on this issue. (I'm thinking that closing it may get people to miss it completely) |
Hi!
I have exactly the opposite problem that this project solves..
I recently bought a broken fanatec CSW V2.0 wheelbase and fixed it, (so it seems)
but, I don't have a fanatec steering wheel, and I planned on making my own.
I now get positional information from the wheel in fanatec's game driver, but in order to get force feedback I believe I need to have a steering wheel attached.
the plan is to use an arduino to communicate over SPI with the base, to fake a steering wheel.
once that is working, I'd also want to send the 'recalibrate center position' message over SPI, to recenter the wheelbase, as is usually needed after firmware upgrade of the base. (I don't know if this is a special recalibration message, or just an SPI message of the two buttons being pressed at the same time)
(last thing would be to have buttons working!)
I am definitely going to have a lot of problems writing this code by myself.. I might not be skilled enough. it sure seems like quite a lot of code that is needed for this project to work!
Any information would be greatly appreciated. IE, about the SPI communication protocol. Any chance that I can simply fake a wheel by resending the same message over SPI..? (fingers crossed)
How does the recalibration function work?
Anyone ever attempted anything like this?
thanks so much :)
-Shachar
The text was updated successfully, but these errors were encountered: