Skip to content

byu-mechatronics/nano-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arduino Nano Setup

  1. Download the Arduino IDE here.
  2. Download the CHP341 USB to Serial driver (you may need to restart after installing):
    • Mac
    • Windows
    • Alternatively, get them from the Chinese distributer:
  3. Open your Arduino IDE, change the board type to Arduino Nano w/ ATmega328 and connect to the correct serial port, as seen below:

Board Type

Serial Port

Windows Users: The serial port will be something like COM3 or COM4 (the COM stands for 'communications').

Note: Make sure to plug in your board, otherwise the serial port will not show up. Also, if it still doesn't show up try restarting your computer.

  1. After opening the Arduino IDE, make sure to add the following two functions to your code, as both are required for the Arduino language:

     void setup() {
       // setup pin outputs and inputs here
     }
    
     void loop() {
       // code that always runs in a loop here (like your main() function)
     }
    
  2. Look at some of the example code in this repo to see how to get started. Try downloading one of the files to your computer, and then to your Arduino Nano.


Mac OS X 10.10 (Yosemite) CHP341 Update

With the release of Mac OS X Yosemite, the old CHP341 driver breaks. This has something to do with the driver signing policies that need to fixed by the CHP341 creators. The official temporary fix for this while WCH updates their software is the following:

  1. Reinstall the old CHP341 driver, restart machine (even if it was already installed)

  2. Open your terminal and run the follow command:

     sudo nvram boot-args="kext-dev-mode=1"
    
  3. Enter your password when prompted (because of the sudo command) and then restart your computer.

Note that this is entering developer mode for this device and is only a temporary fix. To restore your Mac to before (AKA, to exit developer mode), run the following in the terminal:

    sudo nvram -d boot-args

Nano Hardware Example

Both the led_crawler and the binary_counter example projects require a hardware setup as follows:

Nano Test Layout


Other Resources

About

Setup Configuration for the Arduino Nano

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%