Microcontroller¶
Number of Pins¶
Calculating number of pins required
Pin | Number of Pins |
---|---|
EN | 1 |
STEP, DIR | 6 |
I2C | 2 |
Tx, Rx | 2 |
Total | 11 |
The ATTiny1614 has the exact number of pins I need:
Pin | PinNumber |
---|---|
EN | PA1 |
MOTOR1 | PA2, PA3 |
MOTOR2 | PA4, PA5 |
MOTOR3 | PA6, PA7 |
I2C | PB0, PB1 |
Tx, Rx | PB2, PB3 |
However, this means I need to use a separate microcontroller should I need to use another sensor.
Suppose I want to use Sonar sensors, I will need another 6 Pins, and these will be relegated to another microcontroller.
Designing the Microcontroller¶
With those design considerations in mind, I fabricated a board. The milling settings are the same as described in week4.
Some important parameters for generating traces are as follows:
Parameter | Value |
---|---|
tool diameter | 0.4mm |
cut depth | 0.05mm |
max cut depth | 0.05mm |
offset | 3 |
spindle speed | 12000RPM (roughly at 2 on Kress tool on Stepcraft) |
Meanwhile, parameters for generating outline are as follows:
Parameter | Value |
---|---|
tool diameter | 0.8mm |
cut depth | 0.35mm |
max cut depth | 1.68mm |
offset | 1 |
spindle speed | 12000RPM (roughly at 2 on Kress tool on Stepcraft) |
The connection to the networking module ports double up to match with the ports on the FTDI board I made in Electronics Production week
Results¶
And that is all for the main microcontroller!
Files¶
Last update:
November 23, 2022