Delft Open hardware
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Design a simple PCB with EasyEDA **Date:** 29-08-2022 **Organized by:** Delft Open Hardware **Notes prepared by:** Jerry de Vos, Jose Urra In this lesson and exercise series we will go through the concepts of PCB design. We will also design a PCB for an air quality sensor given an existing design schematic and bill of materials. ::: info **By the end of this lesson you will** * Know what a PCB is * When you should mak e a PCB * Be able to m ake a simple schematic and board layout in EasyEDA * Be able to order a custom PCB for your application. **Learning objectives** * Understanding of what a PCB is * Knowing where in the process it fits in * Be able to use PCB design for prototyping or production * Design a simple PCB for the purpose of prototyping more robust circuits **Prerequisites** - You have a beginners understanding of electronics and hardware prototyping - You know why and how to use a breadboard to build basic prototypes - You know how to read electronics schematics ::: ### Getting started The main exercise in this lesson is to endup with a new PCB design for an air quality sensor, given a set of materials, components and specifications. We will use easyeda.com/editor to build a schematic and the PCB. During the lesson you will go through some demonstrations and mini excercises. **The final exercise of the lesson is a homework for you, and challenge: apply everything you have learned and make your new PCB version for the air quality sensor.** ![](https://i.imgur.com/QmxDOMQ.png) ## Introduction to printed circuit boards ### What is a PCB A PCB or Printed Circuit board is a piece of material that electricly connects various components to build up (complex) electrical systems. PCBs are in all electrical appliances and make it possible to miniaturize electrical devices. Introduction: {%youtube YJr-kHy6STg %} Benefits of a PCB over breadboard - Compact in size - Low electronic noise - Reliability - Easy to scale - Low cost Downside of a PCB over breadboard - fixed design, not easy to make changes in connections or footprints This is why you often see breadboards being used in the early stages of prototyping, and once a design is finished it is made into a PCB. ### Anatomy of a PCB Standard 2 layer PCB ![](https://i.imgur.com/mqfQlUl.jpg) ### Mounting components on a PCB Through hole VS surface mount Through hole components have electrical connections that connect though the complete PCB while surface mount components are placed on the surface of the PCB Cross section: ![](https://i.imgur.com/JxWCccN.png) image retrieved from [link](https://www.freedomcad.com/2018/07/26/through-hole-vs-surface-mount-which-should-you-use/) Real world application: The brown resistor on top (R27) is a through hole resistor and has its legs protruding through the PCB, as on the right side of the cross section The two resistors at the bottom are surface mount resistors and are only soldered on the surface of the PCB. ![](https://i.imgur.com/upg6YWZ.png) image retrieved from [link](https://www.mokotechnology.com/through-hole-pcb-surface-mount-pcb-which-one-do-we-recommend/) ### Manufacturing methods The video bellow is a PCB factory tour that will give you an overview of how PCBs are made: {%youtube ljOoGyCso8s %} ### Steps in PCB development The following image was made by Suryansh Sharma (last name) provides an overview that explains the design process, procurement, building and testing a Printed Circuit Board. For the rest of the lesson we are going to focus on steps in the red square. ![](https://i.imgur.com/r4p8hMG.png) --- ### Design rules for PCB making Here is a great overview of information, further readings and design rules fro PCB making [Cornell](https://makerclub.ece.cornell.edu/pcb-seminar/) PCB manufacturer Euro circuits made a good selection of design guidelines to make sure your PCB can be manufactured. [Euro Circuits](https://www.eurocircuits.com/pcb-design-guidelines/#introduction) ## Introduction to the exercises In this lesson we are going to teach you how to design a pcb for an air quality sensor assuming we have some design constrains and components, as well as a circuit design. Therefore **the focus of this lesson is mostly on designing a ready to manufacture circuit board.** PCBs can help you create more robust prototypes and setups in your research, and your projects. Once you have modeled and tested that your design works, or partially works, you might need to test again such circuit in a context that requires more robustness and it can be replicated easily. You can also design PCB variants to test design architectures of products with different arrangement of the components, to optimize for instance space, or even test usability aspects of the design. **Goal**: from breadboard to custom PCB. ![](https://i.imgur.com/2e4ELue.png) ## Video tutorial This video tutorial will show you an example of how to make a PCB design for an air quality sensor. {%youtube oXkXxEa_np0 %} ### Key concepts and ideas - Circuit design - Breadboard prototyping and testing - Gerber files - Ordering manufactiring of prototypes ### Preparation - Here we can list things participants might use to follow along, for instance: https://gitlab.com/go-commons/delftopenhardware/Air-Quality-sensor-for-workspaces - Go to easyeda.com/editor and make an account. ## Project design and specs The example project that is used throughout this lesson is an air quality sensor based on the CCS811. This sensor can detect a wide range of Volatile Organic Compounds (VOCs) and is intended for indoor air quality monitoring | Item | Price | Link | Image | | -------- | -------- | -------- | ---| | CCS811 module | 12.00 | [Tinytronics](https://www.tinytronics.nl/shop/en/sensors/air/gas/ccs811-air-quality-sensor) |![](https://www.tinytronics.nl/shop/image/cache/data/product-1663/CCS811%20air%20quality%20sensor-1500x1500w.jpg)| | BME280 module | 11.50 | [Tinytronics](https://www.tinytronics.nl/shop/en/sensors/air/pressure/bme280-digital-barometer-pressure-and-humidity-sensor-module-with-level-converter) |![](https://www.tinytronics.nl/shop/image/cache/data/product-1512/bme280%20module%20with%20level%20converter%201-1500x1500.jpg)| | OLED screen | 7.00 | [Tinytronics](https://www.tinytronics.nl/shop/en/displays/oled/0.96-inch-oled-display-128*64-pixels-blue-i2c) |![](https://www.tinytronics.nl/shop/image/cache/data/product-1257/0.96%20oled%20display%20I2C%201-1500x1500w.JPG)| | Wemos d1 mini | 6.00 | [Tinytronics](https://www.tinytronics.nl/shop/en/development-boards/microcontroller-boards/with-wi-fi/d1-mini-esp8266-12f-ch340) |![](https://www.tinytronics.nl/shop/image/cache/data/product-668/D1%20mini%20esp8266-12f%201-1500x1500w.JPG)| | Neopixel | 0.50 | [Tinytronics](https://www.tinytronics.nl/shop/en/components/leds/leds/ws2812b-digital-5050-rgb-led-separate) |![](https://www.tinytronics.nl/shop/image/cache/catalog/products/product-000432/ws2812b-digital-5050-rgb-led-separate-1500x1500w.jpg)| | Buzzer | 0.50 | [Tinytronics](https://www.tinytronics.nl/shop/en/audio/speakers/buzzers/mini-active-buzzer-5v) |![](https://www.tinytronics.nl/shop/image/cache/data/product-2638/TMB09A05%20buzzer-1500x1500.jpg)| # Getting started with EasyEDA Why EasyEDA: There are many tools for PCB making, including high end open source alternatives such as KiCAd. EasyEDA allows to design fully online and order PCBs right away, which is what we need for the purpose of such an introductory lesson. ## Shortcuts | Key (combination) | Result | | -------- | -------- | | CTRL+C | Copy | | CTRL+V | Paste | | W | Wire | | R | Rotate | | N | Net | ## Step 0 - Have a breadboard prototype or circuit design You have already a prototype that works, tested in a breadboard, and perhaps documented in an schematic. 1. Make sure to have a project on a breadboard 2. Make sure that you can program it and you are happy with functionallity ## Step 1 - Open EasyEDA 1. go to easyeda.com/editor and sign in. 2. go to file -> new -> project 3. give the project a name and a description 4. this will now open a sheet ## Step 2 - Place components 1. from here you can place components on the sheet to make your desired schematic. 2. On the left side click `Commonly Library` and select for example a resistor or capacitor 3. On the left side click `Library` and type `wemos d1 mini` 4. Place all the components that you need (pro tip: You can use R to rotate components) 5. Route wires to complete your schematic (pro tip: You can use W to make a wire route) 6. Save your project 7. Convert to PCB 8. Check for Nets ## Step 3 - Designing the PCB 1. select size of your PCB 2. Place the components to your liking 3. (auto)route traces 4. add mounting holes 5. build copper area 6. Save your project 7. Check 3D viewer 8. Do a DRM check 9. Export Gerber files ## Step 4 - Order PCB 1. Go to JLCpcb.com (or any other boardhouse) 2. Upload gerber files 3. Select desired results # Exercises To make it simple to follow along we made some exercises that you can do to replicate the steps we just took. ## Exercise 1 After explaining the example of the schematic of the air controller. Spend 10 minutes doing the schematic of a simple setup. - Place a adressable led in the schematic, for example: [C2761795](https://lcsc.com/product-detail/Light-Emitting-Diodes-LED_Worldsemi-WS2812B-B-W_C2761795.html) - Place a buzzer in the schematic, for example: [C126347](https://lcsc.com/product-detail/Buzzers_Jiangsu-Huaneng-Elec-HMB1275-03B_C126347.html) - Place a wemos mini footprint, for example: WEMOS-D1-MINI-SHIELD (user contributed) - Place wires between the components (VDD is +5v, VSS is ground) The final result should look something like this ![result exercise 1](https://i.imgur.com/qUr6KRc.png "result exercise 1") ## Exercise 2 After explaining how to do the pcb layout and design of the air quality sensor. Do a pcb design for the esp + leds array. Provide several requirements, like for instance a size in width and height. - Convert schematic to PCB - Set board outline to a width of 28mm and a heigth of 30mm - Place components as desired - Route wires - Add text The final result should look something like this ![result exercise 2](https://i.imgur.com/X3Rfdwq.png "result exercise 2") ## Exercise 3 As a homework design your own air quality sensor. Look at some example design cases for inspiration. 1. Is a desktop version. 2. Is more of a handheld concept. 3. Is a car with a sensor that can roll around 4. Is meant to hang on a wall therefore needs sme screws 5. Should be able to be integrated to a drone chasis ![options exercise 3](https://i.imgur.com/p9fbFXV.jpg "result") 1. Pick one of the different designs or come up with your own. 2. (Should we include a battery in the design? if yes) 3. Do the schematic with the new component 4. Design your new pcb version 5. Share it in our community chat :) ## Taking it further - [Simple electronics projects and circuits](https://www.circuitstoday.com/simple-electronics-projects-and-circuits) has many interesting cases/projects where you can practice PCB designing, and maybe order them to use them at home. - You can export your 3D model and build a casing for it in a CAD software for part modeling. - Write code for your project. # Further readings - PCB Designing – Thinkin Lab. https://thinkinlab.com/pcb/ (accessed Jan. 27, 2022). - gocommons / DelftOpenHardware / Air-Quality-Sensor GitLab. https://gitlab.com/go-commons/delftopenhardware/Air-Quality-sensor-for-workspaces (accessed Jan. 27, 2022). - PCB DesignWorkshop Tutorials. https://exploreembedded.com/wiki/PCB_DesignWorkshop (accessed Jan. 27, 2022). - How to Make a Printed Circuit Board (PCB) | PCB Maker Pro, Mar. 20, 2018. https://maker.pro/pcb/tutorial/how-to-make-a-printed-circuit-board-pcb (accessed Jan. 27, 2022). - Video - Delft Open Hardware, out of the blue test recording for pcb workshop, (Jan. 27, 2022). Accessed: Feb. 17, 2022. [Online]. Available: https://www.youtube.com/watch?v=IcwT-QkEsOM - Video - EasyEDA Full TUTORIAL + Create Component + TIPS, (Oct. 13, 2019). Accessed: Feb. 17, 2022. [Online]. Available: https://www.youtube.com/watch?v=utBQqcuOt9U - Video - Beginners guide to PCB design with EasyEda Part 1, (Oct. 2, 2019). Accessed: Feb. 17, 2022. [Online]. Available: https://www.youtube.com/watch?v=MdcnkaAoDTE - Video - How to easily design PCB in EasyEDA software, (May. 21, 2021). Accessed: Feb. 17, 2022. [Online]. Available: https://www.youtube.com/watch?v=iB-n8Nbt18A - Design rules - PCB Design Guidelines Euro Circuits, Accessed: Feb. 17, 2022. [Online]. Available: https://www.eurocircuits.com/pcb-design-guidelines/#introduction - Design rules - PCB Seminar Cornell maker club, Accessed: Feb. 17, 2022. [Online]. Available: https://makerclub.ece.cornell.edu/pcb-seminar/ - [DIY air quaility monitor](https://howtomechatronics.com/projects/diy-air-quality-monitor-pm2-5-co2-voc-ozone-temp-hum-arduino-meter/) - [DIY air quality monitor video](https://www.youtube.com/watch?v=esY_OtDLv7g) ## Slide deck example of workshop ran using this lesson If you are interested in running a workshop using this lesson you can do so. Here is an example of a slide deck we prepared to run a local workshop at TU Delft. <iframe src="https://docs.google.com/presentation/d/14PImrzsbTt0glqMbeIfWdxYbqQzwSiSp39NQt5vE058/embed?start=false&loop=false&delayms=3000" frameborder="0" width="100%" height="450" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true"></iframe> # Thanks Thanks Suryansh for making a pcb presentation that we could use as inspiration Thanks Jose for reviewing and adding information Thanks Jannes for your feedback on the video

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully