DCC++ Hardware - Throttles

KE4NYV Jan 25, 2016

  1. IronMan1963

    IronMan1963 TrainBoard Member

    161
    173
    9
    I forgot. I built the wireless decoder version. Sounds like you have a couple libraries out of place. Have you tried it to see if it works?
     
  2. Sumner

    Sumner TrainBoard Member

    2,835
    5,969
    63
  3. Steve Micinski

    Steve Micinski TrainBoard Member

    19
    7
    4
    IronMan and Sumner, the libraries are there but there are no H-bridge or .cpp files directly under the the specific folder. There are multiple folders under the main folder for instance, arduino-master folder but no .cpp or H-bridge files in the main folder. Also I realized that the code you sent was for an encoder and not the potentiometer I have. I ordered an encoder but didn't realize you were also using the wireless version. I had started to hook everything together when I realized I didn't have the encoder. I figured it might be hard to test to see if it works if I wasn't assembling all the correct components. In looking at yours and the basic one Bodnar posted first I'm still not sure why I can't get that one to compile and upload. If I could, I could test it out now. I had no problems with the DCC++ base station assembly and software but there was a great video on exactly how to do each step. This is more complicated and I know zero about this Arduino IDE coding. I'm trying to learn but it seems (maybe because I'm older) significantly more complex then the Basic coding I did 40 years ago.
     
  4. Steve Micinski

    Steve Micinski TrainBoard Member

    19
    7
    4
    I should add, I feel like it's a real shame that this great throttle hasn't had more support and updates (this is not directed at Dave). I sure wish someone had continued with it and made it easier for a noob like myself to build and program with the Ardunio IDE. I see lots of people have run with the idea and there are multiple builds of the throttle but it seems only people with a strong coding background are able to make it work. I'm a noob at electronics too but that seems easy compared to the coding.
     
    Sumner likes this.
  5. Sumner

    Sumner TrainBoard Member

    2,835
    5,969
    63
    Working with the Arduino is new to me so take the following with a grain of salt.

    After doing some research the folders that are coming up in the error messages are not legitimate folders to have in the libraries folder...

    https://forum.arduino.cc/index.php?topic=515864.0

    I removed them to a folder outside of the libraries folder and no more error message after compiling and uploading to the Arduino. Since I don't have a throttle assembled only an Arduino not sure if it is working or not but it is compiling and uploading.

    One of the folders that is removed ... Wireless_Throttle actually contains Dave's code that compiles and uploads.

    This has me encouraged to the point I might try and assemble the parts I have and see if it works,

    Sumner
     
  6. IronMan1963

    IronMan1963 TrainBoard Member

    161
    173
    9
    Steve there is no difference in the coding between the wireless and wired version. I am nearly 60 and new to the Arduino coding myself. I did some programing in Basic years ago on a Timex Sinclair. Most of the code is pretty well documented so usually you can read through it and figure it out.
     
    BigJake likes this.
  7. Steve Micinski

    Steve Micinski TrainBoard Member

    19
    7
    4
    Thanks IronMan and Sumner. You both have been a big help. With what I learned from IronMan's code file and the link I got from Sumner, I've been able to get the original file with the potentiometer to compile and upload to the mini pro with no errors or messages. Sumner, I deleted those files from the folder that were causing problems and the upload was perfect. Will be testing it out in a day or so. Waiting on a circuit board to make all the wiring connections neat and tidy. Thanks guys!!! I'll let you know how it works. If this works well, I may go wireless next.
     
    IronMan1963 likes this.
  8. Sumner

    Sumner TrainBoard Member

    2,835
    5,969
    63
    We will need pictures of course ;). What are you doing for a case? I'll try and come up with a 3D printed one hopefully. Not sure if Dave still sells them or not but I bought two of the small printed circuit boards he used in the build. They weren't expensive. I have the parts to do two of the wireless with the encoder.

    Keep us posted please,

    Sumner
     
  9. BigJake

    BigJake TrainBoard Member

    3,297
    6,328
    70
    LOL, I cut my teeth programming in BASIC on a TI 99/4a and a Tandy Color Computer II in the early 1980s. My "display" was an old black and white TV, tuned to channel 4 (or 3).

    I was taught and used Fortran in college for my Electrical Engineering degree, then my employers paid me to learn Forth, C, Ada, and VHDL, the latter of which I used to develop and verify FPGA (Field Programmable Gate Array) designs the rest of my career.

    I thought I was in hog heaven in the late 80's when I booted OS-9, and wrote & compiled C programs at home on my Color Computer, with dual floppy disk drives and a CRT monitor display.

    Now I'm retired at 58, and my Raspberry Pi 4b brings it all back. What's old is new again, and it even runs my trains, with JMRI and a Pi-SPROG 3 hat!

    With the Raspberry Pi 400, we've come full-circle, and revived the Commodore/TI/Tandy/Atari/Sinclair "computer-in-a-keyboard you hook up to your TV" concept, except this time with a full-blown Linux OS and dual HDMI outputs!
     
  10. Steve Micinski

    Steve Micinski TrainBoard Member

    19
    7
    4
    I'll keep you posted. I was sent a .stl file for my 3D printer from a fellow on a Facebook group. It printed well. I'll send more pictures and update you as I put it all together. The throttle is big enough to add batteries to it and wireless components. 20210202_125445.jpg
     
    Last edited: Feb 2, 2021
    IronMan1963, Sumner and BigJake like this.
  11. IronMan1963

    IronMan1963 TrainBoard Member

    161
    173
    9
    That is so funny. I am also remembering the old days while playing with the Arduino and Raspberry Pi's.
     
  12. IronMan1963

    IronMan1963 TrainBoard Member

    161
    173
    9
    I like the case. Any chance I could get the STL for it? I have a printer just my CAD drawing skills suck. Still trying to get the hang of the design programs. I can sketch something up in 3d on paper but can't get it from my head to the program. LOL My throttle is in a Plastic Crayon box.
     
  13. Sumner

    Sumner TrainBoard Member

    2,835
    5,969
    63
    The case is nice. If you go wireless with the HC-12 take a look at this just past the 14 minute mark....



    ... looks like it is a good idea to be careful about what the antenna is close to. I didn't see Dave mention any problems and couldn't find other references on the internet with similar problems but that is not to say there might not be any. I thought the YouTube video was posted on here but I can't find the post now so maybe it wasn't. If I didn't have all the parts I do I might of considered building that throttle. The main thing I want is some manual feedback that the pot gives you. That is the one thing I don't like about a phone throttle.

    Sumner
     
  14. Sumner

    Sumner TrainBoard Member

    2,835
    5,969
    63
    Love Fusion 360 and there are a number of videos on the internet to help and you could find help here also. You aren't going to design complicated items the first week but keep working with it and it wouldn't be long before you could design that case,

    Sumner
     
  15. IronMan1963

    IronMan1963 TrainBoard Member

    161
    173
    9
    Yeah I have played with Fusion 360 a little bit. I just need to put more time into it. I just prefer the electronics and building side of the hobby more than the computer side of stuff.
     
  16. Steve Micinski

    Steve Micinski TrainBoard Member

    19
    7
    4
    No problem. What's the best way to send you files?
     
  17. Steve Micinski

    Steve Micinski TrainBoard Member

    19
    7
    4
    Sumner, are you the same Sumner that has some n-scale stuff on Thingiverse? LOL, just found your signature link. I'm about to paint your freight transfer building I printed out. It's a very nice and detailed design!
     
  18. Keith Ledbetter

    Keith Ledbetter TrainBoard Member

    279
    195
    12
    I just bought a 3d printer as well so looking forward to getting back into the wireless throttle.

    Learning fusion 360 as well. So far really like it. Last time I used CAD was like 20 years ago. My lord it's so much nicer and easier now.
     
  19. IronMan1963

    IronMan1963 TrainBoard Member

    161
    173
    9
    I will try to send you my email in your mail box
     
  20. Steve Micinski

    Steve Micinski TrainBoard Member

    19
    7
    4
    Let me know if you got them. I sent them twice and got an error message each time although they did appear in my "sent" box.
     

Share This Page