DCC++ Serial Port Issues

Marty1962 Mar 27, 2019

  1. Marty1962

    Marty1962 New Member

    7
    1
    1
    Hi Guys
    Firstly let me apologise in advance if this is a rookie mistake. ( I am down under in Australia after all!!)

    I have been following Greg from DCC++ and have purchased the Arduino Mega 2650 and the Arduino Motor shield. I have downloaded the required Base Station Software and the Controller Software. I have followed all of Greg's videos on the DCC++ site as well as trolling the web but to no avail.

    I ran the base station software in Arduino IDE version 1.8.9 and it does the compile sketch as it should with no errors and reports back the used up space as it should. When I try to upload the file to the base station it seems to do the upload " the RX and TX " lights flash on the Arduino. What happens after this has me lost!

    An error statement appears at the bottom stating the following:

    Invalid library found in C:\Programs Files (x86) \ Arduino\Libraries\BaseStation-Master: no header files (.h)

    Is this an issue as it seems the program still uploaded?

    Any advice would be greatly appreciated.

    Regards
     
  2. DaveT58

    DaveT58 New Member

    7
    0
    1
    Hi Marty

    It looks like the Basestation-Master sketch has been saved in the "C:\Programs Files (x86) \ Arduino\Libraries\" folder. All of your Arduino programs should be saved in a folder in your "User/Document/Arduino" folder.

    Move the folder "C:\Users\<user_name>\Documents\Arduino\libraries\BaseStation-Master" to the "C:\Users\<user_name>\Documents\Arduino\". The libraries folder is only for storing library files, your sketches (Arduino programs) should be saved in the "C:\Users\<user_Name\Documents\Arduino" folder.

    If you do not save your sketches in the ....\Document\Arduino\ folder they can be deleted if/when you update the Arduino IDE to a later revision.

    DaveT
     
  3. Jimbo20

    Jimbo20 TrainBoard Member

    203
    154
    7
    Also; does the screen actually report that it has successfully loaded?

    The LEDs do flash when you first start the process, but I think this is the system checking that there is something connected to the USB port.
     
  4. Marty1962

    Marty1962 New Member

    7
    1
    1
    Thanks Dave, this has been fixed thanks to your advice.
     
  5. Marty1962

    Marty1962 New Member

    7
    1
    1
    Thanks Jimbo20 It seems there was an error when I added the Motor shield in that the patch lead should have been between pins 13 and pin 2. I only found this when I read the code and it stated pin 2 not 3 or 4. All channels now working and decode has now been programmed. Thanks for your help
    regards Marty62
     
  6. DaveT58

    DaveT58 New Member

    7
    0
    1
    HI Marty

    Glad it helped getting DCC++ uploaded and running. Its a wonderful bit of code, makes it very cheap to get a DCC system up and working, JMRI and DCC++ is a great combination.

    Where are you in Oz, I lived there for 20 years - 1982 to 2002, mainly the Sydney and Gosford areas.

    DaveT
     
  7. Marty1962

    Marty1962 New Member

    7
    1
    1
    Hi DaveT

    I actually live in a small country town about 30 mins from Wangaratta. Wangaratta is about an hours drive from Albury. I dont know if this helps much with my location. My next project is adding wifi to my DCC++ system, parts are on the way.
     
  8. DaveT58

    DaveT58 New Member

    7
    0
    1
    Hi Marty

    I used to know the area from Junee to Albury quite well, I worked on the railway line installing a new signalling system in the eary 1980's (83 - 85 I think), stayed in Harefield and Wagga for a while.

    Back to DCC++, I have updated the DCC++ code to allow an Arduino Mega to connect to JMRI over Serial ports Serial1, Serial2, Serial3, this allows for the use of the ESP8266 wifi boards to provide the Ethernet link between JMRI and DCC++.

    I am just testing a combination of DCC++ on an Arduino Mega with a ESP8266 Wifi board providing the link to the JMRI running on my desktop and also a WEMOS MEGA which has the Arduino Mega and a ESP8266 on the same board. It is running quite well, some tidy up required in the DCC++ code to do. Once I am happy it is running well and stable enough, I will make it available for all to try.

    So if you are getting the parts for DCC++ wifi, I suggest the WEMOS ESP8266 Pro mini (or similar ESP board) or the WEMOS MEGA with ESP8266. I will try to find some links so you can see the parts I bought.

    DaveT
     

Share This Page