(SKU:RB-01C012)Arduino Nano mega328 Controller

From ALSRobot-Wki
Jump to: navigation, search
Nano23.jpg

Contents

Product overview

Arduino Nano is a base with open source code super small Simple I/o system, and the USB version before the Arduino duemilanove, compared the Arduino Nano on the volume of big advantage, the Arduino can be used to develop needs to run independently, and have interactive effects of electronic products; Can also be used to develop connected to the computer, with Flash, Processing, Max/Msp, PD, VVVV software work together to complete the works of interaction, etc.

specification

1.Digital interface: 12 digital input/output port D2 - D13
2.Analog interface: A0 - A7 8 analog input port
3.Working voltage: 5 v logic level
4.The input voltage (recommended) : 7-12 v
5.input voltage (limit):6-20V
6.Main controller: using Atmel Atmega328P - AU microcontroller
7.USB interface: support USB download and power supply
8.size:45*18mm
9. weight :5g
10.Support the ISP download

Pin definition

Nano123.jpg

Functional specifications:
1.Serial port: the TX and RX (0 and 1 foot), is used to send and receive serial data of TTL level, pin is connected to the corresponding TTL chip.
2.External interrupt: 2 and 3 feet.
3.Pulse width modulation (PWM) : 3,5,6,9,10, and 11. Provide the PWM output, using 8-bit analogwrite () function.
4.SPI (SS) : 10 final three) (2) (MISO), 13 (SCK). The pin supports SPI communication, it written for chip burn bootloader using bottom.
5.13: light-emitting diodes (leds) has a built-in LED, connected to the digital pin 13, when the output of D13 pin for high electricity at ordinary times, the LED lights up; When the output for the low levels of D13 pin, LED out.
6.Eight analog pin: A0 to A7, which provide 10 high-resolution analog-to-digital conversion.

Application of routine

test

We use the Nano mega328 controller to do an experiment, using the hardware is as follows:

  1. Nano mega328
  2. big button module
  3. Dupont line
  4. T mouth line x 1
Nano1.jpg
As shown, the big button module of signal termination in the controller 2 mouth, the other with dupont lines to connect the 5 v of the controller and GND in the press of a button the "+" "-" end of the module, press the big button observed bright LED small lights.

sample program

int buttonPin = 2;
int ledPin =  13;     
int buttonState = 0;        
void setup() {
  pinMode(ledPin, OUTPUT);      
  pinMode(buttonPin, INPUT);     
}

void loop(){
  buttonState = digitalRead(buttonPin);
  if (buttonState == LOW) {       
    digitalWrite(ledPin, HIGH);  
  } 
  else {
    digitalWrite(ledPin, LOW); 
  }
}

Application effect

After the big button is pressed module, L lit up; When the big button module to loosen, L lights went out.

Products related to recommend

Buy address:Nano Mega328

Personal tools
Namespaces

Variants
Actions
Navigation
Tools