N HO Smart Device Controller for N & HO Gauge Layouts