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

Ard MEGA 2560,Suzuki Tach and adjustable shift lights

Discussion in 'DIY peripherals' started by muffkins, Jan 19, 2017.

  1. muffkins

    muffkins New Member

    Joined:
    Jan 16, 2017
    Messages:
    5
    Location:
    australia NSW
    Balance:
    189Coins
    Ratings:
    +0 / 0 / -0
    Howdy all,
    I stumbled across the xsim site and the simtools software. over the past 3 odd days ive got to pondering on what i can make with the Ard 2560 ive used previously for other things.

    What im going to be trying to acheive is using this Suzuki DR350Se Tach whit x3 addjustable leds via a pot and switch for tuning of the rpm range and the undershift lights. I am planning to use thus with Asseetto Corsa EA plugin and ST 1.3 if possible.
    IMG_8889.JPG
    I had seen an older post made By @eaorobbie(Thanks) about an Ard Uno adjustable shift light. Thought that would be a good place to start as in getting the shift lights up and going b4 the tach(and learn some code along the way).
    so i followed the wiring guide supplied with the Ard Uno Adjustable shift light post looks like thus arduino Shift Light - ShiftLight Complete_bb.png
    Well pretty Much the same as that although im using a toggle switch for the rpm button and 10k resistors on the leds and switch.I Have looked at that guide multiple times and think i have followed it pretty well.
    Oviusly not well enough cause im having a problem with getting it going.

    I get info on game dash and im certainly connected to the game threw the manager, the Rx light on the 2560 comes on as im getting in the game but the 2560 with leds,and switch dont do any thing, also when i turn the pot yellow led is always on and if i turn the 10k pot it just switches between the green and red leds so always two leds on, i tried reving and setting the shift point but lights don't even budge they are just always lit.

    these are my sim tools configs
    Game engine interface settings

    Bits Per Sec/115200
    Data Bits/8
    Parity/None
    Stop Bits/1
    Output Bit Range/8
    ive Tried both Binary/Decimal
    Startup-Out/R00000
    Interface-Out/R<dash2>
    Shutdown-Out/Roooo
    (Also done the Outputs the same in gamedash)

    Game Dash
    Dash2 is what the rpm comes up on with Assetto Corsa and in the pencil settings for Dash2 i have thus

    Replace -1 0
    Math * 10
    Round 0
    Pad 5 0

    And in Game Dash Setting i guessing i just put the same as the Game Engine Interface Options

    So im at a point were im not to sure were to go from here. if any one could shed some light on where i might be going wrong this would be greatly appretiated

    Cheerz a bunch
    This site rules:cheers
  2. muffkins

    muffkins New Member

    Joined:
    Jan 16, 2017
    Messages:
    5
    Location:
    australia NSW
    Balance:
    189Coins
    Ratings:
    +0 / 0 / -0
    whoops i stuffed the tag in the above @eaorobbie
  3. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  4. muffkins

    muffkins New Member

    Joined:
    Jan 16, 2017
    Messages:
    5
    Location:
    australia NSW
    Balance:
    189Coins
    Ratings:
    +0 / 0 / -0
    Thanks @noobeast for that link, pretty much what im tryng to do here except i cant use the speedometer because it is mechanical but seen that post i know now the tachometer should be achievable. he didnt give much info on the setup and how he got it to work in the end. i did see some of the game dash setting he used though and i really dont understand what to do with the commands with the pencil, what i have now could work with the shift light but for some reason i cant get that to work atm. i understand im not guna get this done in a couple of days, the building of the project i can do and the wiring peace of piss but the coding arduino/game dash will be the time consuming part as i have little knowledge on either.

    IMG_8893.JPG IMG_8892.JPG

    I investigated the tachometer and traced the wires, the orange pretty much leads to the positive of the motor and black obviously negitive and the red and white a a chip on its pcb so i read on oldmates yamaha gauges i hook the signal to one of the PWM ports on my Ard 2560 and orange to 5v black to ground. i will test this out once i can get the shift lights cracking.
  5. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,060Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    Always better to try and use the same board as advised in the code. Sometimes code doesn't work between models when the IC changes and port numbers are assigned differently e.g. a pwm port on one board may be an analogue on another.
    • Informative Informative x 1
  6. noorbeast

    noorbeast VR Tassie Devil Staff Member Moderator Race Director

    Joined:
    Jul 13, 2014
    Messages:
    20,520
    Occupation:
    Innovative tech specialist for NGOs
    Location:
    St Helens, Tasmania, Australia
    Balance:
    144,950Coins
    Ratings:
    +10,770 / 52 / -2
    My Motion Simulator:
    3DOF, DC motor, JRK
  7. muffkins

    muffkins New Member

    Joined:
    Jan 16, 2017
    Messages:
    5
    Location:
    australia NSW
    Balance:
    189Coins
    Ratings:
    +0 / 0 / -0
    @Alexey i understand this but just for the moment i want to get by with what ive got uno/mega not much different just some more digital+pwm plugs and the same amount of analogue i beleive there shouldnt be much different between the two hopefully i know im guna havto do some of my own code but hey thats the shits and giggles part right
    :popcorn
  8. Alexey

    Alexey Well-Known Member

    Joined:
    Sep 23, 2014
    Messages:
    452
    Occupation:
    Electronics Technician
    Location:
    Adelaide, Australia
    Balance:
    8,060Coins
    Ratings:
    +620 / 2 / -0
    My Motion Simulator:
    3DOF, DC motor, Arduino
    It should be as simple as comparing the port numbers assigned to the uno in the code and match what you need to the mega.