Page 67 of 67 FirstFirst ... 1757656667
Results 661 to 664 of 664

Thread: [PC/XB1/PS4] vrHive - Dashes/Telemetry/Live Data/Arduino/Client-Server/+more

  1. #661
    Rookie
    Join Date
    Mar 2017
    Location
    les mureaux
    Posts
    2
    Platform
    XBOX1
    hello all

    sorry for my english because i'm french.

    I try connect my lcd to vrhive but my code in wrong

    help my please


    my code :
    #include <stdlib.h>
    #include <binary.h>
    #include <stdio.h>
    #include <LiquidCrystal.h>


    //les variables
    String receiveBuffer
    String dataFeed
    long longData
    String wTemp;
    char readChar;
    char readArea;
    char readCategory;
    char readMeasure;

    LiquidCrystal lcd(12, 11, 4, 5, 6, 7);//init ecran

    void setup()
    {
    lcd.begin(16, 2);



    Serial.begin(115200);

    }



    void loop()
    {


    while (Serial.available() > 0)
    {
    //put some data in to reset the variable content
    readArea = '!';
    readCategory = '!';
    readMeasure = '!';

    if (Serial.available() > 3)
    {
    //read first 3 bytes
    readArea = Serial.read();
    readCategory = Serial.read();
    readMeasure = Serial.read();

    //read actual data
    receiveBuffer = "";
    delay(5);
    while (Serial.available() > 0)
    {
    int val = Serial.read();
    if (val == '\n')
    {
    val = 0;
    break;
    }
    receiveBuffer += (char)val;
    }

    //work on data
    if (readArea = 'L')
    {
    if (readCategory = 'T')
    {
    if (readMeasure = 'N')
    {
    //Track Name
    //output the data to your LEDs, LCDs, etc.
    lcd.print(receiveBuffer);
    }
    }
    }

    }
    }
    }

  2. #662
    WMD Member MikeyTT's Avatar
    Join Date
    Jul 2012
    Location
    Crewe, UK
    Posts
    541
    Platform
    PC
    Quote Originally Posted by totof78 View Post
    hello all

    sorry for my english because i'm french.

    I try connect my lcd to vrhive but my code in wrong

    help my please


    my code :
    You've not given me a lot to go on here, with exactly what you're seeing, or not. So I will take this step by step.

    I presume if you put an lcd.print with some static text, then that will display to your LCD. If not then I can't really help much with that, as it's down to your connections, LCD model, etc.

    In vrHive, I presume you have enabled the Arduino in the "Hardware Connectivity" tab in settings. You also need to match the COM port/speed settings with your Arduino device.

    vrHive won't push any data through the COM port until there is data being read fro the API and you're in a session, so you need to be on-track before you'll see data.

    Would be worth putting some lcd.print statements in the Arduino code at various stages to prove that you're getting some data through, before you do any analysis on it. It could be that the "if (Serial.available() > 0)" isn't actually getting any data.

    Also worth checking the log files (%programdata%\MikeyTT\vrHive) that you're not getting error messages about COM port connectivity.

    Outside of the above, you'll need to provide a bit more dialog around what isn't working...
    Processor: Intel i7-4790 @ 3.6GHz Mainboard: Asus Maximus VI Memory: 32GB DDR3 Videocard: MSI 980ti Motherboard Sound/Headphones: Creative SB Z + M/B Sound for SimVibe / Onkyo 5.1 Surround + Astro A50 Headphones Monitors: 3 x Asus 27" VN279H PSU: OCZ ZX1250W Keyboard+Mouse: Corsair Gaming K70 RBG / Logitech G700 Mouse Gamepad/Wheel: Fanatec CSWv2 + BMW Rim, Fanatex CSPv2, Fanatec CS Shifter SQ v1.5 OS: Win7 Ult x64 Storage: 256GB SSD + 3TB HDD
    Resolution: 5040x1080@60Hz Texture Res: High Texture Filter: 4x V-Sync: No AA: MSAA4x FXAA & SMAA: Off Reflections: Low Vehicle Detail: Ultra World Detail: High Shadow Detail: Low Motion Blur: None
    My vrHive Telemetry and Dash App (PC/PS4/XB1) - Forum Page: http://forum.projectcarsgame.com/sho...nt-Server-more
    My vrHive Telemetry and Dash App (PC/PS4/XB1) - Web Site: www.vrhive.co.uk
    My YouTube Channel: http://www.youtube.com/user/TR7V8Mike?feature=mhee
    My Twitch Channel: http://www.twitch.tv/mikeytt

  3. #663
    Rookie
    Join Date
    Mar 2017
    Location
    les mureaux
    Posts
    2
    Platform
    XBOX1
    hello sorry for the missing detail

    my arduino is connect to my mac(i use parallel desktop), and vr hive is in standalone mode en upd stream

    i want just watch in my lcd 16x2 the track name because it is a test. my code is write to up and my configuration in vr hive :

    -com port data interval 60hz
    -baud rate 115200
    -parity odd
    -databits 8
    stop bits none

    thanks for your help

  4. #664
    WMD Member MikeyTT's Avatar
    Join Date
    Jul 2012
    Location
    Crewe, UK
    Posts
    541
    Platform
    PC
    Quote Originally Posted by totof78 View Post
    hello sorry for the missing detail

    my arduino is connect to my mac(i use parallel desktop), and vr hive is in standalone mode en upd stream

    i want just watch in my lcd 16x2 the track name because it is a test. my code is write to up and my configuration in vr hive :

    -com port data interval 60hz
    -baud rate 115200
    -parity odd
    -databits 8
    stop bits none

    thanks for your help
    Have you tried any of the other steps I've highlighted? We need to narrow down where the issue is, and to do that we need to know what's working first.
    Processor: Intel i7-4790 @ 3.6GHz Mainboard: Asus Maximus VI Memory: 32GB DDR3 Videocard: MSI 980ti Motherboard Sound/Headphones: Creative SB Z + M/B Sound for SimVibe / Onkyo 5.1 Surround + Astro A50 Headphones Monitors: 3 x Asus 27" VN279H PSU: OCZ ZX1250W Keyboard+Mouse: Corsair Gaming K70 RBG / Logitech G700 Mouse Gamepad/Wheel: Fanatec CSWv2 + BMW Rim, Fanatex CSPv2, Fanatec CS Shifter SQ v1.5 OS: Win7 Ult x64 Storage: 256GB SSD + 3TB HDD
    Resolution: 5040x1080@60Hz Texture Res: High Texture Filter: 4x V-Sync: No AA: MSAA4x FXAA & SMAA: Off Reflections: Low Vehicle Detail: Ultra World Detail: High Shadow Detail: Low Motion Blur: None
    My vrHive Telemetry and Dash App (PC/PS4/XB1) - Forum Page: http://forum.projectcarsgame.com/sho...nt-Server-more
    My vrHive Telemetry and Dash App (PC/PS4/XB1) - Web Site: www.vrhive.co.uk
    My YouTube Channel: http://www.youtube.com/user/TR7V8Mike?feature=mhee
    My Twitch Channel: http://www.twitch.tv/mikeytt

Similar Threads

  1. Replies: 404
    Last Post: 18-02-2017, 16:11
  2. Help:vrHive telemetry not working
    By paynemaster in forum PC - Technical Help & Support
    Replies: 20
    Last Post: 19-12-2015, 16:33
  3. Project-Cars Dedicated Server Live App
    By Ph0eNiX in forum Multiplayer
    Replies: 132
    Last Post: 04-10-2015, 20:10
  4. Replies: 0
    Last Post: 15-06-2015, 14:30
  5. Telemetry data in pit-monitor
    By DusterBuster in forum PC - Technical Help & Support
    Replies: 1
    Last Post: 26-05-2015, 20:06

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •