Newbie needing help
Hello.
My name is Roberto and I just registered to make this help request. I'm completely new to Arduino, and with little experience with DCC. I've been following this thread with interest, but it seems I'm getting lost very easily.
I will start saying what I did until now:
1) studied the circuit reported in the beginning of the article
2) acquired all the components
3) Mounted the circuit on a breadboard in a led only configuration, connecting only F0 to F4
4)Downloaded the SW from the link in the page and copied the 2 directories NmraDCC and Softwareservo in the Arduino libraries directory
Here is where I get the first problem. My configuration should be contained in the dir examples/Decoder_17LED_1Function but in this directory there is another file named "DecoderNmraDcc_4.ino". If I try to open it in Arduino IDE it says is not possible and wants to put it in another directory. If I let it do it and compile, I get the following error during compilation:"exit status 1 redefinition of 'int tim_delay'" and it aborts. What is this?
I've tried opening other versions, but I get several errors about NmraDCC library not being correct.
I've also tried to compile the "AceesoryDecoder_17LED_1Function" (I'm using a PL2303 USB/TTL cable using Arduino IDE 1.6.10 on Win10 Home Edition), and after some failed attempts, I successfully loaded the SW into the Arduino Pro Mini. It seems like a hit and miss procedure though, not consistent, as sometimes I get error and some times I don't.
I then put the Arduino on the breadboard, connected the input to the tracks and fed the circuitry with a +5V power supply.
When I switch on, the 4 leds I´ve installed to monitor the function, all correctly cycle once.
I've tried to control the decoder with my NCE Powercab to see if i could switch the leds on and off separately, but if I use the accessories decoder function, after inserting the decoder address, the Powercab only lets me switch it on by pressing 1, or off by pressing 2.
Needless to say that it's not working.
As you may see, I've got several problems on several different stages.
To make things work, I suppose we must restart from the basics, and here is where Geoff can help me.
I need to have all the files you supplied in the zip file all checked by you in their working version. I've tried to download the updates posted in the comments but I get a file not found error.
I need to confirm that the latest circuit of this version (SMA12) is the one at the beginning of the article. I'm pretty confident it is, since the startup of the circuit works as expected, but it sdeems I cannot communicate with the decoder via tracks signals (don't know if it's something inherent to the decoder or to the powercab)
I need to know in what the "AceesoryDecoder_17LED_1Function" version differs from "Decoder_17LED_1Function", and if i can use the former to test the decoder or if the latter is mandatory.
This will help me to avoid macroscopic errors, and maybe some of the experienced people here can give some clues on how to proceed to make things work.
I know that I'm asking alot of things all at once, and please forgive me for this long message, but I would really like to come to an end (a happy one) with these issues because I think that this project has alot of potential.
Thank you very much in advance. Best Regards,
Roberto