Still Trying to add WiFi to an Arduino DD\CC++

EFA Train Guy Sep 10, 2018

  1. EFA Train Guy

    EFA Train Guy TrainBoard Member

    12
    0
    4
    I have tried to figure out how to add wifi to my MEGA w/Deek-Robot Motor Shield.

    I have been able to run a test track using the Controller but would like to use Android Engine Driver without using a computer or a network.

    Any direction will be appreciated.

    Erich
     
  2. Diehard

    Diehard TrainBoard Member

    10
    0
    7
  3. Atani

    Atani TrainBoard Member

    1,466
    1,736
    37
  4. EFA Train Guy

    EFA Train Guy TrainBoard Member

    12
    0
    4
    Thanks DieHard.

    From what I can understand it might be the answer to getting my DCC++ working w/o a computer by WiFi.

    I will order one soon.

    Now to see if I can figure out how to "connect" the ESP so it will connect to engine driver (either with or without a network.

    Erich
     
  5. EFA Train Guy

    EFA Train Guy TrainBoard Member

    12
    0
    4
    Hi Atani,

    I am hoping that the MEGA+ESP8266 Board will get me to have a stand alone DCC++ Base Station allowing me to use Engine Driver on my Phone & Tab.

    Do you think your changes will work with this board?

    If so I hope to purchase soon.

    Regards,

    ERICH
     
  6. Atani

    Atani TrainBoard Member

    1,466
    1,736
    37
    I would imagine so, you will need to flash both the Arduino and the esp8266 chips. Please do keep in mind that there is not native support for the EngineDriver app on the esp8266 but it could be added with a bit of work.

    Sent from my ONEPLUS A5010 using Tapatalk
     
  7. Diehard

    Diehard TrainBoard Member

    10
    0
    7
  8. Atani

    Atani TrainBoard Member

    1,466
    1,736
    37
    This is pretty cool, I hadn't thought of using the esp8266 to generate the DCC signal as it doesn't have many pins to support PROG/MAIN or sensors/outputs. I have a D1 Mini sitting on my desk and I was using it originally as part of my arduino+esp8266 builds for quite some time.
     
  9. Onizukachan

    Onizukachan TrainBoard Supporter

    752
    1,198
    24
    I was going to try this, even have the esp board, but wound up deciding to just use a raspberry pi instead to avoid the headaches.

    I have two cards set up, one i did is a full on normal raspian install that uses my normal home internet as the access for WiThrottle, and requires a monitor and mouse, and the other i downloaded as a stripped down auto starting version which uses the pi as the WiFi hotspot. That one can be used headless and without the need for external WiFi network . Self contained as it were.
     
  10. Shdwdrgn

    Shdwdrgn TrainBoard Member

    251
    182
    13
    I set up my raspberry pi a little differently. I started out making it a WAP with dhcp to handle both my esp32 controller (running Atani's code) plus it will provide connections for cell phones and tablets. Then I plugged the esp32 into the pi with a usb cable. This provides direct power to the esp, but it also allows me to compile and flash new updates directly to the esp as needed. I finished it off by getting a case and 3.5" touchscreen plus a clock chip for the pi, which boots automatically into chromium showing the controller page that the esp provides. Eventually I also hope to have the pi processing scripts to automate some of the layout functions and locos. You can do quite a lot when you put together a few different pieces of hardware. :)
     
    Atani likes this.

Share This Page