Connecting to Arduino

Discussion in 'Plugins' started by Rich Goodwin, Jul 2, 2012.

  1. Rich Goodwin

    Rich Goodwin Registered

    Joined:
    May 3, 2012
    Messages:
    1,219
    Likes Received:
    9
    I have made an SLI style dash using an Arduino board and a TM1638 Led module. It works perfectly in iRacing (Example videos below)

    My issue is pretty fundamental. How do I connect my Arduino to rFactor2? Just so I can begin trying to make my dash work over here too. Cheers.


     
  2. dv8r

    dv8r Registered

    Joined:
    Oct 13, 2010
    Messages:
    55
    Likes Received:
    0
    A few methods are possible. I didnt do a lot of work, but managed to get something going with "
    "
    Code:
    
    ....
    int baudRate;
    gcroot<String^> portName;
    gcroot<SerialPort^> arduino;
    
    ...
    arduino = gcnew SerialPort(portName, baudRate);
    arduino->Write(Convert::ToString(......something.......));
    
    
    Was a long time ago, and my C has since rusted!
     

Share This Page