DCC EX Turnout Control OLD VERSION - SEE UPDATED VERSION

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 มิ.ย. 2024
  • This is the original video I did on controlling servo turnouts through DCC-EX. I have published an updated version with info on using the EX-Installer advanced configuration option and using the HAL() Macro for defining PCA9685s. See the video here:
    • Controlling Turnouts i...
    Here is a link to addresses available for the PCA9685:
    tinyurl.com/3vcu6sc8
    0:00 Start
    1:06 Daisy Chaining PCA9685's
    2:33 Addressing PCA9685's
    3:24 Defining Turnouts in DCC EX
    10:50 Defining PCA9685's in DCC EX
    16:15 Uploading the Sketch
    17:05 Components Used in the Demo
    18:15 Making the Connections
    21:45 Demo the Servo Control
    24:08 Using EX Toolbox to set you Servo Limits
  • แนวปฏิบัติและการใช้ชีวิต

ความคิดเห็น • 46

  • @robbhalverson7725
    @robbhalverson7725 5 หลายเดือนก่อน +1

    Wow....I dont know how to thank you. I was able to set up several turnouts, program them and have them working....thanks to your very helpful videos. Keep them coming. Great job!

  • @Terryhd1
    @Terryhd1 5 หลายเดือนก่อน +1

    I appreciate your time in making this video. It is very informative and helpful!!

  • @philnewman1110
    @philnewman1110 8 หลายเดือนก่อน +1

    That was probably one of the best tutorials on this subject that I have seen, I will be looking out for more of these. Well done indeed and thank you.

  • @user-lp6tu2kp4k
    @user-lp6tu2kp4k 9 หลายเดือนก่อน

    This helped me sooo much to get things together!!! GREAT work! Thanks a mill!!!

  • @Hal-Zuzzu_Model_Railway
    @Hal-Zuzzu_Model_Railway ปีที่แล้ว

    That was excellent. I will be viewing this a few more times when my boards arrive. I do have questions but I will ask them when the time comes. Appreciate your work.
    Thanks
    Joe Conti

    • @matthewesler8379
      @matthewesler8379 ปีที่แล้ว

      Who makes the board

    • @SPKPRR
      @SPKPRR  8 หลายเดือนก่อน

      They are available from multiple manufacturers. I got mine from Amazon, just search for PCA9685.

  • @stevewelton9936
    @stevewelton9936 8 หลายเดือนก่อน +2

    So everything is in the way you described, when compiling get error msg, myTurnouts.h file not found, have a tab for it, look in files and it's there also, how do I get the compiler to see it
    Update
    As it turned out had some small syntaxes mistakes, got them found , works great, thanks

  • @donaldkormos5529
    @donaldkormos5529 11 หลายเดือนก่อน

    Thank you so much for a great tutorial on DCC-EX and servos!! Started exploring with the original DCC++ and now use DCC-EX. Waiting for Version 5 to investigate EX-Rail. Question: Is there ... or will there be ... control for stepper motors? Servos are great for turnouts but steppers are nice for scenery automation, perhaps a rotating gas station sign. Servos with continuous motion are another option but don't know if DCC-EX will support a continuous servo motor. Thanks for your attention ... all the best!!

  • @bretkuehn3348
    @bretkuehn3348 9 หลายเดือนก่อน

    Steve, Great tutorial! Best I've seen on adding and controlling Turnouts in DDC-EX so far. I'll tinker with coding, but I'm not the guy who can create it. Your coding explanation was easy to follow and I'm excited to apply this to my layout. I feel confident I can modify the sketch for my layout (at least 120 switches). My next question is...have you thought about a video on controlling Turnouts with push buttons? The ability to control a Turnout from a panel push button is more appealing than controlling Turnouts in Engine Driver (or a DIY miniThrottle I plan to build for the grandkids). I've subscribed to your channel....look forward to your next video.

    • @SPKPRR
      @SPKPRR  8 หลายเดือนก่อน

      I have been away from the workshop all summer. I haven't considered a push button control before now, but if I can fit it in, I think a push button control would be cool too.

  • @prav1n73
    @prav1n73 4 หลายเดือนก่อน +1

    Appreciate your efforts and it is very helpful indeed to setup servos on my layout. I am thinking of using relays to switch frog polarity at the same time when turnout is thrown/closed. It will be great if you provide any direction on using PCA9685 to fire the relay. Thanks

    • @SPKPRR
      @SPKPRR  4 หลายเดือนก่อน +1

      The PCA9865 probably won't work to fire the relays, but a MCP23017 i/o extender may work, depending on the relays.

    • @prav1n73
      @prav1n73 4 หลายเดือนก่อน

      @@SPKPRR Based on your suggestion, I checked the MCP23017 however before committing to MCP23017, I did some more research and experimentation. I am glad to let you know that PCA9685 worked and it can fire the relay. Keep your videos coming, they are very informative. Thanks for creating them.

  • @rickcald1661
    @rickcald1661 8 หลายเดือนก่อน

    Steve are you located in Colorado?

  • @lestaylor7767
    @lestaylor7767 8 หลายเดือนก่อน

    Steve - great video and very helpful.
    Do you plan to do more video's as your instructions are nice and clear. Maybe extending what you have done with the turnouts into signals etc

    • @SPKPRR
      @SPKPRR  8 หลายเดือนก่อน +1

      I do plan to add more automation stuff like signals and scenery. Next video will be adding push button to servo turnouts...coming soon.

    • @SPKPRR
      @SPKPRR  8 หลายเดือนก่อน

      Yes, that is on the list

  • @repeters1
    @repeters1 7 หลายเดือนก่อน

    Steve, I am just getting into the DCC-EX system and I have a couple of Elegoo Mega M3 boards and a few 9685 boards. Just would like to know what the shield and motor controller models are that you used.
    Thanks for a great video.

    • @SPKPRR
      @SPKPRR  7 หลายเดือนก่อน +1

      I am using one of the many Mega clones, Geekstory ESP-01 wifi and a diymore motor held. All purchased off Amazon. I do have a BTS-7960 high current motor driver to get 5amps. I am using Hans Tanners shield for connecting the BTS to the system.

    • @SPKPRR
      @SPKPRR  7 หลายเดือนก่อน +1

      Just checked, mine is the Elegoo Mega too.

  • @scentgrasslakerailway
    @scentgrasslakerailway 4 หลายเดือนก่อน

    Thanks, awesome presentation and so very helpful! Did you make that screw terminal board (aka header board as referred to in the video). If you purchased it, can you tell me from where, an item listing or part number please?

    • @SPKPRR
      @SPKPRR  4 หลายเดือนก่อน +1

      It issomething I made, had the board fabricated by JLCPCB. As I redo and update my current videos over next few weeks, I will make the gerbers and parts list available.

  • @bobbyboy1962
    @bobbyboy1962 5 หลายเดือนก่อน

    EXACTLY what i was looking for. I have had 20 servos running with 9685 boards that i did with dcc++ about 3 years ago and have just came back to it after a long time away. This is a huge leap ahead. Question, what are the outside extremes for servos with regards to the active and inactive numbers is there a median . Regardless, thanks so much for this, Bob

    • @SPKPRR
      @SPKPRR  5 หลายเดือนก่อน

      Well, since different servos have different pulse durations, it's hard to give exact numbers, but typically in the range of 105-495

  • @skeeterweazel
    @skeeterweazel 5 หลายเดือนก่อน

    Can you tell us where you got that header board? That looks handy. Thx.

    • @SPKPRR
      @SPKPRR  5 หลายเดือนก่อน +1

      It is a header board I created in Kicad and produced by JLCPCB.

  • @richardmarkham8369
    @richardmarkham8369 6 หลายเดือนก่อน

    What is the limit on cable length for I2C to work? Is there a way for the servo board to be a DCC decoder/receiver?

    • @SPKPRR
      @SPKPRR  6 หลายเดือนก่อน +1

      Typical I2C length is 9-12 ft. There are range extenders (Adafruit for one) that claim 50-100ft, although I have not tried them yet. No way I know of to use servo board fott dcc decoder/receiver. It does not process the dcc signal.

  • @skeeterweazel
    @skeeterweazel 6 หลายเดือนก่อน

    Hello. I'm considering using DCC-EX to control turnouts on an outdoor layout that uses air valves to throw the turnouts. Can the software be used to basically provide an on/off signal?
    Thx.
    Marty

    • @SPKPRR
      @SPKPRR  6 หลายเดือนก่อน

      Yes. The SET(pin) sets a pin to high. The RESET(pin) sets the pin to low. You can assign available pins on the arduino or use pins from an i/o expansion board

    • @skeeterweazel
      @skeeterweazel 6 หลายเดือนก่อน

      Thx for reply.
      How do you "link" the pin in arduino to the cab software?
      In the myTurnouts.h folder would i do this:
      If this is the format:
      SERVO_TURNOUT(id, pin, active_angle, inactive_angle, profile[, "description"])
      Is this close to be correct:
      SERVO_TURNOUT(5, 12, HIGH, LOW, instant , "yard entrance")
      Thx.@@SPKPRR

  • @stevewelton9936
    @stevewelton9936 7 หลายเดือนก่อน

    Sorry for stupid question but ! You talk about open and closed angle, what is that relative to ? To me my mind says a angle can be up to 360 degrees, you suggested to start with open at 300 and closed at 450, just having a hard time reconciling those degrees to my limited knowledge, thanks in advance

    • @SPKPRR
      @SPKPRR  7 หลายเดือนก่อน +1

      Hi Steve. If I said Open and
      Closed in the video, I apologize, it is reference to Thrown or Closed position. If you think about a turnout, when it is set for a train to continue straight, this is considered the "Closed" position. IF the switch is set for the train to take the diverging route, this is the "Thrown" position, so the first two numbers in the servo definition refer to the position of the servo for the switch to be in the "Thrown" and "Closed" position. The angles set by the servo definition is not referring to a degree radius, rather a PWM position. A standard, positional servo like a SG90 servo has a 180 degree range of motion, not usually a full 360. This results in the PWM range of about 110 to 490. If you go to this link, scroll down about 3/4 of the way and look for the section on "Technical Discussion for Engineers" and read through that too. dcc-ex.com/reference/hardware/servo-module.html#gsc.tab=0
      The 300 and 450 are just sample numbers I used for the video, you will need to determine through trial and error what the range you will need for your setup. That is where the EXtoolbox comes in handy.

    • @stevewelton9936
      @stevewelton9936 7 หลายเดือนก่อน

      @SteveBegnaud thanks for the info, and reference, haven't wrapped my mind around pmw except to understand it's a waveform and that if you take one side off you have a form of dc, back to studying somemore.

  • @espen379
    @espen379 11 หลายเดือนก่อน

    Great video. What kind of servers did you use there?

    • @SPKPRR
      @SPKPRR  8 หลายเดือนก่อน

      Just some cheap sg90 servos I found on Amazon. Many different ones available. Next time I will look for a better quality, although hard to know until you get them.

  • @usahobbies9067
    @usahobbies9067 8 หลายเดือนก่อน

    I need the same thing but with PCF8574, 8 or 16 relay shield, and dual control switch machines. So need about 32 relays for 16 track switches. I would love led's and a separate push button control panel in addition to Android remote control. Thanks for any suggestions.

    • @SPKPRR
      @SPKPRR  8 หลายเดือนก่อน

      I have not looked into the PCF8574. It is i2c addressable, but I don't know how it addresses or controls attached devices. Maybe something to look at down the road

  • @bobbyboy1962
    @bobbyboy1962 5 หลายเดือนก่อน

    im getting this when i verify the new file with my servos , any idea

    • @SPKPRR
      @SPKPRR  5 หลายเดือนก่อน

      ???

    • @bobbyboy1962
      @bobbyboy1962 5 หลายเดือนก่อน

      @@SPKPRR sory, tried to paste an error with the message, i guess i cant do that on here. I followed your video on the servos, 20 in total but when i try to verify it gives me an error message of compilation error: RMFT.h: No such file or directory. Its in the DCCEX.h tab, line 20 to 22

    • @SPKPRR
      @SPKPRR  5 หลายเดือนก่อน

      @@bobbyboy1962 Bob, I have replied to you on the DCCEX facebook group. It looks like you need version 5.0. I have NOT found a good way to do advanced customizations through EX Installer, I think you still need IDE for this. Once you get 5.0 working, then try the servo_turnout commands. I'll keep watching to see if this works for you.

  • @stevewelton9936
    @stevewelton9936 7 หลายเดือนก่อน

    My 9685 is a shield piggy backed on my motor shield on my mega.