DCC++ Throttle Design - Ideas to finished product.

UK Steve Nov 9, 2017

  1. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Mike/Keith/Steve
    Well, dwell on this overnight as I'm out the door ....... switching Reset from pin 7 to 3.3v makes it work ... I have a functioning TFT ...... More later.
    Steve F
     
    Scott Eric Catalano likes this.
  2. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    Switch your reset to pin 5 instead of 7 and it should work. Pin 7 is a special pin for sdio, SD card access.

    Sent from my ONEPLUS A5010 using Tapatalk
     
    Scott Eric Catalano likes this.
  3. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Perhaps I confused the issue. I switched TFT pin 4 (Reset) from UNO pin 7 (as per Steves diagram) to UNO 3.3V ......... switching that to UNO pin 5 which I think is what you recommended puts me back at a white display. At the moment, since my switch gives me a working TFT I will stick with it as I go forward.
     
    Scott Eric Catalano likes this.
  4. Atani

    Atani TrainBoard Member

    1,469
    1,756
    37
    Ahh, yes, my info is for esp32 and not an uno.

    Sent from my ONEPLUS A5010 using Tapatalk
     
    Scott Eric Catalano likes this.
  5. Keith Ledbetter

    Keith Ledbetter TrainBoard Member

    279
    195
    12
    Anyone still alive on this one. I am ready to play some more
     
    Scott Eric Catalano likes this.
  6. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Keith
    Glad you asked ... I too am awaiting further developments.
    Steve F
     
    Scott Eric Catalano likes this.
  7. NormHal

    NormHal TrainBoard Member

    138
    126
    12
    Well, I FINALLY received my bits and pieces from China (ordering over Christmas doesn't seem to be a good idea:-(), so I'm going to see how far I can get... UK Steve certainly has contributed a lot - I sincerely hope he's OK!
     
    Scott Eric Catalano and Atani like this.
  8. NormHal

    NormHal TrainBoard Member

    138
    126
    12
    Just a quick update... I've grown very partial to using PlatformIO on a Linux/uBuntu system. It's Oh-So-Much faster than on Windows 10 - I have found that even running Linux in VirtualBox works better than the Windoze version:-( But I digress:)

    Embarrassingly enough, I found UK_Steve's code on his initial submission, and quickly created an Arduino sketch ( OK, not PlatformIO, but even Arduino IDE runs beautifully on Linux).
    Within minutes I had compiled (and flashed) versions for ESP8266, ESP32, and our ever faithful Arduino Uno:) Again, thanks to UK_Steve for such platform independent code...

    All three versions display all sorts of stuff on the serial monitor, so my next step is to wire up a joystick (or three) and test each one accordingly... So far I've managed to locate and install the TFT libraries but not yet tested or experimented. My first attempt will be to use the ESP8266 board with the 3.3V TFT display. I'm still not sure about the level shifting circuit, so felt it will be safer to use both a 3.3V ESP8266 and the 3.3V TFT display UK_Steve recommended.

    My progress will be slow as I don't have too much available time these days, but any questions and suggestions are welcome:)

    Best
    Norm

    And one important PS. Atani introduced me to PlatformIO. It's surely one of the best IDEs/ Development platforms I've used (albeit rather limited) Thanks Mike!
     
    Scott Eric Catalano likes this.
  9. NormHal

    NormHal TrainBoard Member

    138
    126
    12
    Things are progressing slowly, but there's some progress at least:). So far I've managed to enjoy UK_Steve's joystick driven concept (which I think is pretty cool), connect the ILI9341 TFT display to ESP8266 and ESP32 devices, and execute a couple of examples. I managed to get the touch interface connected (and working:)) to the ESP8266. Basically I hope I've learned a few things for the future. Bitmap images "should" be quite easy to use (also could be called custom button images:)), and the overall performance is really impressive - as UK_Steve implied - move aside Nextion:)

    Going forward, we have two challenges as I see it... Firstly to learn how to "link" touch events to objects/images displayed on the display (I fear this is simply my needed learning curve), and secondly, but more importantly, to get UK_Steve back in the groove...

    I'll be back:)
    Norm
     
    Scott Eric Catalano, Atani and esfeld like this.
  10. UK Steve

    UK Steve TrainBoard Member

    453
    683
    12
    Hello All

    My apologies for being away so long.

    Life has been intent on dealing me a series of curve balls, I don't want to begin to get into on here.

    However I'm now confident of putting the last of such things behind me and will soon have some time to pick up this thread. Much to the joy of many of you that have purchased parts that will be currently collecting some dust no doubt.

    I hope I can remember how the coding part was such fun and an enjoyment to share. The thread will now bump back to page one. Let me know if you guys are still are still interested ???
     
  11. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    So glad to see that things have eased and you are back in the fold ... can't wait to get back at it. My best to you.
     
    Scott Eric Catalano likes this.
  12. Keith Ledbetter

    Keith Ledbetter TrainBoard Member

    279
    195
    12
    Hopefully life will give you hanging sliders from now on . I have played around with joystick etc some but glad you are back. Looking forward to next iterations and throttle adventures!
     
    Scott Eric Catalano likes this.
  13. patrick_martin

    patrick_martin TrainBoard Member

    23
    27
    7
    Good to see you getting back into the saddle Steve.
     
    Scott Eric Catalano likes this.
  14. Keith Ledbetter

    Keith Ledbetter TrainBoard Member

    279
    195
    12

Share This Page