I found out the hard way the some pins are not quite identical to others. I thought I had all the information I needed but found out during testing that some pins are to be avoided for certain operations. I hope it is ok to ask for advice here.
For a project I will be using a nano, to be mounted on a dedicated pcb.
I was using D13 for the TSOP4838 (works fine on an uno) but it does not work on the nano. Changing the software definition (and connection) to D3 fixed the problem.
I am using D4, D5, D6 for 74HC595 #1, D7, D8, D9 for 74HC595 #2 and D10, D11, D12 for 74HC595 #3. For some reason bit 1 of the 74HC595 #3 will not work (pcb is tested and the trace is correct). Perhaps I should have avoided D10, D11 or D12?
The best solution is probably to design a new pcb. In order to do that I need to make sure I use pins in the right way. The required pins are:
:
9 for 3 x 74HC595's (they cannot be linked sequentially but have to be under individual control)
2 for I2C
1 for TSOP4838 IR decoder
2 for relay switching
4 for 2 x rotary encoder (A and B)
.
Note that all the 2 relay pins and the 74HC595 output are connected to ULN2803's or discrete transistors to perform the actual relay switching.
Your help is appreciated.