I'm not sure an IC socket is such a good idea, but standard pin strip would be fine and my Pro Mini came with the pins.I'm curious as to why not?
You could put a processor/h-bridge in the loco, and talk to it with radio or track-signalling, with +12 permanently on the track...You could read the thread and find out what was discussed pages ago, which was done.
or hasn't that been done? ...
Thanks, again.now to make things even more accurate why not share the crystal oscillator
I don't think that is the answer to my question but I figured out the answer just before I fell asleep - setting the TCNTx register to NNNN effectively restarts the counter at that value - talk about not seeing the obvious
At the moment I am thinking of using the "master" Arduino to send the sync pulse. The Master won't be generating any PWM pulses so the problem of synchronizing the others with its pulses does not arise.
The ATMega328 has a full-swing oscillator, with rail-to-rail swing on the XTAL2 output. Buffer it with a 74HC1G14 Schmitt-trigger, and you have a clock you can distribute to the other controllers. The Schmitt-trigger has an input capacitance of typically 1.5 pF, so you may want to subtract that from the oscillator's load capacitance.sync once and forget
This clock can drive the XTAL1 inputs of the other devices directly. I would suggest to keep connections as short as possible, because they will cause a lot of radiation. You can limit that by using an RC filter at the Schmitt-trigger's output. A 100ΩΩ
resistor plus a 15 pF capacitor give you a cutoff frequency of 100 MHz.
Don't forget to program the CKSEL fuses on the other devices to "0000".
spero di essere comunque il benvenuto !Naturalmente, ci mancherebbe