DCC++ Update Project 2020

FlightRisk Feb 16, 2020

  1. FlightRisk

    FlightRisk TrainBoard Member

    548
    237
    14
    @Wadloper87 Ok, let me check the state of the builds and I will let you know!
     
  2. Wadloper87

    Wadloper87 TrainBoard Member

    26
    2
    2
    how's it going? any progress?
     
  3. sv1iw

    sv1iw New Member

    9
    0
    3
    Glad to see a ham involved in this,Good success!
    73 Manos SV1IW
     
  4. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Without doing any research is it possible to use one of the touch screens connected to the Arduino rather then going thru a PC?
    Thank you
    Alan
     
  5. FlightRisk

    FlightRisk TrainBoard Member

    548
    237
    14
    Not easily unless one of the touch screens has a programmable chip in it, just like the esp-8266 is a wifi board, but can be programmed. You have to have a controller (aka cab, aka throttle). A program has to respond to your touches and send DCC++ commands to the CS. You can use a WiFi board or esp-8266 and use your phone or tablet with Engine Driver. https://dcc-ex.com/start/wifi-setup/ and a youtube video
    Beyond that, you would have to build a WiFi or HC-12 throttle. Lots of those I can point you to.
     
  6. Atani

    Atani TrainBoard Member

    1,466
    1,736
    37
    You can use a Nextion to send DCC++ commands to the CS via serial for button presses. However, there will be three junk characters sent after each command which the CS will very likely need to be adjusted to discard.
     
  7. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Thanks for the feedback. I am more of a hardware guy. Software of 1s and 0s mean the number 10 to me! No way would i step my toe into trying to use a touch screen. Was hoping it would be a simple plug in task. Also thanks for the link as I did not know there was a site that has put everything into one spot. I have been spending the last 3 days going thru scatter posting on the DCC++ which did nothing but lead to confusion. I am excited about the newer approach and at the same time be able to use the CLASSIC as a base to learn from. I retired 3 years ago from CVP Products ( EasyDCC ) after 25 years so I do have a bit of a background in command control! It all started when we did the CTC-16 system.
    Regards and thank you for keeping things going.
    STAY SAFE EVERYONE
    Alan in the USA
     
  8. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Downloaded the latest code today and tried to install in my Arduino Mega R3 ( not a clone ) When I attempt to upload it to the board I get an error saying it cannot find config.h That file is present!!

    Any ideas what I am doing wrong?

    Just thought of something! Does the motor driver board have to be installed and powered up on the Mega?

    Thank you - Alan in MN USA
     
  9. Mani

    Mani TrainBoard Member

    76
    15
    4
    You can (need) to rename the file "config.example.h" inside it.

    Sent from my GM1901 using Tapatalk
     
  10. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Not to sharp on files etc.

    Do you mean I should go into the code and rename it "config.example.h" and should I also rename the file name the same?
    Thanks!
     
  11. Mani

    Mani TrainBoard Member

    76
    15
    4
    Yes. You need to go inside folder then you will find file named "config.example.h", rename it to "config.h".
    More info here:

    https://dcc-ex.com/start/arduino-ide-setup/

    Sent from my GM1901 using Tapatalk
     
  12. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Just to make sure this is what I did.

    Unzipped the file.

    Went into the folder and located the file called config.example.h and renamed it to config.h

    Uploaded to Mega and got error.
     
    Mani likes this.
  13. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    In addition I noticed that after the error upon uploading that the Arduino file with the blue circle next to it is deleted from the list of files ! ! ! :(
     
  14. Mani

    Mani TrainBoard Member

    76
    15
    4
    Have to triesd installer? That's easy if you are using windows system..

    Sent from my GM1901 using Tapatalk
     
  15. Mani

    Mani TrainBoard Member

    76
    15
    4
  16. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    DCC++ Master loads just fine.
     
  17. Mani

    Mani TrainBoard Member

    76
    15
    4
    What error you are getting? You may also need to install supporting library 'DIO2.h'

    Sent from my GM1901 using Tapatalk
     
  18. Mani

    Mani TrainBoard Member

    76
    15
    4
  19. AlanL

    AlanL TrainBoard Member

    23
    6
    7
    Did all you mentioned. DIO2.h installed.

    Just used the autoinstaller and it appears to have loaded. Not sure what to do from here to verify that it did in fact install
     
  20. Mani

    Mani TrainBoard Member

    76
    15
    4
    I think if you are using standard Arduino motor shield and Mega and upload Sketch using ArduinoIDE, it should work..
    ( Assuming you are using Command Station - EX)

    Maybe posting a screenshot of the error you are getting in IDE may help..


    Sent from my GM1901 using Tapatalk
     

Share This Page