Home

Arduino User Manual

image

Contents

1. paniesoy m sloz PEE x EE ES Figure 4 4 NuEdu UNO Pin Out Mar 20 2015 Page 11 of 17 Rev 1 01 nuvoTon Arduino 5 SAMPLE CODE 5 1 NuEdu M451 Board The following table lists the Arduino samples which have been tested on M451 NuEdu board 01 Basics Knock WiFiWebServer s02_Shock AnalogReadSerial 07 Display EEPROM s03_Analog_Hall BareMinimum barGraph eeprom_clear s04 Button Blink RowColumnScanning eeprom_read s05 Remote emission DigitalReadSerial 08 g eeprom_write s06 Passive Buzzer Fade CharacterAnalysis P S07 Laser transmit ReadAnalogVoltage StringAdditionOperator LoopBack s08 full color LED 02 Digital StringAppendOperator SPIFlashID s09_Light_break BlinkWithoutDelay StringCaseChanges S10 two color LED Button StringCharacters master reader s11 Buzzer Debounce StringComparisonOperators master writer s12 Analog temperature DigitallnputPullup StringConstructors programming EEPROM 13 Digital Temperature Humi StateChangeDetection StringlndexOf slave receiver 14 full color LED toneKeyboard StringLength slave sender s15 mercury tilt switch 03 Analog StringLengthTrim CAN_BUS s16_Photoresistor AnaloglnOutSerial StringReplace receive check s17 Relay Analoglnput StringStartsWithEndsWith receive interrupt 18 tilt
2. DS18x20_Temperature s24 Flame NuEdu_Basic s25 Magic light cup ASCIITable p03 LoveOMeter ADCtoPWM s26 Digital Temperature Dimmer p04 ColorMixingLamp Button s27 two color LED Graph p06 LightTheremin Buzzer s28 Knock Midi p07 Keyboard EEPROM s29 Avoid MultiSerialMega p08 DigitalHourglass IRremote s30 7 color LED PhysicalPixel p09 MotorizedPinwheel LED s31 Analog hall magnetic ReadASCllString p10 Zoetrope RGBLED s32 touch SerialCallResponse p14 TweakTheArduinoLogo SevenSegmentDisplay s33 High sensitive voice SerialCallResponseASCIl p15 HackingButtons SPIFlash s34 microphone sound SerialEvent USB Keyboard KeyboardLogout s35 Finger measuring heartb VirtualColorMixer Cardinfo USB Keyboard KeyboardMessage s36_Tracking 05 Control Datalogger USB Keyboard KeyboardReprogra s37_Rotate_encode Arrays DumpFile USB Keyboard KeyboardSerial ForLooplteration Files USB KeyboardAndMouseControl IfStatementConditional listfiles USB Mouse ButtonMouseControl switchCase ReadWrite USB Mouse JoystickMouseControl switchCase2 WIFI SernsorsKit 37in1 WhileStatementConditional ConnectNoEncryption s01 18b20 06 Sensors ConnectWithWPA s02 Shock ADXL3xx ScanNetworks s03_Analog_Hall Mar 20 2015 Page 13 of 17 Rev 1 01 nuvoTon Arduino 5 3 NuEdu NANO130 Board The following table lists the Arduino samples which have been tested on NANO130 NuEdu boar
3. Graph p06 LightTheremin SevenSegmenitDisplay s33 High sensitive voice Midi p07 Keyboard SPIFlash s34 microphone sound MultiSerialMega p08 DigitalHourglass USB Keyboard KeyboardLogout s35 Finger measuring heartbeat PhysicalPixel p09 MotorizedPinwheel USB Keyboard KeyboardMessage s36 Tracking ReadASCllString p10 Zoetrope USB Keyboard KeyboardReprogram s37 Rotate encode SerialCallResponse p14 TweakTheArduinoLogo USB Keyboard KeyboardSerial SerialCallResponseASCIl 15 HackingButtons USB KeyboardAndMouseControl SerialEvent Ege EN USB Mouse ButtonMouseControl VirtualColorMixer CardInfo USB Mouse WJoystickMouseControl Arrays DumpFile s01 18b20 ForLooplteration Files s02 Shock IfStatementConditional listfiles s03_Analog_Hall switchCase ReadWrite s04_ Button switchCase2 s05 Remote emission WhileStatementConditional ConnectNoEncryption s06 Passive Buzzer ConnectWithWPA S07 Laser transmit ADXL3xx ScanNetworks s08 full color LED Mar 20 2015 Page 14 of 17 Rev 1 01 nuvoTon Arduino 5 4 NuEdu UNO Board The following table lists the Arduino samples which have been tested on NUC131 NuEdu board 01 Basics 07 Display EEPROM s17_Relay AnalogReadSerial barGraph eeprom_clear 18 tilt switch BareMin
4. switch AnalogWriteMega StringSubstring send s19 mini reed Calibration StringTolnt set mask filter recv s20 Remote Receive Fading StringTolntRGB 9 s21 Joystick PS2 Smoothing 0 DS18x20_Temperature s22_Linear_Hall 04 Co atio p02_Spaceshiplnterface du_Ba s23_reed ASCIITable p03 LoveOMeter ADCtoPWM s24 Flame Dimmer p04 ColorMixingLamp Button s25 Magic light cup Graph p06 LightTheremin Buzzer s26 Digital Temperature Midi p07 Keyboard EEPROM s27 two color LED MultiSerialMega p08 DigitalHourglass IRremote s28 Knock PhysicalPixel p09 MotorizedPinwheel LED S29 Avoid ReadASCllString p10 Zoetrope RGBLED s30 7 color LED SerialCallResponse p14 TweakTheArduinoLogo SevenSegmentDisplay s31 Analog hall magnetic SerialCallResponseASCIl p15 HackingButtons SPIFlash S32 touch SerialEvent USB Keyboard KeyboardLogout s33 High sensitive voice VirtualColorMixer Cardinfo USB Keyboard KeyboardMessage s34 microphone sound 05 Control Datalogger USB Keyboard KeyboardReprogr s35 Finger measuring heartbe Arrays DumpFile USB Keyboard KeyboardSerial s36 Tracking ForLooplteration Files USB KeyboardAndMouseControl s37_Rotate_encode IfStatementConditional listfiles USB Mouse ButtonMouseControl switchCase ReadWrite USB Mouse JoystickMouseContro switchCase2 WIFI USBH KeyboardController WhileStatementConditional ConnectNoEncryption USBH MouseController 06 Senso ConnectWithWPA ADXL3xx ScanNetworks s01_18b20 Mar 20 2015 Page 12 of 17 Rev 1 01 nuvoTon Ar
5. O BOSE suse sat enu ux xxx ARR KR VY REIR ERR E EY Y RERX KENA GER KR EY ERE ERR GER 14 5 4 Nubdu UNGO Board s r ida art Rx FERRE REXA Re RE EREXE SYN ERERE VERERERENXaRERKEYRPEREXNMARAR 15 6 ai jap dae D a a 16 Mar 20 2015 Page 2 of 17 Rev 1 01 nuvoTon Arduino 1 OVERVIEW Arduino is an open source electronics platform based on easy to use hardware and software The NuMicro NuEdu Evaluation Board is an Arduino compatible hardware using NuMicro MCU as the microcontroller Its function can be extended with Arduino add ons Users can use Arduino IDE to develop their applications and leverage large number of open source samples Figure 1 1 NuMicro NuEdu Board with Different Add ons The next chapter introduces the steps to install Arduino IDE and apply patch to support NuMicro NuEdu Evaluation Board Mar 20 2015 Page 3 of 17 Rev 1 01 nuvoTon Arduino eee 2 ARDUINO IDE INSTALLATION Please follow the steps below to install Arduino 1 5 8 IDE and apply patch to support NuMicro MCU Refer to Arduino official website for the usage of Arduino IDE 1 Download Arduino 1 5 8 IDE from http arduino cc en Main OldSoftwareReleases Arduino 1 5 x BETA These packages are no longer supported by the development team 1 5 7 BETA 1 5 6 r2 BETA 1 5 5 BETA 15 4 BETA 15 3 BETA 15 2 BETA Figure 2 1 Download Arduino 1 5 8 2 Extract arduino 1 5 8 windows zip to the installation path Name Date
6. d 01 Basics Knock WiFiWebServer s09_Light_break AnalogReadSerial 07 Display EEPROM s10 two color LED BareMinimum barGraph eeprom clear s11 Buzzer Blink RowColumnScanning eeprom read s12 Analog temperature DigitalReadSerial 08 g eeprom write 13 Digital Temperature Humidity Fade CharacterAnalysis P 14 full color LED ReadAnalogVoltage StringAdditionOperator LoopBack s15 mercury tilt switch StringAppendOperator SPIFlashID s16 Photoresistor BlinkWithoutDelay StringCaseChanges Wire s17 Relay Button StringCharacters master reader 18 tilt switch Debounce StringComparisonOperators master writer s19 mini reed DigitallnputPullup StringConstructors programming EEPROM s20 Remote Receive StateChangeDetection StringlndexOf slave receiver s21 Joystick PS2 toneKeyboard StringLength slave sender s22 Linear Hall 03 Analog StringLengthTrim S23 reed AnalogInOutSerial StringReplace DS18x20 Temperature s24 Flame Analog nput StringStartsWithEndsWith NuEdu_Basic s25 Magic light cup AnalogWriteMega StringSubstring ADCtoPWM S26 Digital Temperature Calibration StringTolnt Button s27_two_ color LED Fading StringTolntRGB Buzzer s28 Knock Smoothin 0 Starte EEPROM s29 Avoid 04 Co atio p02 SpaceshiplInterface IRremote s30 7 color LED ASCIITable p03 LoveOMeter LED s31 Analog hall magnetic Dimmer p04 ColorMixingLamp RGBLED S32 touch
7. duino 5 2 NuEdu NUC240 Board The following table lists the Arduino samples which have been tested on NUC240 NuEdu board 01 Basics Knock WiFiWebServer s04_Button AnalogReadSerial 07 Display EEPROM s05 Remote emission BareMinimum barGraph eeprom clear s06 Passive Buzzer Blink RowColumnScanning eeprom read s07 Laser transmit DigitalReadSerial 08 Strings eeprom write s08 full color LED Fade CharacterAnalysis SPI s09 Light break ReadAnalogVoltage StringAdditionOperator LoopBack S10 two color LED 02 Digital StringAppendOperator SPIFlashID s11 Buzzer BlinkWithoutDelay StringCaseChanges s12 Analog temperature Button StringCharacters master reader s13 Digital Temperature Hu Debounce StringComparisonOperators master writer s14 full color LED DigitallnputPullup StringConstructors programming EEPROM s15 mercury tilt switch StateChangeDetection StringlndexOf slave receiver s16 Photoresistor toneKeyboard StringLength slave sender s17 Relay 03 Analog StringLengthTrim AN B s18 tilt switch AnaloglnOutSerial StringReplace receive check S19 mini reed Analoglnput StringStartsWithEndsWith receive interrupt s20 Remote Receive AnalogWriteMega StringSubstring send s21 Joystick PS2 Calibration StringTolnt set mask filter recv s22 Linear Hall Fading StringTolntRGB OneWire s23_reed Smoothing 04 Communication 10 StarterKit p02_SpaceshipInterface
8. ectively Figure 3 3 Switch Default as UART Mode Pin Number Pin Name Disable 4010 Enable VCOM Mode Mode ICE_VCC On VCOM_Open VCOM_TX VCOM_RX Mar 20 2015 Page 7 of 17 Rev 1 01 nuvoTon Arduino 4 NUEDU EVALUATION BOARD PIN OUT This chapter shows the pin out of different NuEdu Evaluation Boards 4 4 NuEdu M451 Board 00000000 ADC 0 7 LLLI I DL D j j j j j j l i 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 INT1 NU3 NU2 INTO ur mdi 6o 1 o TIMER Me 58 1 C o o lo lo Eo Eo afo o o lo NU4 9 10 11 12 13 aclelolelelelotole a a E E E E LA RE ET I l L RI RD UART Figure 4 1 NuEdu M451 Pin Out Mar 20 2015 Page 8 of 17 Rev 1 01 nuvoTon Arduino eS IS 4 2 NuEdu NUC240 Board 9 00 OO O00 ADC 0 7 31 30 29 24 22 71 20 19 18 17 16 INT NUS U2 INTO NU6 NU8 32 33 3 14 15 Figure 4 2 NuEdu NUC240 Pin Out Mar 20 2015 Page 9 of 17 Rev 1 01 nuvoTon Arduino U R I U UIUUU I UI iI wa_ I IS 4 3 NuEdu NANO130 Board 9O O0O00000 ADC 0 7 31 30 29 22 71 20 19 18 17 16 U2 INTO NU8 32 33 3 Figure 4 3 NuEdu NANO130 Pin Out Mar 20 2015 Page 10 of 17 Rev 1 01 nuvoTon Arduino SS RENEW 4 4 NuEdu UNO Board Legend UNO Defined idi in ELE Pin Reserved Physical Pin
9. etupQ Serial Monitor Ctrl Shift M pus p NuEdu NANO130 Board NuEdu Uno Port NuMaker TRIO Nuvoton NuMicro oid loop Programmer Arduino AVR Boards Burn Bootloader Arduino Yun Arduino Uno Arduino Duemilanove or Diecimila Arduino Nano Arduino Mega or Mega 2560 Arduino Mega ADK Arduino Leonardo Arduino Micro Arduino Esplora Arduino Mini Arduino Ethernet Arduino Fio Arduino BT LilyPad Arduino USB LilyPad Arduino Arduino Pro or Pro Mini Arduino NG or older Arduino Robot Control Figure 2 4 Installation Complete Mar 20 2015 Page 5 of 17 Rev 1 01 nuvoTon Arduino SS 3 HARDWARE SETUP The Arduino IDE consists of source code editor project build tool and also supports firmware download and UART debug function To download firmware to NuEdu evaluation board PC must be connected with the on board Nu Link Me using USB cable The NuEdu Evaluation Board can print out debug message through the USB virtual COM VCOM interface Figure 3 1 NuEdu UNO Hardware Setup Figure 3 2 USB Connection on NuEdu UNO Mar 20 2015 Page 6 of 17 Rev 1 01 nuvoTon Arduino pLI The VCOM function can be used in Arduino IDE Keil and IAR To enable VCOM function on Nu Link Me all SW2 pins need to turn to ON position Otherwise turn pin2 4 to OFF position For the usage of different NuEdu Evaluation Boards please refer to the user manual resp
10. imum RowColumnScanning eeprom read s19 mini reed Blink 08 Strings eeprom_write s20 Remote Receive DigitalReadSerial CharacterAnalysis SPI s21_Joystick_PS2 Fade StringAdditionOperator LoopBack s22 linear Hall ReadAnalogVoltage StringAppendOperator SPIFlashID s23 reed StringCaseChanges 24 Flame BlinkWithoutDelay StringCharacters master reader s25 Magic light cup Button StringComparisonOperators master writer s26 Digital Temperature Debounce StringConstructors programming EEPROM s27 iwo color LED DigitallnputPullup StringlndexOf slave receiver s28 Knock StateChangeDetection StringLength slave sender S29 Avoid toneKeyboard StringLengthTrim s30 7 color LED 03 Analog StringReplace DS18x20 Temperature s31 Analog hall magnetic AnaloglnOutSerial StringStartsWithEndsWith s32 touch Analoglnput StringSubstring ADCtoPWM s33 High sensitive voice AnalogWriteMega StringTolnt Button s34 microphone sound Calibration StringToIntRGB Buzzer s35 Finger measuring heartbeat Fading 10 StarterKit EEPROM s36 Tracking Smoothing p02 Spaceshiplnterface IRremote s37 Rotate encode p03 LoveOMeter LED ASCIITable p04 ColorMixingLamp RGBLED Dimmer p06 LightTheremin SevenSegmentDisplay Graph p07_Keyboard SPIFlash Midi p08 DigitalHourglass PhysicalPixel p09 MotorizedPinwheel s01 18b20 ReadASCllString p10 Zoetrope s02_Shock SerialCallResponse p14 TweakTheArduinoLogo s03 Analog Hall SerialCallResponseASCIl p15 HackingButtons s04 Button SerialEvent D s05_Remote_emission VirtualColorM
11. ixer CardInfo s06 Passive Buzzer Datalogger S07 Laser transmit Arrays DumpFile s08 full color LED ForLooplteration Files s09 Light break IfStatementConditional listfiles s10 two color LED switchCase ReadWrite s11_Buzzer switchCase2 s12 Analog temperature WhileStatementConditional ConnectNoEncryption s13 Digital Temperature Humidity ConnectWithWPA 14 full color LED ADXL3xx ScanNetworks s15 mercury tilt switch Knock WiFiWebServer s16 Photoresistor Mar 20 2015 Page 15 of 17 Rev 1 01 nuvoTon Arduino U R ILr PPU III lt 1 C uas 6 REVISION HISTORY Date Revision Description 2014 11 10 1 00 1 Initially issued 2015 3 20 1 01 1 Merged NuEdu M451 NuEdu NUC240 NuEdu NANO130 NuEdu UNO and NuMaker TRIO into the same platform group 2 Updated sample list to include SernsorsKit_37in1 samples Mar 20 2015 Page 16 of 17 Rev 1 01 nuvoTon Arduino eS U IIT I ZE s Important Notice Nuvoton Products are neither intended nor warranted for usage in systems or equipment any malfunction or failure of which may cause loss of human life bodily injury or severe property damage Such applications are deemed Insecure Usage Insecure usage includes but is not limited to equipment for surgical implementation atomic energy control instruments airplane or spaceship instruments the control or operation of dynamic brake or safety systems designed for vehicular use traffic signal instruments a
12. ll types of safety devices and other applications intended to support or sustain life All Insecure Usage shall be made at customer s risk and in the event that third parties lay claims to Nuvoton as a result of customer s Insecure Usage customer shall indemnify the damages and liabilities thus incurred by Nuvoton Please note that all data and specifications are subject to change without notice All the trademarks of products and companies mentioned in this datasheet belong to their respective owners Mar 20 2015 Page 17 of 17 Rev 1 01
13. modified Type LU File folder File folder di drivers n examples k hardware k java Ji lib k libraries di reference File folder n tools File folder arduino exe 2014 7 6 E 04 2 Application 844 KB arduino debug exe 2014 7 6 04 2 Application 383 KB amp cyggcc s 1 dll 014 7 6 Application extens 102 KB LU It File folder File folder File folder File folder tomm Ir mr z roh mimo amp cygiconv 2 dll 2014 7 6 04 20 Application extens 986 KB amp cygwinl dll 2014 7 6 Application extens 3 041 KB amp cygz dll 2014 7 6 04 20 Application extens 73 KB amp libusb0 dll 2014 7 6 Application extens 43 KB revisions txt 2014 7 6 Text Document 54 KB Figure 2 2 Extract Arduino 1 5 8 Mar 20 2015 Page 4 of 17 Rev 1 01 nuvoTon Arduino eee 3 Double click NuMicro Arduino patch NuMicro Patch For Arduino1 5 8 exe and input the Arduino 1 5 8 installation path NuMicro patch for Arduino 1 5 8 Q Select arduino 1 5 8 windows path C arduino 1 5 8 Figure 2 3 Install NuMicro Arduino Patch 4 After successfully applying the patch five board names NuEdu M451 NuEdu NUC240 NuEdu NANO130 NuEdu NUC131 and NuMaker TRIO can be found in Arduino IDE as shown in the figure below sketch_mar26a Arduino 1 5 8 File Edit Sketch Help Auto Format Ctrl T Archive Sketch M sketch mar25 Fix Encoding amp Reload NuEdu M451 PASTO NuEdu NUC24 void s
14. nuvoTon Arduino E V IT ZR T E ARM Cortex M 32 bit Microcontroller Arduino User Manual for NuMicro MCU Series The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton Nuvoton is providing this document only for reference purposes of NuMicro microcontroller based system design Nuvoton assumes no responsibility for errors or omissions All data and specifications are subject to change without notice For additional information or questions please contact Nuvoton Technology Corporation www nuvoton com Mar 20 2015 Page 1of 17 Rev 1 01 nuvoTon Arduino a Table of Contents 1 OVGIVIEW 3 2 Arduino IDE Instellallort susus vsu eben ke ERER Red seus DR EVEN CODE RO E DE MAD De E Ra a aae 4 3 Hardware Setup menn 6 4 NuEdu Evaluation Board Pin Qutiviccietstvcctatasssntstusviniatsseeuses cs vat ne sata ek ese 8 4 1 NuEdu M451 Board seirer dori eie uu Ru Iu Ca deuda u Ex o a dua Ex OM a x AA Og uve KEAN aati 8 4 2 NuEdu NUG240 Board E ayalapas 9 4 3 NuEdu NANO130 Board rrrrsssssrssssssssssssssssaa 10 4 4 NuEdu UNO Board i ul a US Sa Au S EE ENTE s u TUNES 11 5 reis Mene 12 5 1 N Ed M451 Board e 12 5 2 NuEdu NUC240 Board PC 13 5 3 NubEdu NANOTS

Download Pdf Manuals

image

Related Search

Related Contents

ASCIUGATRICI INDUSTRIALI A CESTELLO 6,5kg MANUALE DI  

Copyright © All rights reserved.
Failed to retrieve file