Cov txheej txheem:

DIY Sim Racing Display Arduino: 3 Kauj Ruam
DIY Sim Racing Display Arduino: 3 Kauj Ruam

Video: DIY Sim Racing Display Arduino: 3 Kauj Ruam

Video: DIY Sim Racing Display Arduino: 3 Kauj Ruam
Video: DIY Cardboard Smartphone Steering Wheel Rig 2024, Lub Xya hli ntuj
Anonim
Image
Image

Nov yog yuav ua li cas thiaj tsim tau yooj yim heev thiab pheej yig Sim Sib Tw USB zaub nrog Arduino UNO thiab 3, 5 TFT Display.

Nws muaj API rau Assetto Corsa uas coj cov ntaub ntawv los ntawm Kev Sib Koom Nco ntawm qhov game programed hauv C# hauv Visual Studio, tom qab ntawd xa cov ntaub ntawv mus rau Arduino hla USB, Arduino cais cov ntaub ntawv thiab qhia nws.

Kuv tab tom txhim kho API rau Project Cars, thiab tom qab ntawd kuv yuav ua rau rFactor, yog li sau npe rau kuv YouTube Channel kom hloov kho tshiab.

Kauj ruam 1: Cov ntaub ntawv

Khoom siv
Khoom siv

Koj tsuas yog xav tau Arduino UNO (Kuv sim kuv MEGA thiab tsis ua haujlwm zoo rau kev txheeb xyuas) thiab MCUFriend TFT 3, 5 Shield rau UNO

Nws puag ncig ntau dua 35-40 € txhua.

Kauj ruam 2: Cov ntaub ntawv thiab GUI

Cov ntaub ntawv thiab GUI
Cov ntaub ntawv thiab GUI

GUI yog qhov yooj yim heev, nws muaj keeb kwm dub uas yuav tso tawm 10 qhov sib txawv, RPMs, Ceev, Iav, Roj, Boost, Cua Temp, Asphalt Temp, Roj, Nres thiab Cav Nres.

Qee qhov txiaj ntsig zoo li Boost, qee zaum nyob ntawm 0 (NULL); yog vim tias lub tsheb koj tab tom tsav tsheb, tsis tau nce ntxiv yog li nws khaws tus nqi ntawm 0.

Kauj Ruam 3: Lub Tsev

Tsev
Tsev

Kuv tau txuas qhov Program uas koj yuav tsum khiav (yog API), tom qab ntawd xaiv COM chaw nres nkoj ntawm koj Arduino

** Tseem ceeb: Koj yuav tsum sau COMX, piv txwv li kuv Arduino nyob hauv COM9 raws li pom hauv daim duab.

Thiab xa cov ntawv.hex txuas rau koj Arduino

Koj tuaj yeem rub tawm cov ntawv ntawm no: MEGA

Pom zoo: