Cov txheej txheem:

Tsheb Simulator Arduino Pedals: 7 Kauj Ruam (nrog Duab)
Tsheb Simulator Arduino Pedals: 7 Kauj Ruam (nrog Duab)

Video: Tsheb Simulator Arduino Pedals: 7 Kauj Ruam (nrog Duab)

Video: Tsheb Simulator Arduino Pedals: 7 Kauj Ruam (nrog Duab)
Video: xov xwm tsheb sib nraus tsheb taub hau tawg neeg taub hau los tawg 2024, Hlis ntuj nqeg
Anonim
Tsheb Simulator Arduino Pedals
Tsheb Simulator Arduino Pedals

Kuv muaj txoj hauv kev mus rau tsim lub tsheb-simulator thiab ib lub hom phiaj yog kom tau txais kev xav zoo li zaum hauv lub tsheb sib tw tiag. Nrog cov lus qhia no kuv piav qhia yuav ua li cas kuv tau tsim kuv cov pedals rau kuv lub tsheb simulator. Tau kawg koj tuaj yeem yuav cov khoom zoo li no tab sis kuv xav tsim nws pheej yig. Kuv cov pedals muaj roj, nres thiab clutch thiab siv Arduino (Windows cov neeg tsav tsheb ib txwm muaj) txuas rau usb chaw nres nkoj.

Vam tias kuv tuaj yeem txhawb koj nrog kuv lub tsev thiab kuv ntsib koj ntawm ib hnub nyob hauv Project Cars!

Kauj Ruam 1: Cov Khoom Koj Yuav Tsum Yuav Yuav lossis Tau Los Ntawm Scrapyard

1. Arduino Pro Micro

Koj tuaj yeem siv ib qho ntawm pawg thawj coj saib raws ATmega32U4

2. Usb cable ntawm Arduino board thiab computer.

3. 3 daim Slide Potentiometer 5kohm.

4. 3 pheej yig styling pedals rau tsheb.

5. Caij nplooj ntoos hlav

6. Qee cov hlau los tsim kev tsim kho pedal hauv

7. Ceev, ntsia liaj qhov rooj thiab cov hlua txuas rau lub hwj chim

8. Project Tsheb lossis lwm lub tsheb sim tsheb uas koj nyiam.

Kauj Ruam 2: Vuam Potentiometer thiab Arduino Ua Ke

Vuam Potentiometer thiab Arduino Ua Ke
Vuam Potentiometer thiab Arduino Ua Ke
Vuam Potentiometer thiab Arduino Ua Ke
Vuam Potentiometer thiab Arduino Ua Ke

Txuas Roj rau A0, Nres rau A1 thiab Clutch rau A2.

Txuas txhua lub hwj chim rau +5v thiab GND

Saib cov cua ntsawj ntshab.

Kauj Ruam 3: Programming Arduino thiab Xeem

Image
Image

Txog qhov no koj yuav tsum rub tawm MHeironimus/ArduinoJoystickLibrary Version 1.0 thiab JensArduinoCarPedals los ntawm Github.

Nruab ib lub tsev qiv ntawv thiab qhib jenswsArduinoPedal project.

Rub nws mus rau koj lub Arduino board thiab txuas rau koj lub khoos phis tawj computer.

Mus rau Controlpanel/Kho vajtse thiab suab/Devices thiab tshuab luam ntawv.

Yog tias txhua yam yog qhov tseeb koj tam sim no pom koj li arduino board ua joypad.

Txoj cai nyem rau ntawm koj lub Arduino board thiab xaiv Game Control Settings

Tom qab koj xaiv koj lub Rooj Tswjhwm Saib Arduino koj tuaj yeem mus rau tab tab thiab ntsuas koj lub zog ntsuas.

Nws yog qhov tseem ceeb uas koj siv Version 1.0 ntawm MHeironmius Joystick libary

Kauj Ruam 4: Kev Tsim Kho Pedal

Tsev Pedal Siv
Tsev Pedal Siv
Tsev Pedal Siv
Tsev Pedal Siv

Kuv tsim kuv tus pedal siv hlau thiab txuas nws ua ke. Ib qhov nyuaj yog nrhiav lub caij nplooj ntoo hlav nrog qhov xav zoo. Koj yuav tsum sim seb koj nyiam dab tsi. Kuv kuj nyiam tias 100mm los ntawm hauv qab mus rau nruab nrab ntawm tus taw tes yog qhov ntev zoo rau kuv txhais taw.

Kuv qhia qee qhov duab uas kuv tau ua los muab tswv yim rau koj tias koj tuaj yeem tsim koj li cas.

Kauj Ruam 5: Txhim Kho Potentiometer rau Kev Siv Pedal

Nruab Potentiometer rau ntawm Pedal Siv
Nruab Potentiometer rau ntawm Pedal Siv

Kuv tau xaiv los teeb tsa kuv lub potentiometer nyob tom qab ntawm lub pedal console.

Thaum kuv nias ntawm tus pedal potentiometer mus los ntawm 0 txog 5kohm.

Nws yuav yog qhov kev daws teeb meem zoo dua rau ncaj qha rau ntawm tus taw?

Kauj Ruam 6: Teeb tsa hauv Project Tsheb

Chaw nyob hauv Project Tsheb
Chaw nyob hauv Project Tsheb

Pib Project Tsheb thiab mus rau Options/Controls/Edit assignments

Xaiv Throttle thiab nias lub roj pedal.

Ua tib yam nrog Nres thiab Clutch

Kauj Ruam 7: Xeem Khiav hauv Project Tsheb

Yog tias koj tau ua txhua yam raug koj tam sim no muaj som zoo pedals rau koj lub tsheb simulator.

Tej zaum kuv gona tsim version 2, 0 ntawm kuv cov pedals.

Kuv tsis 100% txaus siab nrog qhov kev xav hauv kuv lub pedals.

Tej zaum kuv rov txhim kho nres rau hydraulic thiab sim sib txawv springs ntawm roj thiab clutch.

Pom zoo: