Skip to content

6. Electronics design

My first development board

Unit description

Task: Electronics Design
* Group assignment:
* Use the test equipment in your lab to observe the operation of a microcontroller circuit board (as a minimum, you should demonstrate the use of a logic analyzer)
* Document your work on the group work page and reflect what you learned on your individual page

  • Individual assignment:
    • Use an EDA tool to design a development board that uses parts from the inventory to interact and communicate with an embedded microcontroller

Learning outcomes

  • Select and use software for circuit board design

  • Demonstrate workflows used in circuit board design


Introduction from Neil and other instructors’ chat information in the class;

Electronics Design

LED Series Resistor Calculator

KiCad

FAB Future Microelectronics

Gerber

Cursor for Hardware

Cirkit Designer

Build you next circuit with AI

Logic Analyzer

Easy Trace 5000



—> Go to Group Work

Planning of this week

  • Use XIAO ESP36C3
  • Prepare a universal PCB to work with

Circuit making in Wokwi

Setting up my First Wokwi model by referencing Neil’s example circuit.
reference set up from Neil

Since I have XIAO ESP32-C3, I chose same one in KiCad model as the PC Board.
XIAO ESP32-C3 in WokWi

Copy and Paste Neil’s Arduino code into Wokwi model with XIAO ESP32-C3.
Copy and Paste Neil's code

Collect parts for the model.
collecting parts

Setting up the model and confirming the function of circuit by pressing the button to light the LED.
Set up the model

KiCad Installation

Visit “KiCad” site.
KiCad_site

Installation of KiCad
Installation of KiCad

Setting up my First KiCad.
set up KiCad
set up KiCad

Configure KiCad Setting Path “Start with default settings”
setting path

Ignore “Opt In” and click “Decline” this time.
ignore opt in

Open KiCad.
Open KiCad

Make a Project.
In this case, I named “week06_XIAO”.
Then click “Plugin and Content Manager” icon.
Make a Project

Find “KiCad FabLib” in the list (almost at the bottom) and install it.
Install KiCad FabLib

Installing process
Installing

Choose “Copy default global library table(recommended)” and press “OK”.
Configure table

Choose “Schematic Editor” icon to open Schematic Editor.
KiCad Schematic Editor

Since I have XIAO ESP32-C3, I chose same one in KiCad model as the PC Board.

As a practice, I tried to set the circuit which I studied in week04.

Click “A” key to open the symbol (parts) list.
Type “fab Xiao” to find the XIAO related PCB parts list.
When you find parts, it is better to type “fab” and the parts name.
Click A to open parts list

Type “fab pin” to choose relevant “pin”.
fab pin

Type “fab switch” to choose switch part.
fab switch

Type “fab resister” to choose relevant resister.
fab resister

Type “fab power flag”
fab power

Type “GND”
fab PWR_GND

Type “3V3”
3V3

In stead of directly connecting the lines, line could be connected indirectly by declaring the name at the pin.
In this case, “D3” was named at the pin position then it can be connected to the line where has same “D3” name.
naming the pin

No.4 pin was named “D3”.
D3 named pin

After connecting all pins, you need to check if all lines are connected without error by the “Electrical Rules Checker”.
Electrical Rules Checker

All lines’ were connected, and being checked by “Electrical Rules Checker”.
Development Board connection checked

All connections were checked with no error.
all checked without error

Next, move on to the “PCB Editor” window, and place the model into some place.
PCB Editor

Zoom up the model.
zoom up the model

Click “3D Viewer” and you can see the 3D view of this model.
3D Viewer
3D Viewer

Arrange parts position so that lines has less crossing points.
Arrange parts position

Open Board Setup and you will see the default set up as follows;
Board setup

Modify each value as relevant as follows;
Set each value

Set Net Classes as relevant value following my instructor’s advice.
set Net classes

Declare which line should be set as Power Line.
declare which is power line

Select copper cutting layer as “F.Cu” for designing the line connection path.
select cutting layer

Design connection path so that there is no crossing points.
You can turn the part orientation if connection is difficult without crossing.
design connection path

Checked the Electric Rule again, and had no error.
checked again

Integrate description as “PWR_GND”.
integrate description

LED had to be changed

After connecting all lines with “F.Cu” layer, now you design the outline of the development board by selecting “Edge.Cuts” layer.
select Edge.Cuts layer

select Edge.Cuts layer

Edge.Cut done Edge.Cut done
Edge.Cut done

Indicate Board Edge size, and checked “Design Rules Checker”.
Board Cut size

Several errors occurred.
Several Errors occurred

Several Errors are found.
Check the lines by double clicking each lines, and erased some doubled lines.
Errors

All errors are gone, but still warnings exists.
all errors gone

Still yellow arrows are indicated as follows;
indicated yellow arrows

My instructor found that the right side pin direction is strange, and notice the strange name of LED “LED_LUMINUS_1206”.
Therefore, I decided to change this LED part with “Change Symbols”.
Change Symbols

Select normal “LED_1206”.
Select normal LED

Changed selected symbol change into it

The connection design got smoother and the warnings are now gone.
alt text

3D Viewer’s view
3D viewer
3D Viewer

The next step focusing my Final Project

I would like to think about designing following circuit for the next step.
* Function
* Servo to realize following function with KiCad format?controle servo motor angle following the angle (volume switch), and light red LED while operating. controle servo zero angle when the button switch was pressed., and light blue LED.