|
Post by sandovr on Jan 17, 2021 21:15:56 GMT
Hi, I can't get my accessory decoder to work with the LCDCC controller. The decoder is this one (https://model-railroad-hobbyist.com/node/24316)and works with factory controllers and another one made by me with bluetooth and also with DCC ++. What could be the reason? Can you also give more information about the "Arduino DCC packet decoder" file?
|
|
|
Post by LC-DCC Designer on Jan 18, 2021 9:57:46 GMT
The DCC packet decoder is based on the Arduino NMRADcc library. It connects to the tracks and decodes the packet information on the tracks (an opto-isolator circuit is required). The decoder packets are displayed via the Arduino serial interface to a terminal. It also detects packet CRC errors and other problems. I will look at the decoder documentation and post later.
|
|
|
Post by LC-DCC Designer on Jan 18, 2021 10:06:17 GMT
What configuration do you have the decoder in ?
|
|
|
Post by LC-DCC Designer on Jan 20, 2021 13:49:47 GMT
Hi, thanks for the information, you are using the AccDec_10Sweeping_7LED_7Ftn.ino design. This uses 11 bit accessory addresses where as LC-DCC uses 9 bit addresses. You need to compensate for this by using the high 2 bits from the LC-DCC accessory value (0..7) as the bottom two bits from the address and then use the accessory address (1..512) as the top 9 bits of the address. I will create some examples.
|
|