Smart Car Controller  1.0
Library to manage a two wheeled robotic vehicle (DC Motors)
Hardware Allocation Map

Hardware Functional Allocation for Arduino Nano

The library code is mostly independent of processor used, however the original target platform is an Arduino Nano. The pins listed here and defined in the SC_HardwareDefs.h header file are reserved (R) by the library. Spare pins are for use by any application Application (A) built on top ogf this library.

Pin Use Description
D0* R Hardware Serial Tx
D1* R Hardware Serial Rx
D2! R R Motor Encoder Pulse Interrupt
D3!~ R L Motor Encoder Pulse Interrupt
D4 R R Motor Controller InB1
D5~ R R Motor Controller InB2
D6~ R L Motor Controller InA1
D7 R L Motor Controller InA2
D8 A Spare
D9~ A/R Spare / R Motor Controller PWM (L29x type controller)
D10~ A/R Spare / L Motor Controller PWM (L29x type controller)
D11~* A Spare / Hardware SPI MOSI
D12* A Spare / Hardware SPI MISO
D13* A Spare / Hardware SPI SCK
A0 A Spare
A1 A Spare
A2 A Spare
A3 A Spare
A4* A Spare / Hardware I2C SDA
A5* A Spare / Hardware I2C SCL
A6 A Spare / Nano Analog I/O only
A7 A Spare / Nano Analog I/O only

(*) shared or comms bus pins, (~) hardware PWM pin, (!) external iRQ pin