1. Do not share user accounts! Any account that is shared by another person will be blocked and closed. This means: we will close not only the account that is shared, but also the main account of the user who uses another person's account. We have the ability to detect account sharing, so please do not try to cheat the system. This action will take place on 04/18/2023. Read all forum rules.
    Dismiss Notice
  2. For downloading SimTools plugins you need a Download Package. Get it with virtual coins that you receive for forum activity or Buy Download Package - We have a zero Spam tolerance so read our forum rules first.

    Buy Now a Download Plan!
  3. Do not try to cheat our system and do not post an unnecessary amount of useless posts only to earn credits here. We have a zero spam tolerance policy and this will cause a ban of your user account. Otherwise we wish you a pleasant stay here! Read the forum rules
  4. We have a few rules which you need to read and accept before posting anything here! Following these rules will keep the forum clean and your stay pleasant. Do not follow these rules can lead to permanent exclusion from this website: Read the forum rules.
    Are you a company? Read our company rules

Projektarbeit Tachoansteuerung über Pc-spiel > Xsim > Atmega8 brauche bitte hilfe

Discussion in 'DIY Motion Simulator Projects' started by emuth, Jan 6, 2016.

  1. emuth

    emuth New Member

    Joined:
    Jan 6, 2016
    Messages:
    2
    Location:
    Köln
    Balance:
    214Coins
    Ratings:
    +0 / 0 / -0
    Hallo zusammen,

    Projekt: Tachoansteuerung Über PC und Microcontroller.
    Tacho: Ford Mondeo Mk II
    MC: ATmega 8
    Programm: myAVR v.4

    Ich habe ein Paar Fragen Bezüglich der Tachoansteuerung. Ich denke hier sind viele sterben schon ein solches Projekt bewältigt Haben und hoffe hier auf Hilfe zu treffen.

    1. Gibt es Eine möglichkeit sterben Daten sterben Vom PC- Spiel ausgehen
    irgendwie anzeigen zu lassen? Oder kennt Sich Einer DAMIT aus?!


    2. Zurzeit läuft Das RPM Tacho Über PWM mit ICR und OCR1A und das KM / H
    Tacho Über Verzögerung. Kann man den OCR1B oder OCR2 Auch mit Einer
    Veränderbaren Freqzuenz betreiben (ICR2 geht nicht) oder ist das gar
    Nicht möglich?
    Hier ein Kleiner Ausschnitt (Zurzeit Stell ich Die Werte Selbst zur
    Verfügung das soll halt Dann Über Eine Variable geschehen, dennoch fehlt etwas):

    machen
    {
    ICR1 = 50000; // Frequenz Wird vom RPM Geändert
    _delay_ms (5000);

    ICR1 = 10000; // Frequenz Wird vom RPM Geändert
    _delay_ms (2000);

    PORTD | = (1 << PD5);
    _delay_us (8000); // Frequenz Wird vom KMH Tacho Geändert
    PORTD & = ~ (1 << PD5);
    _delay_us (8000); // Frequenz Wird vom KMH Tacho Geändert

    _delay_ms (5000);


    } While (1);

    3. Wie verknüpfe ich den ATmega8 mit dem PC-Spiel (Programmierungstechnich)?



    vielen Dank im Vorraus
    MfG
    Emuth
  2. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    21,155
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    148,616Coins
    Ratings:
    +10,909 / 54 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
    By all means post in your native language but please also include an English translation via Google Translate. It saves other members time trying to work out who may need help and who is just posting a comment.

    We have bi-lingual speakers from many different language group so if Google Translate really messes it up they can help clarify what was intended.

    There is a specific section for native language based social interactions: http://www.xsimulator.net/community/#international-social-chats-and-conversations.155

    Peruse here for information about GameDash and DIY dash/gauge projects: http://www.xsimulator.net/community/faq/gamedash-settings-tips-and-tricks.21/category
  3. emuth

    emuth New Member

    Joined:
    Jan 6, 2016
    Messages:
    2
    Location:
    Köln
    Balance:
    214Coins
    Ratings:
    +0 / 0 / -0
    Hello everybody,

    Project : Tacho control via PC and microcontroller .
    Tacho : Ford Mondeo Mk II
    MC : ATmega 8
    Program : myAVR v.4

    I have a couple questions regarding the speedometer drive . I think here are many already dying such a project managed and have hope to meet here for help.

    1. Is there a way to show the Data From PC game going out
    to somehow be displayed ? Or knows from a that ?! The game ( DIRT 3)


    2. At present, runs The RPM tachometer About PWM with ICR and OCR1A and KM / H
    Tacho About delay . Can the OCR1B or OCR2 even with a
    Changeable Freqzuenz operate ( ICR2 not work ) or is that even
    Not possible?
    Here is a small ( currently adjusting myself to the values
    Available that will halt happen via a variable , but missing something ) :

    do
    {
    ICR1 = 50000; // Frequenz Wird vom RPM Geändert
    _delay_ms (5000);

    ICR1 = 10000; // Frequenz Wird vom RPM Geändert
    _delay_ms (2000);

    PORTD | = (1 << PD5);
    _delay_us (8000); // Frequenz Wird vom KMH Tacho Geändert
    PORTD & = ~ (1 << PD5);
    _delay_us (8000); // Frequenz Wird vom KMH Tacho Geändert

    _delay_ms (5000);


    } While (1);


    3 How do I link the ATmega8 with the PC game ( in program) ?