DCC++ Hardware - Throttles

KE4NYV Jan 25, 2016

  1. zephyr9900

    zephyr9900 TrainBoard Member

    34
    51
    2
    Dave, is there a reason you run your wireless throttle on two batteries in series? Both the Pro Mini and the HC-12 board will run on 3.3V so I'd think (and hope, for my own sake) that a single 3.7V Li-ON cell hooked to RAW would power the both. The Pro Mini takes less than 10mA to run, and from the HC-12 datasheet it looks like 200mA will run it. A fairly small 2000mAh cell would seem to run the throttle for 8-ish hours. Or are there other factors I'm overlooking? I'm a mechanical engineer and basically faking this electricital stuff... :)

    Randy
     
    Scott Eric Catalano likes this.
  2. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Good observation, Randy!

    Yes, the system will work on 3.7 volts and I did some tests with one cell.

    But the LCD display doesn't give very good contrast at 3.7 vs 5 volts so I opted for the two batteries - Another option would be to use a 3.7 to 5 volt buck converter if you want to use only one cell.

    I also wanted a circuit where someone could use a single 9 volt battery.

    dave
     
    Scott Eric Catalano and HVT like this.
  3. zephyr9900

    zephyr9900 TrainBoard Member

    34
    51
    2
    Thank you, Dave. For full disclosure re. my question, my own throttle doesn't have a display.

    retrodeco.png

    The next city over has a 3D printer in their public library and makes prints for $0.10/gram. This is my first prototype which I'll have working this weekend in corded mode. It's using a Bourns mixer-quality (but linear taper) slide pot. I've redone the graphics and I'll machine the ultimate version from aluminum.

    I'm planning for the radio version when the HC-12's come in, thus my question.

    Randy
     
  4. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    That looks great, Randy - nicely done and no LCD - go with one cell!

    thanks
    dave
     
    HVT and Scott Eric Catalano like this.
  5. DougL

    DougL TrainBoard Member

    82
    46
    10
    "The next city over has a 3D printer in their public library and makes prints for $0.10/gram."

    That is a wonderful idea! I will suggest it to our library.
    Libraries have expended their offerings enormously.
     
    HVT and Scott Eric Catalano like this.
  6. w8one

    w8one TrainBoard Member

    89
    109
    5
    All you have to do is put your call in the packet header and your good to go. (y)
     
    Scott Eric Catalano likes this.
  7. PGW

    PGW TrainBoard Member

    13
    16
    3
    Dave, I have been following all of your vids and pages and have got my dcc++ up and running. I'd be very interested in tackling the wireless control and would gladly pay for a case and circuit board. The laser cutter would be great but beyond my budget at this point.

    Paul
     
    Scott Eric Catalano likes this.
  8. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Paul - I would be happy to cut one out for you - drop me an email (dave@davebodnar.com) and we can work out the details

    dave
     
    Scott Eric Catalano likes this.
  9. PGW

    PGW TrainBoard Member

    13
    16
    3
  10. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    The link you sent doesn't show A4 and A5 pins - those are the pins the library I use wants to see for the LCD display.
    There may be other libraries that can use other pins (or you might be able to modify the library I use) but you may have some issues.
    Better to try an Arduino that has those pins (Pro Mini, for example)
    dave
     
    HVT and Scott Eric Catalano like this.
  11. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    I finished up building a 3rd wireless throttle just now and tested it and the two others with one radio receiver - all three sent packets successfully to the receiver - no interference, no bad packets -

    The next time we set up our modular layout I'll have club members give it a proper workout but the tests look very encouraging.

    dave
     
    HVT, esfeld, papahnash and 1 other person like this.
  12. PGW

    PGW TrainBoard Member

    13
    16
    3
    Dave in an interest to make things smaller and possibly get some parts locally and faster this seems to be good candidates:
    http://www.microcenter.com/product/451898/Pro_Trinket_-_5V_16MHz
     
    Scott Eric Catalano likes this.
  13. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    I don't see any reason that it would not work...... go for it!

    dave
     
    Scott Eric Catalano likes this.
  14. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Scott Eric Catalano likes this.
  15. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Steve, what error or problem did you run into?
    thanks
    dave
     
    Scott Eric Catalano likes this.
  16. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Dave
    My apologies .... I was referring to another board. My head is spinning, there is so much going on on the board, it's hard to keep up ... I was working on the LoLin NodeMcu ESP8266 board. Too many projects on the workbench, I guess.
    Steve F
     
    Scott Eric Catalano likes this.
  17. PGW

    PGW TrainBoard Member

    13
    16
    3
    Dave
    Thanks for the case/misc parts looks great. Now waiting on some of the other items from china. Few observations as I went to compile the Throttle Sketch. As mentioned previously I too needed to add 2 referenced libraries. Also, I noticed you have this line "#include "Arduino.h"" usually that means you are referencing a local version of a header. Did you alter this locally?

    I needed to add #include <Arduino.h> to my sketch at the very top before the var declarations. Also I am used to having/seeing all includes at the top of code as well.
     
    Scott Eric Catalano likes this.
  18. esfeld

    esfeld TrainBoard Member

    442
    382
    17
    Dave
    Got the case etc and assembled a wireless throttle ....... just a few mods to accommodate a 9 volt battery and two buttons as I'm not ready to try the rotary encoder just yet. So far it is working as designed. Thank you
    Steve F
     
    Scott Eric Catalano likes this.
  19. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Steve - good to hear that you got the case & parts - I guess the US Mail does get the job done!

    As for the code you have to remember that I am not a very experienced C programmer - the code is something of a Frankenstein collection from a number of other sketches, some mine and some examples.

    I have not yet taken the time to put it all in proper shape - the good news is that it works!

    I didn't specifically add the "#include Arduino.h" - It was likely part of some example.

    dave
     
    Scott Eric Catalano likes this.
  20. David Bodnar

    David Bodnar TrainBoard Member

    264
    481
    13
    Steve - good deal on getting things working - Please let me know what modifications the software needs - It is surely not a finished product yet.

    thanks
    dave
     
    Scott Eric Catalano likes this.

Share This Page