[Nut original] teaches you to use Arduino to make a mini mud chat machine

Source: Internet
Author: User



Arduino is a convenient, flexible and easy-to-access open source electronic prototyping platform. Includes hardware (various models of Arduino board) and software (Arduino IDE). Smaller than raspberry (Raspberry Pi), but still powerful. It is built on the open source simple I/O interface version and has a processing/wiring development environment that uses Java-like and C languages. It consists of two main parts: the hardware part is the Arduino circuit board which can be used to make the circuit connection, the other is the Arduino IDE, the program development environment in your computer. As soon as you write program code in the IDE and upload the program to the Arduino board, the program tells the Arduino board what to do.

Arduino is able to perceive the environment through a variety of sensors, and to control the lighting, motors and other devices to feedback and influence the environment. The microcontroller on the board can be programmed in the Arduino programming language, compiled into a binary file, and burned into a microcontroller. The Arduino programming is implemented using the Arduino programming language (based on Wiring) and the Arduino development environment (based on processing). Arduino-based projects can include only Arduino, and some other software that runs on the PC, such as Flash, processing, MaxMSP.

I also just contact Aruidno two days, this small hardware really good, and u disk almost size, 16MH processor, USB interface, serial communication, PWM ... Five very clean and clean.


Compared to the palm:


Code:

 * * * MUD * Copyright sendwave@163.com * 2016-6-28 *//The setup routine runs once when you press 

Reset:void Setup () {serial.begin (38400);
  }//read words from serial void Readwords (char *words, int maxlen) {int len = 0;
  
  strcpy (words, "");
    while (Len < maxlen) {char c = serial.read ();
      if (c < 1) {delay (10);
    Continue
      } if (c = = ' \ n ') {words[len]=0;
    Return
    } Words[len] = C;
      
  Len + +;
  } words[len]=0;
  
Return }//if words match key, then serial print value int matchkeysayvalue (char *words, Char *key, char *value) {  if ( strcmp (words, key) = = 0)      {        Serial.print ("

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.