ranenbg / Arduino-FFB-wheel

Stand alone directInput USB device recognized in Windows as a joystick with force feedback functionality, based on BRWheel by Fernando Igor from 2017.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Esp32 Upgrade

etempm opened this issue · comments

Hi, thanks for great work. I want to convert project to esp32. I can code esp and arduino and want to convert project to arduinoesp framework. What is your opinion about this ? Can be doable, easy or hard ? Thanks again.

Hi man, you are welcome. I think that porting this code to esp32 is an extremely difficult task, but feel free to do it :) There are many Arduino USB core files that I modified. Esp32 will have those very different, so you will most probably have to write them from scratch. Remember, this is low-level C++ stuff, so you have to know your way around HID very well.

Thanks for pointing me to right direction. I am no so pro low level c++, so I will go with arduino. I have a small problem when compiling. Arduino ide can not find Platform.h file. Where can I find it ? I am using Lenoard.

Thanks for quick reply.

You're welcome. I have provided all the necessary files in the folders of the repo, there is Arduino 1.8.5 folder. If you figure out how to compile it, please let me know. I did this many years ago when I was starting and got it compilable on 2 PC's only. I do not know anymore how to do it.

Finally One more question. VNH5019 is very pricy in my country. I can easyly find BTS7960 here and it is cheap. Can I use this firmware with BTS7960 ? Thanks again.

Yes, as you can see in the description I have provided wiring for BTS7960. What you saw in the code is just some leftover from previous guys that worked on it, I kept it there only for the sake of history. I commented it out, VNH5019 is not in use anywhere.

Thank you very much...

Here is some info on what you need to do, that I know so far, the following files have to be changed:
in BR wheel_my current build\arduino-1.8.5\hardware\arduino\cores\arduino, or just in BR wheel_my current build
HID.h, USBAPI.h, USBCore.h, USBDesc.h, HID.cpp, USBCore.cpp
these files you have to place where ever it is located on your PC, for me it is in:
C:\Users\milos\AppData\Local\Arduino15\packages\arduino\hardware\avr\1.6.21\cores\arduino
and also the tricky part, on one more place USBCore.h and USBCore.cpp have to be copied, not sure where, maybe in arduino install folder also, for me it is in:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino
I'm using Arduino IDE 1.8.19 and boards version 1.6.21, on one PC I have win7 on another win10