Sloader95
Apologies in going around the houses for this, I understood how i wanted it, but no idea what i needed and am a complete novice to electronics!

All of the below is for full automation without a computer, with the ability of controlling manually with a DCC controller

I've set up a test of "proof of concept" using LMiD's, with their logic outputs going into an arduino mega (again, steep learning curve in coding) as use as a PLC, which then outputs to the corresponding ESP transmitter board to thow a turn out. This works well, although haven't tested multiple switches simultaneously yet.

However, the next phase of this is to trigger ABC board releases using the remote. 

My current plan is to split the logic into another arduino mega, then have the outputs going into ESP transmitters which the remote of ABC boards will be switched by an accessory decoder. 

So from DCC concepts this, I'm looking at:

22 x LMiD's
1 x esp receiver for the layout
4 x esp transmitters for turns outs 
8 x esp transmitters for ABC remotes
3 x ADS8x stationary decoder

At the moment I don't need the wireless feature of the ESP, although will be making a remote switching panel, so would double the ESP transmitters plus an additional 8 for LMiD feedback and receiver.


Is this the sensible way to go about it?

Ideally I'd look to use a AEU with the sniffer, but I believe they switch on volt free rather than the 5v input the ESP can use and are L/R rather than on/off. Happy to be proved wrong!


Many thanks,

Sam

Reply 0 0
thedorsetbear

Hi, I’m playing around in a related area.

The AEU is much more useful if you think of it as 24 input triggers, each giving an accessory on or off DCC message via whichever method suits you (NCE for me): the LR terminology is  convenient to work with, but is not a limiting factor.
For example, a ‘left’ input sends an ‘on’ message to anything programmed to the right channel, and will send another one every time it is triggered- there is no sense of ‘toggle’ involved- so it could be used to trigger a sound module sound such as a guards whistle. The corresponding R input on the AEU could trigger a different sound independently.

I’m using Raspberry Pi Picos rather than an Arduino. Smaller, a lot cheaper, and so much easier/quicker to program in MicroPython and even easier with CircuitPython.

I would be very interested to know from Richard, or whoever, if the inputs on an AEU (or other kit) is safe to connect directly to an Arduino or Pico? Is it protected by an optocoupler or similar?


FYI my project is a signal box style control panel with Cobalt S levers in conjunction with a locking system based on a Pico. I’ve used GPIO extenders, on i2c, to increase GPIOs to 48. Perversely I’ve stuck with relays to interrupt the control signal the AEU, so that it works perfectly without locking when needed, and because the sound of a bank of relays firing is much like locking bars moving. Now working on a separate module to simulate block working, indicators, bell code exchanges, and time delays for the train to pass through the section. I’m still contemplating if/how this should be coupled to the lever frame.

Reply 0 0
Reply