Week 17- Machine design

Overview

For this week we have two assignments:

  1. Group assignment
  2. - Design a machine that includes mechanism + actuation + automation

    - Build the mechanical parts and operate it manuall

    - Actuate and automate your machine.

  3. Individual assignment
  4. - Document your individual contribution.

Have you?

Documented the machine building process to the group page.

Documented your individual contribution to this project on your own website.

Linked to the group page from your individual page as well as from group page to your individual pages.


The Process

This week is about how to manage to work as a part of a team and master the skills needed to collaborate with others. So we choose to have a little fun, yes we still in the panademic version of the academy but this is our last assignment so lets try to take it easy and make something happy =)

At the beginning we have a lot of ideas, but we decided to create an Egg Plotter, based on arduino, 2 stepper and 1 servo motors. In this page I will ONLY document my individual contributions within the team to create the machine, but the overall view about the machine and the tasks performed can be found in Our Super 2 Days Assignment.

the video and concept behind our idea.

My contribution

My contribution was in in the automation phase and in the integration part, in which I was responsible for:


The Steps:

1) Motor drive specifications and system analysis

Specifications (Electrical)

Specifications (Mechanical)


2) Block Design
Block design
3) Circuit Design

your number one friend through this step is the datasheet. so let's have a quick tour in A4982 datasheet

A4982 Specifications
  • output drive up to 35 V and ±2 A
  • 3.3 and 5 V compatible logic supply
  • Thermal shutdown circuitry
  • No smoke no fire (NSNF) compliance

  • Circuit Components
  • 1* A4982
  • 2* 0.22uf ceramic capacitors C1,C5
  • 2* .1uf ceramic capacitors C3,C4
  • 1* 100uf electrolight capacitor C2
  • 1* 5kohm resistor
  • 1* 100kohm resistor Rs1=R5
  • 1* 33.3kohm resistor Rs2=R4
  • 1* 25kohm resistor Rosc
  • 2* 8 Male-pinheader
  • A4982-Datasheet
    circuit design from datasheet
    A4982-Datasheet
    Application Layout from datasheet

    4) Schematic Design using Kicad

    Download Fab-library:

    you can find a fab-library with all the inventory component Here. download it then create a folder wherever you want for kicad folder to be kept.

    Responsive image
    open Eeschema go to Preferences-> Manage symbol libraries

    I've notice that the main component of the circuit A4982 is missing from fab Fab-library
    so I download digikey-kicad-library and following the same steps, yet I face tham same issue so I will need to deisgn the symbol library from scratch.

    Responsive image
    Choose add existing libraries to table. then navigate to your folder and choose fab.lib and click ok.

    Page setup:
    add the design information and the schematic Grid setting

    Responsive image
    Edit page setting.
    Responsive image
    view -> Grid setting.

    Symbols:
    add symbols to the sheet and create symbol if needed

    I create a text file with the component then start to add it to the schematic.
    along side that I open our flinc-inventory-sheet to make sure we have the same values of the components I need.
    we don't have all the components that I need so I tweak the design a little and updated the text file.
    Circuit Components
  • 1* A4982
  • 6* .1uf ceramic capacitors
  • 1* 100uf electrolight capacitor
  • 3* 5kohm resistor
  • 1* 100kohm resistor
  • 5* 10kohm resistor
  • 2* 8 Male-pinheader
  • Responsive image

    from Kicad I choose symbol editor then I create a new library called machineDesign and select the symbol properties to give our symbol it's identity

    Responsive image

    we go back to the data sheet to get the pinout assignment in order to create our A4982 symbol

    Responsive image
    Now we are done with all the circuit components
    Responsive image
    I choose U for reference designator as I'm going to deisgn an IC
    please find this Reference designator-wikipedia as a reference
    Responsive image
    A4982 new symbol =)
    Responsive image
    add the A4982-Datasheet to our symbol

    Arrange, Annotate, Associate:
    arrange, annotate symbols and associate with footprints

    Circuit Components final
  • 1* A4982
  • 6* .1uf ceramic capacitors
  • 1* 5kohm resistor
  • 1* 100kohm resistor
  • 1* 10kohm resistor
  • 4* 49.9kohm resistor
  • 2* 8 Male-pinheader
  • Responsive image
    From the datasheet I know the A4982 which is TSSOP24_6.1x7.8mm_P0.65mm.
    Responsive image
    arrange the components and group them by functioning, and I change the schematic components once again.
    Responsive image

    Wiring, Nets, Electrical Rules Check, Comments and Netlist generator:
    final steps and edits to the schematic

    Responsive image
    Run ERC check.
    Responsive image
    generate Netlist.
  • when I run ERC check I have three erorr in the connections name some pin assignment conflict which it was easy to fix.
  • Generate the Netlsit is the final step after finishing all the design.
    This step is really important in order to connect the schematic with PCBnew in which we will going to create the PCB layout.
  • Now it's time for the layout design.
  • Responsive image
    final A4982 Schematic.

    5)PCB layout

    Page setup:
    add the design information and the schematic Grid setting

    Responsive image
    calculate the trackwidth based on max current and voltage.
    Responsive image
    Adjust Board Setup.

    Board Outlines + Component placment:
    define the size and shape of the board , arrange the components in functional group starting with user interface

    Responsive image
    Edgecuts of the board from mechanical specifications = 2.5*2.5 cm.
    Responsive image
    now every thing looks good.
    Responsive image
    3D view.
    Responsive image
    Time now for routing process.

    Routing, Copper fills:
    routing the component starting with powerthen create a GND fill

    Responsive image
    route all the components and add a GND copper fills.
    Responsive image
    Run ERC check to make sure everything is good.

    Silkscreen and Dimensions:

    Responsive image
    and we finally did it =).
    Responsive image
    ERC check one more time.
    Responsive image
    Final PCB.

    Files

    A4982 stepper motor drive SCH&PCB