Source code in CodeBlock for Arduino and schematic in Proteus