Victor Barberan
    • 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 --- # Selecting a board :pager: ![](https://i.imgur.com/OarV4G7.png) ## Basics :computer: **What is a microcontroller?** <a href="https://commons.wikimedia.org/wiki/File:Intel_C4004.jpg#/media/File:Intel_C4004.jpg"><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/5/55/Intel_C4004.jpg/1200px-Intel_C4004.jpg" alt="Intel C4004.jpg"></a> > A microcontroller (MCU for microcontroller unit) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. :::info More details [here](https://fablabbcn-projects.gitlab.io/learning/fabacademy-local-docs/material/extras/week04/whatisamicrocontroller/#now-actually-what-is-a-microcontroller) ::: **Microcontroller boards** ![image](https://hackmd.io/_uploads/H1vyzPV9Jx.png) > A microcontroller board is considered a small computer built on a metal oxide semiconductor circuit chip. :::warning We sometimes refer to as an Arduino to any board with a microcontroller - it may be a board made by arduino, sparkfun, or someone else. ::: **Shields** ![](https://programarfacil.com/wp-content/uploads/2019/05/arduino-shield-02.jpg) > Shields are boards that can be plugged on top of the (Arduino) PCB extending its capabilities. The different shields follow the same philosophy as the original toolkit: they are easy to mount, and cheap to produce. :::warning A shield is not always passive! It can have a microcontroller in it too, and sometimes it can be "stand alone" board if needed. ::: **SBCs** ![Untitled](https://hackmd.io/_uploads/rkMRMPE51x.jpg) > A computer with all of its essential components such as RAM, CPU, and GPU built-in. Usually, SBCs are small, about the size of a credit card, or a bit larger but still smaller than the average desktop PC. :::warning Raspberry Pi is the SBC manufacturer we use the most. Not all SBCs are Raspberry Pis. ::: **HATs** ![](https://www.raspberrypi.com/app/uploads/2014/07/HAT-longpins.jpg) > (Hardware Attached on Top). A HAT is an add-on board for (Raspberry Pi B+) that conforms to a specific set of rules that will make life easier for users. :::info In this class, we will talk about different brands/boards/types of boards. We will focus mostly on microcontroller boards. ::: ## Important aspects to keep in mind :eyes: :::info **Remember:** a feature only makes a board better if you actually use it! ::: ### 1. Power ![](https://i.imgur.com/46XcdPo.png =x150) ![](https://i.imgur.com/5aU676Z.png =x150) ![](https://i.imgur.com/10PrTrM.png =x150) ![](https://i.imgur.com/qubiFE4.png =x100) > **Power** - does your project run on batteries or wall power/mains? If it only uses batteries, consider a design that conserves power to run longer between battery changes. Or consider if solar or other power sources might be desirable. **Questions** - Does it need portability or is it stationary? - Related to the above question, is it powered with AC or DC? What are the input voltage ranges? - AC: Europe 230V; America: 110V - DC common voltage levels: 5V, 3V3, 1V8 (not so common, yet) - How can we power it? - Do we use USB? --> Good for stationary, sometimes usable with power packs. Remember USB is always 5V. - Does it have a battery connector? JST-2Pin. **Be careful with the polarity!!** - Can we power the board using the pins? - What are voltage ranges we need for the peripherals we want to connect? - If we have a peripheral that uses a digital protocol to communicate -> level shifters - If we have a peripheral such as an analog sensor with higher range than our maximum voltage -> Voltage divider (one directional) - Current output (type of circuit) - PoE ### 2. I/O ![](https://i.imgur.com/qeqKHdz.png =x100) ![](https://i.imgur.com/JfI7z7u.png =x100) > **Peripherals** are the 'extras' beyond plain number crunching - like digital i/o pins, capacitive touch, ADC, SPI, I2C, UART, I2S, etc... - Pin amounts ![](https://i.imgur.com/0QNTzMF.png) - Pin types (ADC, PWM) - clock speed ref. (**Not all the pins in a board are the same - always check the pinout!**) ![](https://electropeak.com/learn/wp-content/uploads/2020/03/Arduino-Buying-Guide-Arduino-MEGA-pinout.jpg) Some things to look at: + For analog sensors: ADC (analog to digital converter) - check resolution for the ADC + For making _"fake"_ analog voltages we use PWM (pulse width modulation). For instance, servos are also driven with PWM signals ![](https://www.exploreembedded.com/wiki/images/5/54/0_LPC1768_PWM.gif) - Buses: what type of communication protocols does the board integrate? - I2S: for digital audio transmision - I2C: normally used for networs of peripherals, such as sensors - SPI: high speed, like SD-cards - UART: normally used for communication between microcontrollers ### 3. Network ![](https://i.imgur.com/wFfh6qY.png =x200) ![](https://i.imgur.com/kLBqI3L.png =x200) ![](https://i.imgur.com/vnJ1FqC.png =x100) > **Communications** - does your project need to communicate information to you or other devices? Consider how to do that. Radio-enabled projects are great but they will require a transmitter and receiver so the amount of hardware may be double what you thought. You can communicate via USB to a computer often easily. Or maybe infrared signals? :::success **Communication vs. protocol** **A network** is a group of computers connected with eachother with communication lines. **The protocols** are the norms/agreements that format the messages and processes between the computers and programs in thos computers to understand eachother ::: - **How much range?**: - long distance (lower frequency) - _RF_: depending on the application, different frequencies - short distance: - WiFi: high bandwidth - BLE: low consumption - Zigbee... - Cabled comunication: Although not very common in the microntroller boards we do - ethernet? It can also power the board with PoE! ### 4. Data/Processing capabilities ![](https://i.imgur.com/5YtAuE6.png =x150) ![](https://i.imgur.com/e1M5FTN.png =x150) ![](https://i.imgur.com/uIXK9SF.png =x100) ![](https://i.imgur.com/jCD9gkD.png =x150) > **Speed** - does your project crunch a lot of numbers or gather huge amounts of data? Then speed may be good. Otherwise if the project is relatively simple, a smaller, slower board may be perfectly fine (and less expensive). - RAM: ram size will determine how much you can do in your code: how many variables can be used at the same time, and because of that how many libraries, and other things your code can integrate. 2-4kb is kind of small, 32kb is good for many projects. This memory is **volatile** (i.e. it gets erased when the board is unplugged) - Flash size / External flash: it will determine how big your code can be in general (the totality of the compiled code you _flash_ into the board). 4kb is small, 256kb is very good for many projects. The ESP8266 has 4Mb (or even 16Mb) - EEPROM: you might need this if you want to store small things *permanently* (i.e. when the board is unplugged it doesn't get erased) - Data streams: do yo need to handle video/audio at high speed/resolution? **Better use a SBC**. - Data storage: do yo need to store data on the board? In other words, do you need memory? Maybe use one board that has **SD-card** compatibility! ### 5. Usability - Size - Power requirements - User interface - Documentation - Tutorial availability ### 6. Price > **Price** - what is your budget? Keep this in mind when shopping but don't consider buying anything that will not fulfill the design of your project. ### 7. Programming Interface ![](https://i.imgur.com/q1DzSwE.png =x150) ![](https://i.imgur.com/jsayur0.png =x150) ![](https://i.imgur.com/wvgfUz4.png =x150) > **Programming** - less of a consideration but important. Your time is valuable, so something easier to program may save you time/money even if its a little more expensive - External interface needed? (ej. FTDI) - Arduino IDE compatible - Platformio compatible - Other software/hardware tools needed? :::info Quoted info taken from the excellent Adafruit guide [How to Choose a Microcontroller ](https://learn.adafruit.com/how-to-choose-a-microcontroller) ::: ## Places to look in 1. [Adafruit](https://learn.adafruit.com) 2. [Arduino](https://docs.arduino.cc) 3. [Sparkfun](https://learn.sparkfun.com) 4. [Github](https://github.com)/[lab](https://gitlab.com) [hackaday](https://hackaday.com) for inspiration/references/documentation - **if there is nothing, we don't recommend to buy it unless you have a lot of experience!** :::info Adafruit guide: [Selecting an Arduino](https://learn.adafruit.com/adafruit-arduino-selection-guide) Adafruit guide: [How to Choose a Microcontroller](https://learn.adafruit.com/how-to-choose-a-microcontroller) Sparkfun guide: [Choosing an Arduino for Your Project](https://learn.sparkfun.com/tutorials/choosing-an-arduino-for-your-project/all) [Learn how to choose the right Arduino board for your project.](https://maker.pro/arduino/tutorial/how-to-choose-the-right-arduino-board-for-your-project) Sparkfun [ARDUINO COMPARISON GUIDE](https://www.sparkfun.com/standard_arduino_comparison_guide) Seeedstudio: [Arduino Boards Selection Guide](https://www.seeedstudio.com/blog/2020/02/20/arduino-boards-selection-guide/) :::

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