Skip to the content
2 layers50 × 50 mmHW4 1, the printed circuit board in 3D

ME433 Advanced Mechatronics Spring 2023 @ Northwestern University

Size
50 × 50 mm
Copper layers
2
Thickness
1.6 mm
Parts
23
Nets
33
Pads
98
Tracks, vias
141, 30
Pours
1
Routed
Yes
KiCad
KiCad 7 (file 20221018)
Created
28 Mar 2023
Updated
26 Sep 2023

Overview

HW4 1 is an open-source printed circuit board by sirojc, from the sirojc/me433-advanced-mechatronics repository on GitHub. It is a 2-layer board of 50 × 50 mm with 23 parts on 33 nets, routed with 141 tracks and 30 vias.

It is built around the PIC32MX170F256B-I/SO, CP2102N-EK and AP7381-33Y. Its parts include 6 capacitors, 5 resistors, 3 diodes, 3 connectors and 3 switches. It belongs with the PIC boards of this library.

Main components

3

README

README.md

ME433_Joris

ME433 Advanced Mechatronics repository of Joris Chomarat

Spring 2023 @ Northwestern University

This repository contains the code deliverables for all assignments, to be found here.

Assignments

HW2 - 3.3V regulator, PIC32

Assignment 2

  • Built a 3.3V regulator, to be able to power the PIC32 microchip and other sensors at 3.3V. Power comes from 5V (USB) or 6V (Battery Pack). A switch enables to change powering method, shown on the PCB in HW4.
  • Connected the PIC32 microchip and LEDs to the circuit and wrote a loop to blink 2 LEDs in a certain frequency.
HW3 - USB to UART

Assignment 3

  • Wrote a loop to send a sine wave from the PIC32 to a PC over UART communication at eveery push of a button in the circuit.
HW4 - PCB Design

Assignment 4

  • Designed a PCB from scratch to use in the final robot
  • Used the same components as for previous assignments, as well as a power switch and holes for header pins to connect further PCBs on top later.

HW5 - SPI

Assignment 5

  • Used SPI to write to an MCP4912 and send a sine and triangle wave.
HW6 - I2C

Assignment 6

  • Used I2C to communicate with an MCP23008. Made an LED blink at the push of a button, communicated through IC2.
HW7 - IMU

Assignment 7

  • Read sensor measurements from an inertial measurement unit and plotted the x acceleration using I2C and UART.
HW8 - OLED Display

Assignment 8

  • Printed z acceleration measurements from the IMU in HW7 to an OLED display.
HW9 - DSP

Assignment 9

  • Digital Signal Processing on different data recordings using moving average, IIR, FIR to filter the signals, as well as performing FFT. A couple of plots are shown, the remainder of all plots can be found here.

HW10 - RGB LED Array

Assignment 10

  • Made a WS2812B LED array display a moving rainbow.
HW11 - RPi Pico FFT

Assignment 11

  • Overlayed 3 sine waves and FFT filtered them in CircuitPython on a Raspberry Pi Pico W.
  • Transmitted the filtered wave via UART.
HW13 - RPi Pico Website

Assignment 13

  • Hosted a website on a Raspberry Pi Pico W.
  • Displayed the time elapsed between two button pushes on the website.
HW14 - Servo Motor

Assignment 14

  • Used PWM to control an Rc servo motor.
HW15 - Camera Line Detection

Assignment 15

  • Developed an algorithm to detect the middle of a line of changing color (map shown here.
  • Best results were achieved by converting the image to grayscale and estimating the middle of the line based on brightness.
  • Visualized detection results from the recorded image on the OLED display from HW8.
HW16 - Line following robot

Assignment 16

  • Assembled a robot with custom 3D-printed and lasercutted parts and made it follow a line of changing color and curvature.
  • Tuned a PI controller to improve line following capabilities.
  • Robot was able to follow a straight line, even of changing color, fairly well. Turns, however, did not work well.

Tips

  • Connect to PIC via screen (on mac) with a baudrate of 230400.

Parts

23
QtyValueFootprintReferences
41uFCapacitor_THT:C_Disc_D5.1mm_W3.2mm_P5.00mmC1, C2, C3, C4
3330Resistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR1, R2, R3
210kResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P7.62mm_HorizontalR4, R5
2Conn_01x12_PinConnector_PinHeader_2.54mm:PinHeader_1x12_P2.54mm_VerticalJ3, J4
10.1 uFCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC6
10.1uFCapacitor_THT:C_Disc_D3.4mm_W2.1mm_P2.50mmC5
1AP7381-33YPackage_TO_SOT_THT:TO-92_InlineU2
1BatteryConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ2
1CP2102NConnector_PinHeader_2.54mm:PinHeader_1x06_P2.54mm_VerticalCP2102
1GREENLED_THT:LED_D3.0mmD3
1PIC32MX170F256BPackage_DIP:DIP-28_W7.62mm_SocketU1
1REDLED_THT:LED_D3.0mmD1
1RESETHW4:pushbuttonSW1
1SW_DPDT_x2HW4:SlideswitchSW3
1USERHW4:pushbuttonSW2
1YELLOWLED_THT:LED_D3.0mmD2

Similar boards

  • 2 layers50 × 50 mmHW4, the printed circuit board in 3D

    HW4

    klemensiten/ME433

    Repo of Klemens Iten for MECH_ENG 433: Advanced Mechatronics, Spring 2023 @ Northwestern University.

    23 parts
  • 4 layers15.6 × 31.3 mmPIC32Flex, the printed circuit board in 3D

    PIC32Flex

    finnhittson/PIC32-Breakout-Board

    PIC32Flex is a breakout board for the PIC32MX170F256B. This repo holds schematic revision information, how to fabricate this board for yourself, and examples on how to use the board.

    14 parts
  • 4 layers30.6 × 67.9 mmReceiver, the printed circuit board in 3D

    Receiver

    finnhittson/RC-Car-Build-Workshop

    Table of contents: 1. Design Overview 2. Software 3. Electrical 4. Bill of Materials ## Design Overview The three main components in building this car are the software, electrical, and the mechanical aspect of the car…

    46 parts
  • 2 layers50.8 × 25.4 mmCkt irsense split, the printed circuit board in 3D

    Ckt irsense split

    IowaScaledEngineering/ckt-irsense

    CKT-IRSENSE Reflective Infrared Proximity Sensor

    26 parts1
  • 2 layers38 × 100 mmNylok Heater, the printed circuit board in 3D

    Nylok Heater

    boydportfolio/Nylok-Heater

    Two-mode handheld induction-heater controller with KiCad design files, product design rendering, engineering calculations, and full cost analysis.

    68 parts
  • 2 layers50 × 50 mmPIC32, the printed circuit board in 3D

    PIC32

    Cole-Abbott/ME433

    Repo for ME 433, Cole Abbott

    23 parts
  • 2 layers50.8 × 25.4 mmCkt fred, the printed circuit board in 3D

    Ckt fred

    IowaScaledEngineering/ckt-fred

    Circuit for Battery/Track Powered FRED

    21 partsGPL-3.0
  • 2 layers127 × 76.2 mmCkt xing adv, the printed circuit board in 3D

    Ckt xing adv

    IowaScaledEngineering/ckt-xing

    Simple Model Railroad Grade Crossing Controller

    140 parts

Questions

How big is the HW4 1 PCB?

It measures 50 × 50 mm and has 2 copper layers, 1.6 mm thick.

What parts does the HW4 1 use?

23 parts, built around the PIC32MX170F256B-I/SO, CP2102N-EK and AP7381-33Y. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the HW4 1 KiCad files?

From the sirojc/me433-advanced-mechatronics repository on GitHub, at the commit this page was made from: the board is HW4/HW4_1/HW4_1.kicad_pcb and its schematic HW4/HW4_1/HW4_1.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the HW4 1 design in my own project?

Its repository states no licence, so its author keeps all rights: ask sirojc before reusing the design.