Пікірлер
@onefast3gen
@onefast3gen 14 күн бұрын
Can you show how to do this with Kato turnouts?
@SPKPRR
@SPKPRR 13 күн бұрын
I don't use Kato turnout, I have actually looked at Kato instructions, but since I don't have any, I can't really address that. It looks possible, but for now I can't offer any help with that.
@onefast3gen
@onefast3gen 26 күн бұрын
I want to do this and you explained it very well. Only thing is a have Kato Turnouts.
@BillyTT120
@BillyTT120 Ай бұрын
Hi, really useful and as someone else said, a great breakdown and interpretation of the DCC EX docs.
@nicolasg.6232
@nicolasg.6232 2 ай бұрын
Stupid question but my PCA9685 has holes on the right side of the board. How did you plug in wires to extended to another?
@SPKPRR
@SPKPRR 2 ай бұрын
You can solder directly to the holes, you can add a pin header like on the left side, you can solder on screw terminals. Headers and screw terminals are available online from almost any electronics supply Co or even Amazon
@nicolasg.6232
@nicolasg.6232 2 ай бұрын
@@SPKPRR thank you ! Your videos are amazing
@fodi123
@fodi123 2 ай бұрын
Hi, do you have an idea how to control a frog juicer relay using the PCA9685 and DCC EX? It seems that the PCA can output high or low signals with no PWM, but I don't know how to pass this into DCC EX and an automation. Ideally it should have let's say low on the relay when the turnout is closed and high when thrown.
@SPKPRR
@SPKPRR 2 ай бұрын
If you are just using the PCA to trigger a relay, then yes you can. I prefer an I/O device like the MCP23017, but either can work. The first two PCA's are pre defined in DCC-EX, so all you need to do is trigger the correct pin in your AUTOMATION(). when you want to trigger the relay, use the SET(pin#) command. to "untrigger" the relay, use RESET(pin#), where (pin#) corresponds to the pin your juicer is connected to. Connecting to the PWM and GROUND pin, there is a built in resistor that limits current. You may want to use the V+ and PWM pin, with the NEG connected to PWM.
@fodi123
@fodi123 2 ай бұрын
@@SPKPRR Thanks, I'll try looking into it. The plan is to use some PCA's to move the servos and some more PCA pins with relays to change frog polarity. I'm trying to keep that in DCC EX itself, so there should not be any mishap (or with a much lower chance) than keeping the frog juicing on a separate device. I'll also check this IO board as well. Thanks
@andylamb563
@andylamb563 2 ай бұрын
Excellent series of videos, really interested in the momentary switch development for my own layout. I am developing a 3D printed enclosure and would be interested in your input/ideas
@SPKPRR
@SPKPRR 2 ай бұрын
I am WAY behind in getting new videos posted. I'm trying to get to some new stuff, but I don't know when it's gonna happen. I do have an earlier version of video with info on the momentary buttons. If you want to see that one, just skip forward to the sections on momentary switches. It is an older version that uses ide instead of EX-installer, but you may find it helpful. Wha are you wanting to accomplish with the enclosure?
@andylamb563
@andylamb563 2 ай бұрын
@@SPKPRR Thanks I have watched to older video and managed to work it out from there into Ex-installer. My idea is to incorporate a mega, breakout board (piggy back), motor shield, PCA9685's (4) all into one case, maybe an LCD display. I like things neat and tidy! not ideal for large layouts but in the UK we have small houses 🙂 The current 3D print enclosures on the EX website are either small or very complicated. I like things simple as well. Keep up the good work
@JasonYen0418
@JasonYen0418 2 ай бұрын
Thank you so much for the vedio, it is very useful for the people who would like to use 9685 to control both servo turnout together with led signal aspect. I appreciate that to looking forward to your new vedio. Thanks.
@JasonYen0418
@JasonYen0418 2 ай бұрын
And the main thing is that using this, the cost is also low.😊
@stevejames1688
@stevejames1688 2 ай бұрын
Many thanks for these very useful videos. I'm sure they have save me hours of head scratching. Keep them coming!
@robertlynnkim1
@robertlynnkim1 3 ай бұрын
Interesting. Just wondering if using the PCA9685 can be used as a stand alone with an Arduino. I have an Arduino for some turnouts and would like to have LEDs next to the turnouts using the PCA9685 board. Thanks, nice video.
@SPKPRR
@SPKPRR 3 ай бұрын
Yes you can. I do that exact thing, although I do it through DCC-EX, but you can code your Arduino alone to do it as well.
@robertlynnkim1
@robertlynnkim1 3 ай бұрын
@@SPKPRR Does that mean I can program the Arduino with the DCC-EX files?
@SPKPRR
@SPKPRR 3 ай бұрын
You could. If you are using DCC-EX, you can program the whole thing in on Arduino (Mega) to control your servos and LED's through the PCA9685. You could have a separate Arduino with DCC-EX installed, but you run into issues with your Command station communicating with the separate Arduino. I use one Arduino with my DCC-EX CS programmed to read the buttons from my turnout control panel and control the LED's and Servos. I have been really busy lately and haven't been able to get to my next video, which will deal with this exact topic. I hope to get to it in the next couple weeks, but no guarantee.
@robertlynnkim1
@robertlynnkim1 3 ай бұрын
@@SPKPRR Thanks for the info. I'll check back every so often. I may give it a shot to see if I can get it to work. I have made 3 servos, 3 push buttons and 6 LEDs work on an Arduino Pro Mini. Took me 3 or 4 months to get it to work. Found out the screw terminals were causing the problem. So I hard wired most of it to my pc board. Haven't installed yet on my layout but it works great.
@tonyclixby
@tonyclixby 4 ай бұрын
Thanks for your video. I will order the pcb today. Please can you tell me whether to order 3v or 5v led lights. Or can I use either/both?
@SPKPRR
@SPKPRR 4 ай бұрын
Either 3mm or 5mm will work, or a mixture of both.
@averageguy7136
@averageguy7136 5 ай бұрын
Great video. Thank you for making it. One big question, what are you using for block detection? I've been working on an Arduino based 40 signal/32 turnout/16 block ABS system for over a year now and I'm using 74HC595 shift registers. I want to DIY my own block detection, but every solution I've tried so far has failed.
@SPKPRR
@SPKPRR 5 ай бұрын
I am using an 8channel(zone) block detection kit from the Model Electronics Railroad Group. merg.org.uk/ It is a UK based group. Once you are a member (about $36/year us) there are quite a few kits you can order. You will need to assemble them (Solder parts to a pcb board). I have done multiple kits, the instructions are clear and easy to follow. Beside the ability to order these kits from them, they publish a quarterly magazine that has lots of good articles on members doing some neat things with electronics. Lots of Arduino based stuff. also lots of online articles and info available. definitely worth the cost of membership. I think the 8 ch block detector was about $35 shipped to the US. Compare that to single and 2 channel options available. These are designed to work with DCC, wont work on DC signal.
@redwoodcityintheuknscalera7179
@redwoodcityintheuknscalera7179 5 ай бұрын
my signals are common anode 3 aspect anyone else?
@evovanner
@evovanner 5 ай бұрын
Can you do all this on the UNO
@SPKPRR
@SPKPRR 5 ай бұрын
The UNO doesn't have much memory. You definitely won't be able to do the WiFi connection, you would have to connect through jmri. Even then, there is very little memory for automation and you would not be able to add much. That's why the Mega is the choice.
@janmarshall1367
@janmarshall1367 6 ай бұрын
It has been a good day (almost). The programming needed to control led's using PCA9685's finally came together (almost) DCC-EX compiles and loads with no problems. When I press the on button the LED on the PCA9685 pin 100 and 101 just flashes. The same when I press the off button (in Engine Driver). Any Ideas where I screwed up??
@SPKPRR
@SPKPRR 6 ай бұрын
Flashes on and off once or keeps flashing. Are you adding the led definition or just using full bright? Hard to say without knowing wiring setup or seeing you code
@markopostable
@markopostable 6 ай бұрын
Hi Steven, I also want to applaud you on, again another a great video. I love it how you cover topics other channels don’t. Because of this in-depth video I now know why I could not find the myHal file. 😊 Keep up the good work and I’m looking out for the next one!
@johnmarshall2660
@johnmarshall2660 6 ай бұрын
Your video has help me a lot as when I ask questions on discord I just get technical info which doesnt explain how to configure ... I wish you would do a similat video in configuring the MCP23017 which I need to use at least 4 chips on a board I had made so I have 48 out of 64 inputs for Block detection feeding back to the DCCEX Command station ... Regards John
@SPKPRR
@SPKPRR 6 ай бұрын
There will be a video coming up on using mcp23017 expanders, but I can't promise when.
@johnmarshall2660
@johnmarshall2660 4 ай бұрын
@@SPKPRRI just watched you video again and I thank you for response and looking forward to seeing an MCP23017 configuration, I have 7 PCB setup with Diode Voltage Drop circuits giving me 7 x 6 channel so 42 inputs and a logic outputs to the MCP23017 board I designed and got a PCB made ... ... Regards John
@johnmarshall2660
@johnmarshall2660 8 күн бұрын
I just whatched your video again and this time I could grasp more how you installed the Turnouts etc, also I am still building my layout as wondered if I could use the same concept to add the MCP23017 inputs using HAL , I will probably have more than 8 devices but DCCEX on Discord said I could use the TCA9548A module to add more I2C devices ... Regards John
@SuperSpuddo
@SuperSpuddo 6 ай бұрын
Great video clearly explained
@paulharvey7349
@paulharvey7349 6 ай бұрын
Love the video, but I'm really New to this, I've built command station which will control my trains. I'm wanting to use one 9685, but can't figure how to do. Wiring is correct. I'm using WiFi and Engine driver. Any help would be appreciated.
@SPKPRR
@SPKPRR 6 ай бұрын
Not enough info to offer any advice. Are you trying to control servo turnouts? Follow the methods in this video, it tells you how to set it up. Using only one PCA9685 you only need to define the turnouts. What is the address of your 9685?
@paulharvey7349
@paulharvey7349 6 ай бұрын
Managed to get it working, typed HAL(PCA9685,100,16,0x40) in myHaldevices.h and SERVO_TURNOUTS(100,100,300,170,slow, "Turnout_1") in myTurnouts. My Automation is as yours is. Looking forward to watching your future videos.
@paulharvey7349
@paulharvey7349 6 ай бұрын
Managed to get one point working on 9658, it is as out of box. But added other points to it, all new ones operates the first point setup.
@AlwaysCensored-xp1be
@AlwaysCensored-xp1be 6 ай бұрын
I was wondering about these chips for LED lighting effect for street gas light, steam era.
@SPKPRR
@SPKPRR 6 ай бұрын
I show an example of how to flicker an LED to simulate a flame using FADE() and DELAY().
@SuperSpuddo
@SuperSpuddo 6 ай бұрын
Great video. All explained clearly. Very keen to see the next video showing switches and push buttons. Any idea when that may be coming.
@peterubels7752
@peterubels7752 6 ай бұрын
Great video, super explained. Can't want for a video with sensors combined with the mcp23017 and activating turnouts. I can't get it working, maybe a challenge for you? Keep up the good work.
@SPKPRR
@SPKPRR 6 ай бұрын
In the planning stages
@peterubels7752
@peterubels7752 4 ай бұрын
​I found the solution, to less amps on the power supply. I replaced it and know it works fine. My next project is the DFPlayer mini. I can't get it to conmect on DCC-EX 5.0.
@aramsay4251
@aramsay4251 6 ай бұрын
This video is great! Thank you so much for not only showing the what but explaining the why. It makes it easier for me to take it and customize to my situation without breaking something inadvertently! I'm still in the middle of wiring everything up so this was really timely as well!
@BriansModelTrains
@BriansModelTrains 6 ай бұрын
I really appreciate this video. With the backup files it makes it alot easier to upgrade versions of DCC-EX. My automation and config files have alot of extras defined.
@kennethoriel7463
@kennethoriel7463 6 ай бұрын
Really good description, thanks for putting these tutorials together. I'm looking forward to your tutorial on using an I/O expander.
@waynemenard6229
@waynemenard6229 6 ай бұрын
Looking forward to block detection! Keep up the good work. These have been very helpful.
@prav1n73
@prav1n73 6 ай бұрын
You videos are awesome and very informative and easy to understand. It is helping build my layout and tweak/improve things around. Looking forward for many more. 👍
@user-se2kq6en5p
@user-se2kq6en5p 6 ай бұрын
Hi! Your previous dcc ex stuff was amazing and helped me start with it. The best I have seen on KZbin in describing. Do you have any social media like IG?
@SPKPRR
@SPKPRR 6 ай бұрын
I do not have other social media. I am on Facebook, and a member of the DCC-EX page, but I don't generally post to my own timeline, just as part of the DCC-EX group.
@robbhalverson7725
@robbhalverson7725 6 ай бұрын
You have really helped me out with replacing my digitrax with dccex+. Many thanks and cant wait for more!
@KronicleProductions
@KronicleProductions 7 ай бұрын
When you have a chance, Can you show how to add a green light on the other side of the button to show when the servo is in the other state. I want to add the buttons and two LED's for each to a control panel. Ultimately I will have 16 servos, 16 red LED's and 16 green LED's on the control panel. This would be so cool to be able to control my layout through the control and/or through JRMI. Thanks!!
@SPKPRR
@SPKPRR 7 ай бұрын
To add the green LED, just duplicate the SET(x) command, but have it set when you CLOSE the turnout, and RESET the red LED, i.e. THROW(turnout_address) RESET(green_LED_address) SET(red_LED_address) and CLOSE((turnout_address) RESET(red_LED_address) SET(green_LED_address)
@scentgrasslakerailway
@scentgrasslakerailway 7 ай бұрын
Never worry about the length. More information always outweighs a brief overview. Many of us are novices coming to your channel to learn about how this is accomplished. Whenever you include a piece of information it is likely important as there are many of us who will learn much from its inclusion.
@scentgrasslakerailway
@scentgrasslakerailway 7 ай бұрын
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 7 ай бұрын
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.
@prav1n73
@prav1n73 7 ай бұрын
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 7 ай бұрын
The PCA9865 probably won't work to fire the relays, but a MCP23017 i/o extender may work, depending on the relays.
@prav1n73
@prav1n73 6 ай бұрын
@@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.
@robbhalverson7725
@robbhalverson7725 7 ай бұрын
Cant say thanks enough. Your videos are a great help to me. I am in the process of setting up my servo controlled turnouts with help from your videos. May I ask waht type of sensors you are using to locate your locomotives?
@SPKPRR
@SPKPRR 7 ай бұрын
I am using a kit from the Model Electronic Railway Group (MERG). it is a UK based group of really smart people who have designed multiple kits that can be used in DCC systems. You must be a member to order the kits, but I think annual membership is ABOUT $35 US. This gets you 4 quarterly magazines with great articles, tons of technical bulletins, knowledge base as well as access to the kit locker. The 8 channel block detection circuit is about $35 shipped to the US, but it is a kit and must be soldered.
@skeeterweazel
@skeeterweazel 7 ай бұрын
Can you tell us where you got that header board? That looks handy. Thx.
@SPKPRR
@SPKPRR 7 ай бұрын
It is a header board I created in Kicad and produced by JLCPCB.
@johnmarshall2660
@johnmarshall2660 7 ай бұрын
Hi, I have been asking this question on various platforms, Discord, Facebook and MERG and no one has been able to tell me how to use the PCA9685 using myAutomation in DCCEX ... You answered my questions in 5 minutes, I thank you so much for this video ... Now ive just got to find the same for MCP23017 I want to use with Block detection ,,, Many thanks a Great Video ... Refards John
@SPKPRR
@SPKPRR 7 ай бұрын
I do plan to do a video on I/O expanders this winter/spring that should apply to the MCP expander.
@mikep4199
@mikep4199 7 ай бұрын
Hello Steven, thank you for this educational video! Any chance you have worked with JMRI and how to address the LED from within there? I tried adding, in this case it is on pin 101, and I wasn't able to control. Thank you.
@SPKPRR
@SPKPRR 7 ай бұрын
I have not dealt with JMRI much. I have connected through it, but mostly for Decoder Pro. DCCEX does so much, I haven't found the need for JMRI, including rosters, automations, routes, and more.
@mikep4199
@mikep4199 7 ай бұрын
@@SPKPRR Thanks, I am just starting out and JMRI was recommended but it sounds like I should dig deeper into DCC-EX instead.
@bobbyboy1962
@bobbyboy1962 7 ай бұрын
im getting this when i verify the new file with my servos , any idea
@SPKPRR
@SPKPRR 7 ай бұрын
???
@bobbyboy1962
@bobbyboy1962 7 ай бұрын
@@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 7 ай бұрын
@@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.
@bobbyboy1962
@bobbyboy1962 7 ай бұрын
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 7 ай бұрын
Well, since different servos have different pulse durations, it's hard to give exact numbers, but typically in the range of 105-495
@robbhalverson7725
@robbhalverson7725 7 ай бұрын
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!
@joseluistrujillo2087
@joseluistrujillo2087 7 ай бұрын
Hola, me podrías proporcionar el comando que usas para poder usarlo en mi maqueta de trenes
@SPKPRR
@SPKPRR 7 ай бұрын
EXAMPLES of the code are in the video. You will need to write the code specific to your needs and can use the examples given as a guide
@ernsta.vahlbruch6191
@ernsta.vahlbruch6191 7 ай бұрын
Fabulous. You just added a whole new dimension to my plans. Merry Christmas!
@robbhalverson7725
@robbhalverson7725 7 ай бұрын
Your videos are well put together. These come at the perfect time as I have just set up my Dcc Ex for the first time and need servo and led control. Great work!
@Terryhd1
@Terryhd1 7 ай бұрын
I appreciate your time in making this video. It is very informative and helpful!!
@mattlawson7779
@mattlawson7779 7 ай бұрын
I am wondering, how many digits can be used for the alias turnout ? I think it would simplify things, if turnout 01, could be alias turnout 1001. You could have 999 turnouts, and match names to 1999
@SPKPRR
@SPKPRR 7 ай бұрын
According to the DCCEX team, route, sequence and automations can be anywhere in the range of 1- 32767
@SPKPRR
@SPKPRR 7 ай бұрын
Turnouts should be in that range too
@rickhunt3183
@rickhunt3183 7 ай бұрын
I really don't know what to think about the application of a 9685 to control leds. For controlling a servo...yes. I'd consider looking at the 74hc595 for simple led control. You might like using the esp32 over the Arduino. Having wifi and bluetooth built in opens up a whole new world, and they are really cheap...party on..
@SPKPRR
@SPKPRR 7 ай бұрын
There are multiple ways to control LED'S with DCCEX, including io expanders, direct off of the Mega, PCA9685, and others. This video is just to show examples of how it can be used. I choose the Mega because of the number of i/o pins available without adding extra hardware, but yes the edp32 is an option. Thanks for looking.
@strenter
@strenter 7 ай бұрын
First 40 seconds I wondered whether I should mention a better sound setup AND turning the modell railway off in the background. Now at 0:40 I am glad I waited. But with an intro like that you can lose people. Luckily I am patiant. 😅 I already have worked with this thing for LEDs and was curious to learn more about this, but with such a bad sound quality as in the intro I would never reach the 5 minutes mark.
@ChrisPackham1
@ChrisPackham1 7 ай бұрын
This is a very helpful video, thank you for explaining the code and hardware so well. I have a question, in (SEQUENCE 02) you use IFTHROWN to test the position of the turnout, the servos do not return any positional data so how does DCC EX know where the turnout is when you initially power up the layout. I'd like to attach a small relay to switch a turnout's frog polarity when it is thrown or closed so it's important to know the servos position at power up to avoid a short circuit. Thanks again for the video, I look forward to the next one.
@SPKPRR
@SPKPRR 7 ай бұрын
DCC-EX defaults to the closed position of all servos on startup. You can add some Sequences or macros to run at startup if you want certain turnouts in the thrown position. To test, put a turnout in the thrown position then reboot your DCCEX. your turnout SHOULD close on startup. Anytime you throw or close a turnout. Dccex keeps track of this.
@stephenwadsworth6972
@stephenwadsworth6972 8 ай бұрын
Thanks, Steve, another great video explanation, and very neat use of just two sensors to control a 3-aspect signal! I guess the delay from exiting the section to the signal going green is caused by some debounce delay in your block detection code, and this is also done in the DCC-EX code somewhere? Does DCC-EX change the PCA9685 PCM frequency depending on whether you are driving a servo or an LED pin? I thought the PCA9685 frequency was recommended as 50Hz for servos and 1000Hz for LED's but the flicker isn't there except when picked up by the video camera. The Firelight flicker seems very effective too. Looking forward to the next one in your series!
@SPKPRR
@SPKPRR 7 ай бұрын
When using the AFTER() command, there is a .5 second delay built into DCC-EX. so, by the time the train exits the sector, the block detector stops sensing the load, DCC-EX reads the sensor, delays .5 second and sends the command to turn the signal, we end up with the delay. It actually is good timing, I like the delay. From what I can find, the LED's are being driven at the same 50Hz. I did read somewhere you can set the frequency for 1000Hz for the LED's, but I forgot where and exactly what the command is. But even at 50Hz, that is too fast to be noticeable to the naked eye. Think about standard lighting, which operates at 60Hz here in the US, and I THINK 50 Hz in Europe. You don't see any flickering at that frequency. That probably is why you see it in the video, there the frame rate makes a difference and makes it noticeable.
@zaprodk
@zaprodk 8 ай бұрын
Eye-Squared-Cee :)
@user-jj3rf4gy7x
@user-jj3rf4gy7x 8 ай бұрын
Los sensores se identifican como los descios con servos o solo con conectarlos a uno de los pines digitales se reconocen automaticamente??
@SPKPRR
@SPKPRR 8 ай бұрын
The pins on Arduino are set to be input signals. The command AT(pin#) Automatically watches the pin# for a signal (HIGH or LOW). Commands like ONTHROW(turnout) or IFTHROWN(turnout) use "Counters" set up by DCCEX to monitor the state of a turnout, not the status of a pin.