lshachar / Arduino_Fanatec_Wheel

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

Startup delay #8

Closed MagnusThome closed 4 years ago

MagnusThome commented 4 years ago

When I turn on my CSL Elite + base unit most of the time the Arduino/wheel isn't detected and I have to restart the Arduino with it's reset button after some seconds after turning everything on, then all is well.

I guess it's because the Arduino is booting to fast compared to the wheel base? So I added a one second delay right at the beginning of setup() and now the Arduino/Wheel is detected properly every time I turn on the base unit.

lshachar commented 4 years ago

That's weird, I'm guessing it's an issue with the SPI interface, as the arduino is always looking for the start of a sequence sent by the wheelbase, and then it just sends off the same message out. I'm going to blindly add your delay suggestion to setup() (because on my csw this was never an issue) Thanks!

sabifa commented 4 years ago

Hey! I know this issue is closed already but today I received my quick release and built the circuit on a breadboard to find out that its not working. I had to press the reset button on my nano a couple of times and it only worked like 3 / 10 times.

After some digging in the code I thought that I should try to remove the delay which was added a couple of days ago. After I removed it, it worked 100% of the times I've tried! (5/5)

It would be nice if someone else could also try this out so we can be sure if its needed or not.

My specs: CSL Elite + Wheelbase Wheelbase Firmware 662 PC Driver 346

MagnusThome commented 4 years ago

Interesting! With my nano board it's exactly the opposite. I think it's all down to the general problems to get a stable communication even though all my wires are only 2-3 cm long. Very odd.

Den fre 14 feb. 2020 18:59Fabian Klöckner notifications@github.com skrev:

Hey! I know this issue is closed already but today I received my quick release and built the circuit on a breadboard to find out that its not working. I had to press the reset button on my nano a couple of times and it only worked like 3 / 10 times.

After some digging in the code I thought that I should try to remove the delay which was added a couple of days ago. After I removed it, it worked 100% of the times I've tried! (5/5)

It would be nice if someone else could also try this out so we can be sure if its needed or not.

My specs: CSL Elite + Wheelbase Wheelbase Firmware 662 PC Driver 346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lshachar/Arduino_Fanatec_Wheel/issues/8?email_source=notifications&email_token=AHVN3KHELAV6SO6GQHMKLX3RC3LXNA5CNFSM4KBVGFBKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELZ4JAI#issuecomment-586400897, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHVN3KB6QUOHBACOGIMCXPLRC3LXNANCNFSM4KBVGFBA .

lshachar commented 4 years ago

Hmm.. thank you @sabifa! I'm going to comment out the delay in the code.

lshachar commented 4 years ago

Those issues were likely because of bugs that I recently fixed in the spi communication...