lshachar / Arduino_Fanatec_Wheel

A do-it-yourself steering wheel to Fanatec's wheel base
90 stars 13 forks source link

Adapting to ESP32 #5

Open matt0hait opened 4 years ago

matt0hait commented 4 years ago

I'm working on adapting this to my Clubsport V2.5 using an ESP32. I'm a little stumped on the pinout. It seems different from the one provided in the repository. I thought that the Fanatec rims were compatible between the bases. I'm limited in my options since I don't have a Fanatec rim yet. This is what I found so far by probing the base's PCB:

image

Anyone else take a crack at this yet?

MagnusThome commented 4 years ago

I'm a bit confused with your pinout numbering. This is the original connector numbering in Isachars picture?

The five uncommented pins are 5V, GND, +D, -D and NC I think.

schamtics arduino nano-level shifter-fanatec round plug PIN DESCR

EDITED BY @lshachar : please note that this diagram is old, and there have been important changes to it.

MagnusThome commented 4 years ago

This pinout works on a CSL Elite + I have here and it defintely works with the same steering wheels as with your Clubsport V2.5

matt0hait commented 4 years ago

Just re-probed with my oscilloscope, (using the pin map you provided) I have 5V on pin 11 &13. Pin 4 definitely connects to ground for me. I was able to continuity check it to a Vss pin. Is it possible that the rims provide 5V to the base through pin 4?

I'll have some level converters later this week. Saw some diagnostic pins on the inside of the base. Gonna see if they can spill the beans.

matt0hait commented 4 years ago

(Using your pin map again) Pin 3 does output 3.3V, but once it is pulled to ground the signals become alive. I'm still not receiving any signals on MISO or MOSI. Using the serial interface on the arduino doesn't create any signals either. Think I'm going to need to try another arduino. SDS00017

lshachar commented 4 years ago

When I initially tried to implement this I wanted to go the ESP32 route, but as far as I can remember - nobody was able to put the ESP32 in ISP Slave mode. Even though some documentations were referring to that. I advise you to try getting your ESP to receive data as an ISP slave, between two devices of your liking, before attempting to use this code. (Actually, I would advise you to get this code fully working on an arduino first... would probably make your life much easier!)

lshachar commented 4 years ago

Pin 4 definitely connects to ground for me. I was able to continuity check it to a Vss pin. Is it possible that the rims provide 5V to the base through pin 4? Pin 3 does output 3.3V, but once it is pulled to ground the signals become alive.

I'm pretty sure you're reading the connector mirrored. the picture I gave is the side on the rim, wheres the side you're probing is the connector side in the wheelbase.

Is it possible that the rims provide 5V to the base through pin 4?

The rim gets 5V from the wheelbase, not the other way around.

matt0hait commented 4 years ago

That picture of the oscilloscope is with an Arduino Leonardo.Still no dice. Going to pick up another Arduino soon and see if that fixes the issue.

danieleibarra commented 4 years ago

Ok I have the sketch for adolescence 3.2 I just don't know where they would go, help me

lshachar commented 4 years ago

Please open a new issue related to the problem you're having.