The latest DCC-EX 4.0 release has the ability to accept serial throttle input on all 4 Serial ports on an Arduino Mega by adding a single line for...
This copied from our Discord server: Bear in mind each train is likely to need different throttle speed settings and may be facing backwards or...
Thanks for putting me right on this... so I will put the baseline stuff in... actually simplifying the code even more in the process! I have...
I have updated my CVReader https://github.com/Asbelos/CVreader to include diagnostic output of the ack pulse detection. This shows max= highest...
Many thanks for all the info.... here is how I see handling it. You can check the code in my repo https://github.com/Asbelos/CVreader Its pretty...
... forget what I just typed...
Hmmm... I wonder if the motor boards will read a current when the brake is on?
Oh and by the way... the classic DCC++ code delays by looping while(nextReg!=NULL) and by doing thousands of current sense operations.... its all...
Clearly I have some more reading to do... but I'm already doing 7 things at once and my wife is starting to get antsy ...LOL
This program isn't actually event driven, except for in the interrupt routines where there are no delays or blocking loops. The delays are really...
I certainly couldn't interfere with the main timer because it's driving both tracks. And... I'm really confused now.... , Why would I want to...
Awesome of you to take a look... I'll try and make sense of the timings with respect to my single 58uS regular interrupt.
I have added the railcom cutout to my waveform generator in what I think is a neat (maybe even elegant ;-)) way. Please see my repo...
Thanks Quax and David... Ok I,ll do that. ( and resolder my cut brake jumpers on my shield! ) I had assumed that the current loop was through the...
That code appears to be using a brake pin to do the cutout. As I understand it this will cut the power BUT it will also short the tracks together...
I have been experimenting with a test program to demonstrate proof of concept of my waveform generator and to examine the ACK issues which I...
Hi David, Yes we are to a certain extent going down the same lines... but have attacked different areas... so there is plenty of room for...
You can save much more memory by changing sscanf(input,"some format string", values....) calls to sscanf_P(input, F("some format...
If you have a parser that can call a DCC api, then I suggest you take a look at using my API. If I get time this evening (AKA wife permitting)...
Do you mean speed reminders on the main track? or lack of idles?