Hi, thank you! Actually I did more work on protecting the TTLs at startup in a later video, there's a GitHub link in the description too. Link below, if you have any questions please ask! ua-cam.com/video/x4oYiaWR9-A/v-deo.html
Hi, could you completre the sketch line "bus.begin(9600, " this is all the code I have. I have been following your progress with intent as I am trying to establish the same kind of setup. I havent been able to get the frog relays to switch without using a MOSFET. The output pins do not supply enough current. Keep up the excellent work
Hi John, thank you for the kind words! Serial.begin(9600, SERIAL_8N2); Some good documentation on the two custom libraries here github.com/madleech/ArduinoCMRI and here github.com/madleech/Auto485 - he has some good examples of using the libraries in ways I didn't know were possible and I learnt one or two things, hopefully they'll be helpful for you too. I use the 8 relay boards and they have a separate power supply header under a jumper on one corner of the board. Although I don't actually use it as I actually have them connected to the PCA9685 board (I have 8 servos and 8 relays per 16 port board). The PCA9686 has enough power to run it. I talked about it in this video (shameful plug!) ua-cam.com/video/bpWt6p9PFpw/v-deo.html hopefully it'll take you to the right time in the video. Last of all I have examples of the code I'm writing here github.com/Vintage80sModelRailway/Vintage80sModelRailway-ArduinoMultiplePWMBoardControl - it's about to get another update for smooth startup, I'll probably make a video about that shortly. Good luck with your layout!
@@WirenwoodModelRailway Thank you , that was a lot of help. I will look at your Microswitches Vid. For some reason I cant get even the relay that comes in the Adruino kit to fire, I need to check it against a different board. I look forward to your next vid.
@@WirenwoodModelRailway I finally got the PCA9685 to fire the relays. I had tried that method originally but it did not work, the reason I since discovered, was because I had given it a value of 495 instead of 496. I tested the voltage coming from the PCA Signal terminals, and it is significantly less than 5v. However, it can deliver more than enough current to drive a relay, whereas the Arduino pins cant really. Anyway, thanks to you I persevered. Rob of Little Wicket recommends the madleech libraries. It was through originally watching his videos that gave me the inspiration to go down this route. You guys that make these videos make a huge difference to the modelling community, so thank you.
Very interesting video - would you kindly let me know the code you added to protect the TTLs?
Hi, thank you! Actually I did more work on protecting the TTLs at startup in a later video, there's a GitHub link in the description too. Link below, if you have any questions please ask! ua-cam.com/video/x4oYiaWR9-A/v-deo.html
Hi, could you completre the sketch line "bus.begin(9600, " this is all the code I have. I have been following your progress with intent as I am trying to establish the same kind of setup. I havent been able to get the frog relays to switch without using a MOSFET. The output pins do not supply enough current. Keep up the excellent work
Hi John, thank you for the kind words!
Serial.begin(9600, SERIAL_8N2);
Some good documentation on the two custom libraries here github.com/madleech/ArduinoCMRI and here github.com/madleech/Auto485 - he has some good examples of using the libraries in ways I didn't know were possible and I learnt one or two things, hopefully they'll be helpful for you too.
I use the 8 relay boards and they have a separate power supply header under a jumper on one corner of the board. Although I don't actually use it as I actually have them connected to the PCA9685 board (I have 8 servos and 8 relays per 16 port board). The PCA9686 has enough power to run it. I talked about it in this video (shameful plug!) ua-cam.com/video/bpWt6p9PFpw/v-deo.html hopefully it'll take you to the right time in the video.
Last of all I have examples of the code I'm writing here github.com/Vintage80sModelRailway/Vintage80sModelRailway-ArduinoMultiplePWMBoardControl - it's about to get another update for smooth startup, I'll probably make a video about that shortly.
Good luck with your layout!
@@WirenwoodModelRailway Thank you , that was a lot of help. I will look at your Microswitches Vid. For some reason I cant get even the relay that comes in the Adruino kit to fire, I need to check it against a different board. I look forward to your next vid.
@@WirenwoodModelRailway I finally got the PCA9685 to fire the relays. I had tried that method originally but it did not work, the reason I since discovered, was because I had given it a value of 495 instead of 496. I tested the voltage coming from the PCA Signal terminals, and it is significantly less than 5v. However, it can deliver more than enough current to drive a relay, whereas the Arduino pins cant really. Anyway, thanks to you I persevered. Rob of Little Wicket recommends the madleech libraries. It was through originally watching his videos that gave me the inspiration to go down this route. You guys that make these videos make a huge difference to the modelling community, so thank you.
@@johnworby5130 Thank you, that's very kind. Just checking - you do mean 4096 rather than 496, right?!
I must admit I gave up with those units and swapped to a different version which seems to work a lot better.
I gave up on RS485 in the end and switched to Ethernet/wifi and MQTT. Regards, Chris
I have been testing out using can bus to see how that would work out on a test plank.😀@@WirenwoodModelRailway
good vid on layout