Adrien Laveau
    • 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
      • Invitee
    • 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
    • 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 Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync 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
Invitee
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
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- tags: Fabacademy --- # Week06 - Electronic design ### For simulation We do not cover the subject but in Kicad website there is all the info to do it. ## Concept ## Design ### Import library Download library from https://gitlab.fabcloud.org/pub/libraries/electronics/-/tree/master/kicad #### Symbol Installing the library Preferences -> Libraries -> Manage symbol library Create new empty global library ![](https://i.imgur.com/eXGbZ3x.png) Repeat possibly with (optional) : https://github.com/KiCad/kicad-footprints #### Footprint Preferences -> Libraries -> Manage footprint library Add an existing library, select fab.pretty ![](https://i.imgur.com/Vdm1W7T.png) ### Schematic edition Keystrock * M = move * R = rotate * E = edit * C = copy * V = edit value * D = * G = Drag, not to loose connection when moving parts * backspace = remove component * W = create a wire from the place you are Click on the following button ![](https://i.imgur.com/A2Oz7GQ.png)+ Checks * grid * mm ![](https://i.imgur.com/X3Kwpuj.png) 1. Place symbole (ampli-op button) 2. In the library choose your element * R = rotate * click when ok with positiob * The adding window appear again, choose if adding again or not (esc if not) 3. Hover over the element and click **M** to move 4. To remove, right-click -> remove 5. When placing a resistance, the value does not impact at the beginning 6. Adding a capacitor on VCC to filter power input. 1uF is a good general value but check the datasheet of IC mm #### Labels Used to route signal limiting wires. Only important thing is that they share the same name. #### Pull-up/down resistance Use a 10kOhm resistance as pull up-down ![](https://i.imgur.com/sMuUKhf.png) Consumption is of the order of magnitude of nano-amps ![](https://i.imgur.com/N3lkNzM.png) #### Generate NETLIST ![](https://i.imgur.com/ccm5Nbh.png) ### PCB Edition ![](https://i.imgur.com/Exztfhd.png) ![](https://i.imgur.com/ngTsIKo.png) Then check where the components are (maybe outside of the screen) If there is an error, it means some footprints are missing. Ex : go back to schematic, delete the footprint from any component. Go back to PCB and click the following button ![](https://i.imgur.com/pBZ4AUf.png) #### Place approximately components #### Layers 1. Red = Upper layer 2. F.Silks = unfunctional writing (names etc...) 3. Yello = part with holes #### Design rules Some limitations exists due to the manufacture process. Files -> Board setup ![](https://i.imgur.com/nZGHEgU.png) ![](https://i.imgur.com/NFuarIu.png) **Clearance** = separation between footprints tool : 1/64 in = 0.3968 mm -> 0.4mm **Track Width** = 0.3mm (good value, even a bit big) **Via** are the info for 2 layers PCB Some info can be calculated with the PCB calculator ![](https://i.imgur.com/Ovs6Twf.png) Ex : removing copper from the PCB with milling machine. * Components separation If a component has to be put on the other side, click **F** on the component to FLIP it. #### Create your traces Select the trace tool ![](https://i.imgur.com/g9z4Icf.png) Rules: * Closest possible but not too much too let the board "breath" * Connect on the pads better than on the tracks ![](https://i.imgur.com/K7hA1bv.png) Make tracks bigger Edit -> track & wire properties Click tracks Set to specify value or Set to netclass value **Cleaning tracks** Edit -> Clean-up tracks and vias #### Debug your tracks ![](https://i.imgur.com/lu0DHWN.png) ![](https://i.imgur.com/vaoJuuu.png) Issue : edge to close to the board -> at the moment no problem. #### Create the board edge * Select "edge.cut" layer * We are going to draw 1. Create a 1/4 circle 2. Copy/paste on all sides Finish created the yellow board line ![](https://i.imgur.com/cueShNM.png) #### Check the final aspect Check the board with the BUG ![](https://i.imgur.com/tzvImII.png) Check the 3D part ALT3 gives the 3D view ![](https://i.imgur.com/zfWcH6Z.png) ## Prepare ### Oscar's way Adding a plugin to Kicad https://gitlab.com/fablabbcn-projects/electronics/kicad-exports Creates SVG Then a command creates the PNG Then rolland ### Josep's way #### Export as SVG File -> Export -> SVG Using this configuration ![](https://i.imgur.com/ZQJgYca.png) #### Open Inkscape Open SVG file Open Layer tab ![](https://i.imgur.com/l83ZzVW.png) Add layers (+ button) Split objects between layers Create a big black square For exporting, select outerline in Selection, then select "custom". Select the layer you want to export Export ### SVG Export ### Make PNG ## Global Class ### Inventory **Wires** : warning with full core coper or "tressé" depending on frequency **Resistors** : value, power dissipation, process for fabrication (10kOhm for LED -> 5mA at 5V) **Capacitor** : block steady current. Used as filters (1-10uF) (low frequency).steady voltage, no curren - voltage variation = current. There is polarized and not polarized Capacitors. Main package = 1206 (in inches) -> good to fit a track below. If the capac is big enough it can act as a sall battery * C = Q/V * Q =CV * I = C * dV/dT Polarized capa are a bit more complex (10F), smaller max voltage. **Crystals** : to set up specific timing (if IC clock not sufficient) **Inductors** : block high frequency current * V=L*dI/dT **Diodes** : anode/cathode. Let the current in one direction only. Ideal diode is perfect conductor. But not true. When dV>0.6V --> perfect conductor. * Perfect diode * Zener diodes (symetric behavior) * LED diode **Transistors** : electrical switch. * MOFSE : Drain, Gate, Source, maximum current handled, RDS (resistance between Drain and Source). The Gate control the resistance between Drain and Source. **Regulators** : Are used to manage the power source to adapt it to the microcontroller. Input 6-30V -> output 5V. It works with Capa before and after **OpAmp** : **MicroControllers** : ### Circuits **Kirchoff law** : * Sum of current = o at a node * Sum of voltage around a circuit = 0v * P= UI = I^2 * R UNDERSTANDING Ciruits : http://falstad.com/circuit/ ## Thursday - Local Class ### What is a microcontroller ### Transistor ### Circuits **Combinational** circuit No memory, not aware of their state. input -> output ![](https://i.imgur.com/OSnpFzR.png) **Sequential** circuit Memory of their state (combinational circuit + state memory) ### Advanced electronic components #### Capacitor ![](https://i.imgur.com/vGEP8qS.png) #### Diodes Important to READ the link : https://lcamtuf.coredump.cx/electronics/#19 2 important diodes * Zener diodes * for USB, computer connetion * they allow a littlebit of backward current * Good for protection during connection * Schottky diodes * Normal diodes provok voltage drop * Schottky diodes do not provok voltage drop #### Oscillators Oscillator : does not have capacitor included Resonator : has capacitor included Can generate pulse signal to impose signal to a microchip. ![](https://i.imgur.com/Vl7ZTUY.png) Fuses are the commands we send to the microchip to tell him his hardware configuration #### Regulators Most common one is LDO Not combinable with PWM #### How to design the board 1. We have to know how to program it 2. Think about input current depending on the use 3. Choose MC (ATtiny 3216 32 = memory / 16 = pins): 1. Inputs : digital / analog 2. Outputs : how many ? what can they do ? (PWM, Emission ...) 3. Processing power (16Mhz ok for motor controller)

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