DCC-EX / EX-FastClock

A fast clock for your EX-CommandStation
GNU General Public License v3.0
3 stars 0 forks source link

EX-FastClock #4

Open bilekfe opened 7 months ago

bilekfe commented 7 months ago

there is no EX-Fast_Clock.ino file to download.

ColinHMurdoch commented 7 months ago

Use the Arduino IDE branch instead of main.

bilekfe commented 7 months ago

thank you i will try to figure that out

bilekfe commented 7 months ago

I have 6' by 12' layout with 8 or more DCC Units that will be running at the same time. These units are passenger trains, Freight trains, Trams/ Street cars and YES a Helicopter. I'm currently 2 Command stations With loconet and putting together DCC-EX Command station With a EX-FastClock. On top of that there you're over 35 Anduino for Is animation. Every building gets one, 1 MEG for the traffic lights which the trams will follows and all the lights ( sun Set/Rise, Sodium vapor, LED, Neon and so on). I see the EX command station requesting time.

The question is can I have EX-FastClock be the master on I2C and DCC-EX Command Station, EX-RAIL be a slave?

ColinHMurdoch commented 7 months ago

The I2C version of the FastClock is driven by a HAL driver. The HAL polls all I2C devices periodically to get pin and sensor status information and where an I2C FastClock is defined it polls that periodically for the time. I don’t believe that the HAL can act as both a master and a slave. Even if that was possible then a new HAL driver would be required. You switch to using a serial FastClock. In this scenario the FastClock sends serial data to the CS parser when the time changes - in this way the clock is being a Master and the CS is responding on receipt of time - much the same as it responds to a throttle command.

bilekfe commented 7 months ago

Thank you Colin for your quick response. I guess I have a little More work.

I have the Fast clock running and from what I can see so far. I like this better than the loconet FastClock.

Thank you again for your time. Sincerely, Frank.