ESP32 Command Station

Atani Dec 10, 2017

  1. Shtirlits

    Shtirlits TrainBoard Member

    37
    3
    9
    Did anybody buy the DCC++ station on eBay? It has been listed again as
    "DCC Digital Command Station w/ WiFi. DCS Mega 2560. 5 amps. Z N HO O scales."
     
  2. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    That is not related to this base station code and it is highly unlikely anyone would buy it as the cost is much higher than the components would cost to purchase individually.

    Sent from my ONEPLUS A5010 using Tapatalk
     
  3. dompondaco

    dompondaco TrainBoard Member

    47
    6
    6
    Hello again, sort of stuck and not sure if this is a library issue or not. Here is my situation. I went to the github link you recommended and followed all the instructions without a problem, until the very end when it says to start the Arduino IDE, select your board, select the comm port then is says compile and upload... Question is compile and upload what????? It may be WIFIscan based on the picture, but cant find it in the esp32 subdirectory.
     
  4. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    Well, you can compile and upload DCC++ESP32 if you have it opened in ArduinoIDE and have it configured correctly. But I would suggest starting with a simpler sketch like the WiFiScan one, you can find it under libraries/WiFi/examples.
     
  5. dompondaco

    dompondaco TrainBoard Member

    47
    6
    6
    Thanks much, will do you as you suggest.
     
  6. dompondaco

    dompondaco TrainBoard Member

    47
    6
    6
    Atani, regarding the DCC++EPS32 program, is this the one that says in the code comments that it is for platformio? Also all the programs in the library are CPP programs, Arduino IDE gives an error that it can only load INO files. What am I doing wrong? Going on two weeks just to get the software correct. I simply cannot get platformIO to run on my windows 7 computer! Hence the Arduino questions. BTW WIFIScan and some other standalone progams work fine on my ESP32.
     
  7. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    I am not sure what issues you are running into with PlatformIO. I use it without issues on win7 as do a number of other people.

    The DCC++esp32 codebase is c++ code and will compile fine in the Arduino ide with a few modifications that were covered previously. I don't use Arduino ide though so I am not sure if they are still valid or if more steps are required.

    Sent from my ONEPLUS A5010 using Tapatalk
     
  8. dompondaco

    dompondaco TrainBoard Member

    47
    6
    6
    Thanks much for the information. Based on what you said perhaps I will give platformIO another try. I had two basic problems with atom/platformio: one was when I tried to start PIO it just hung up with a spinning thing. The other problem I encountered was PIO starting and immediately coming up with a error message saying someting to the effect that platformIO home cant start and asked me to submit an error report, but when I tried to do that nothing happens. Any thoughts or should I just take these issues up the the PIO folks? THanks
     
  9. RCMan

    RCMan TrainBoard Member

    271
    132
    12
    I like the idea of using the ESP-32, BUT how do you package the ESP-32 with the present motor boards we use?
    The UNO/Mega makes a nice assembly and you can get a case for the UNO/Mega.

    Present breadboards are not made for the ESP-32.
     
  10. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    I would recommend taking it up with PlatformIO devs unfortunately. I am not an expert on the inner workings of it but have some idea how some of it works.

    Sent from my ONEPLUS A5010 using Tapatalk
     
    dompondaco likes this.
  11. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    There are a few esp32 boards that are in an Uno form factor. However, the regular esp32 boards when paired with a piece of perfboard work really well for the pololu or bts7960 motor boards. There are also a number of l298 boards that will work with a couple small modifications to expose the current sense lines.

    Sent from my ONEPLUS A5010 using Tapatalk
     
  12. Shtirlits

    Shtirlits TrainBoard Member

    37
    3
    9
    If somebody bought it please post your review.
     
  13. Curn

    Curn TrainBoard Member

    752
    500
    32
    Just cut the pins from the motor shield and put it on the bottom. Get a long header pin kit, some 40x1 headers to cut to whatever size you need, and a Uno prototype shield. Then build an adapter shield to the esp32. Add a 12v to 5v micro usb power adapter and it all becomes one nice small unit.

    46105EA6-E08F-439A-B794-87E09792214A.jpeg
    7AF6E219-3E7B-4FBE-B1EA-050CFF810DBD.jpeg
    Matt
     
    Last edited: Jun 23, 2018
    Atani likes this.
  14. RCMan

    RCMan TrainBoard Member

    271
    132
    12

    Nice

    Thanks
     
  15. dompondaco

    dompondaco TrainBoard Member

    47
    6
    6
    Shdwdrgn, littlw while ago I downloaded the code for V1.1.0 and plugged it into PIO. When I hit build (using build_index_header.py) I get a a compiler error "src\WebServer.cpp28:44 fatal error: index_html.h No such file or directory Did you come up with the same problem? IF so how did you fix?
     
  16. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    This has shown up a few times recently with the latest version of PIO. There seems to be a bug in the build system as it doesn't always trigger a build.

    There are a couple options that we have found to fix it:
    1) do a full clean build (hit trash can icon and then build)
    2) in settings turn on the development version of platformio core and upgrade all components. And then trigger a build.

    When I get home on Tues I'll log a bug with the PIO team to get some sort of fix.

    Sent from my ONEPLUS A5010 using Tapatalk
     
  17. dompondaco

    dompondaco TrainBoard Member

    47
    6
    6
    Thanks for the info. WIll do as you suggest and standby for any additional information you may get form the PIO team.
     
    Atani likes this.
  18. RCMan

    RCMan TrainBoard Member

    271
    132
    12
    What do you think on using this for the assembly:

    https://www.ebay.com/itm/5X-Mini-Br...rentrq:3754bb941640ab45392af192fffff66d|iid:1

    $2.99 each & Free Shipping.

    Just to let everyone know, starting in July you will see a lot of Tariffs being applied to Electronic equipment. Don't be surprised. This is a good buy now but later might be higher.
     
  19. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    I have one of those and it should work fine. You will likely need to cut the pins off the back side but you should be able to use it as an adapter of sorts.
     
  20. RCMan

    RCMan TrainBoard Member

    271
    132
    12
    Agree, still have to cut the pins off the back side of the motor board.
     

Share This Page