Help Center
  • FAQ
    browse most common questions
  • Live Chat
    talk with our online service
  • Email
    contact your dedicated sales:
  • Call Us
    9:00 - 18:00, Mon.- Fri. (GMT+8)
0

How to Creat a Microcontroller Circuit Board

Published on 2/20/2017 11:19:48 PM

Description

<style>.e_editor{font:14px/24px Arial,'microsoft yahei','Times New Roman','b8bf53';}.e_editor div,e_editor p,e_editor td,e_editor th,e_editor li{font-weight:inherit;font-size:inherit;font-style:inherit;font-family:inherit;}.e_editor ul{margin:-10px 0 20px;}.e_editor li{padding:5px 0;}.e_table{width:96%;border-collapse:collapse;empty-cells:show;}.e_table th,.e_table td{padding:5px;border:2px solid #eee;}.e_img{padding:10px 0;text-align:center;}.e_p{line-height:20px;padding:0 0 20px;text-indent:0em;}</style> <div class="e_editor"> <div class="e_img"> <img src="https://file.allpcb.com/bbs/p/wwwbuild-electronic-circuitscom/wwwbuild-electronic-circuitscomc20170227180645419.png" width="300" height="253" /> </div> <div class="e_p"> Let’s get ready to circuit board desiiiiiiiiign! </div> <div class="e_p"> We are now in the fourth part of the microcontroller tutorial. We have a microcontroller circuit diagram ready. It’s time to make a circuit board. I love this part. This is the “magical” step that takes the idea we started with and turns it into something real. </div> <div class="e_p"> But let’s recap. So far we have learned: </div> <ul> <li> Part 1: What is a microcontroller? </li> <li> Part 2: How to choose your microcontroller? </li> <li> Part 3: How to design a circuit diagram for your microcontroller? </li> </ul> <div class="e_p"> In this fourth part, we are going to create a circuit board for our circuit, then get this board created in one way or another. This can be done in several ways, as we’ll see later. </div> <div class="e_p"> To design our circuit board we’ll use Cadsoft Eagle. It’s available in a free version and works on Windows, Mac and Linux. </div> <div class="e_p"> <h2> Designing Schematics For Our Microcontroller Circuit </h2> </div> <div class="e_p"> The first thing we need to do, is to put our schematic design into Eagle’s schematic editor. If you are not familiar with this process, check this out: How to create schematics with Eagle </div> <div class="e_p"> In the previous part of this microcontroller tutorial, we decided on which components to use and how to connect them. Here is the circuit diagram we ended up with: </div> <div class="e_img"> <img src="https://file.allpcb.com/bbs/p/wwwbuild-electronic-circuitscom/wwwbuild-electronic-circuitscomc20170227180645902.png" title="" alt="" width="600" height="300" align="" /> </div> <div class="e_p"> The ATmega32U2 microcontroller, is not in Eagle’s default library. I could have designed my own custom component, but to save time I used a library that I found here: https://github.com/civanovici/roduino/tree/master/eagle/eagleLibrary </div> <div class="e_p"> For the USB connector, I used one from Sparkfun’s library here: https://github.com/sparkfun/SparkFun-Eagle-Libraries </div> <div class="e_p"> <h2> Designing Out Board Layout </h2> </div> <div class="e_img"> <img src="https://file.allpcb.com/bbs/p/wwwbuild-electronic-circuitscom/wwwbuild-electronic-circuitscomc20170227180646394.png" width="311" height="260" /> </div> <div class="e_p"> The next step is to design the board. </div> <div class="e_p"> In Eagle, we can click on the «Board» button in the toolbar to open the design editor. If no board design exists for your schematics, you will be asked if you want to create one. Answer «Yes» to this. </div> <div class="e_p"> I always start out by defining my board size. I know that I can get really cheap prototypes if I stick to 5cm x 5cm (1.9685 in x 1.9685 in), so I will set my board size to this. </div> <div class="e_p"> Now it’s time to place the components onto the board and draw the connections. </div> <div class="e_p"> In this design, I wanted to draw only on one side, so that it would be easier to mill or etch the board – just in case I wanted to do this. </div> <div class="e_img"> <img src="https://file.allpcb.com/bbs/p/wwwbuild-electronic-circuitscom/wwwbuild-electronic-circuitscomc20170227180646883.png" title="" alt="" width="600" height="650" align="" /> </div> <div class="e_p"> You can download the finished design here: Microcontroller-tutorial-files.zip </div> <div class="e_p"> <h2> Making the Board </h2> </div> <div class="e_p"> There are three main ways of making a board from an Eagle design; etching, CNC milling or ordering from a prototype manufacturer. Earlier, I’ve written an overview of the three methods. </div> <div class="e_p"> In my opinion, the easiest way is to use a PCB manufacturer. It takes a bit of time to wait for your board, but at least everything will be done properly. This does not have to be expensive. You can order 10 boards for $10 at some places. And the cheapest shipping option can be only a few dollars. </div> <div class="e_p"> To find the best option for you, I recommend checking out pcbshopper.com that allows you to enter your board details and country, then find both price and delivery time to your country. </div> <div class="e_p"> To see exactly how you can prepare an order of cheap PCB prototypes, check out this video: </div> <div class="e_p"> I ended up ordering my boards from seeedstudio.com. Because I wanted to get my boards fast to continue the tutorial, I paid for the fastest shipping option. Hopefully I will get it very soon. </div> <div class="e_p"> <h2> Getting Components </h2> </div> <div class="e_p"> A board without components isn’t very interesting. So we need to get out hands on some components too. </div> <div class="e_p"> There are many stores that sell components online, check out my recommendations here. </div> <div class="e_p"> <h3> Complete Parts List </h3> <table> <tbody> <tr> <th> <b>Part</b> </th> <th> <b>Description</b> </th> <th> <b>Value</b> </th> <th> <b>Package</b> </th> </tr> <tr> <td> C1 </td> <td> Capacitor </td> <td> 1µF </td> <td> SMD 1206 </td> </tr> <tr> <td> C2, C3 </td> <td> Capacitor </td> <td> 12-22pF </td> <td> SMD 1206 </td> </tr> <tr> <td> C4 </td> <td> Capacitor Polarized </td> <td> 10µF </td> <td> Through-hole </td> </tr> <tr> <td> JP1 </td> <td> USB Connector </td> <td> USB Type B Receptacle </td> <td> Through-hole </td> </tr> <tr> <td> JP2, JP3 </td> <td> Header 8 pin </td> <td> </td> <td> Through-hole </td> </tr> <tr> <td> LED1 </td> <td> Light Emitting Diode </td> <td> 1.8V </td> <td> Through-hole </td> </tr> <tr> <td> Q1 </td> <td> Crystal </td> <td> 8 MHz </td> <td> SMD C49UP </td> </tr> <tr> <td> R1, R2 </td> <td> Resistor </td> <td> 22 Ohm </td> <td> SMD 1206 </td> </tr> <tr> <td> R3 </td> <td> Resistor </td> <td> 200 Ohm </td> <td> SMD 1206 </td> </tr> <tr> <td> R4 </td> <td> Resistor </td> <td> 10k Ohm </td> <td> SMD 1206 </td> </tr> <tr> <td> S1 </td> <td> Momentary Switch </td> <td> </td> <td> Through-hole </td> </tr> <tr> <td> U1 </td> <td> Microcontroller </td> <td> ATmega32U2 </td> <td> TQFP-32 </td> </tr> </tbody> </table> <div class="e_p"> If you can’t find a specific part, you could use findchips.com to find out which stores that has the part you are looking for. </div> <div class="e_p"> Now we just need to sit back and wait for the boards and components to arrive. </div> </div> </div>

15

comment

All comments

Unknown

4325

0

15

Go to Order My Own PCB

Rules about cashback: 1. Valid time: ALLPCB cashback activity will end on April 1st. 2. Capped amount: The capped amount of cashback for each account is $5,000. Each order can get a maximum of $2,000 cashback. That means every author can get $5,000 max. 3. Cashback range: The cashback activity only covers the corresponding PCB order. The order amount for other combined payment products will be invalid. 4. Clicking your own promotional link will be invalid. The same email address, shipping address, contact information, and phone number are all recognized as the same account. 5. ALLPCB has the final interpretation right of the cashback activity.

ALLPCB will donate 2% to the author for this promotion link.

Other Projects

Home / Industrial Automation low Cost with Arduino an ESP01

2450

0

314

Alternate Text josemarjr