I was thinking of building a CNC machine. But because of lack of fund i can only design. This crude design does the job.
There is a high heat dissipation from both the voltage regulators. So a big heat sink must be used. Otherwise there is a high probability of thermal runaway.
#define F_CPU 1000000
* Created: 8/27/2018 4:18:20 PM
* Author : abhay
DDRB = 0xff;
/* Replace with your application code */
PORTB = 0x09;
PORTB = 0x0c;
PORTB = 0x06;
PORTB = 0x03;