top of page

Python with METAS

What is Python?

Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C++. It is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many Unix variants, on the Mac, and on Windows 2000 and later.

To find out more, start with The Python Tutorial. The Beginner’s Guide to Python links to other introductory tutorials and resources for learning PythonLua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-

What is Python good for?

 

Python is a high-level general-purpose programming language that can be applied to many different classes of problems.

The language comes with a large standard library that covers areas such as string processing (regular expressions, Unicode, calculating differences between files), Internet protocols (HTTP, FTP, SMTP, XML-RPC, POP, IMAP, CGI programming), software engineering (unit testing, logging, profiling, parsing Python code), and operating system interfaces (system calls, filesystems, TCP/IP sockets). Look at the table of contents for The Python Standard Library to get an idea of what’s available. A wide variety of third-party extensions are also available. Consult the Python Package Index to find packages of interest to you.

METAS and Python
You can program METAS NodeOne using Python
Make sure is connect with USB port.

Python Tutorial:

1. Digital

- Set the pin of the NodeOne to output pin. Then, we can control the digital value 0 or 1. If value is 1, the output will be turned on. Otherwise, it will be turned off.

see example

2. Analog

- Get the value from input pin of NodeOne. The value is ranged from 0 - 1023.

- There are 2 input pin. They are A0 and A1.

see example

3. PWM

- Set the pin of the NodeOne to pwm pin. For pwm pin, we can control the output by intensity from 0-1023. For example, the brightness for LED would be highest if the pwm value is set to 1023. For pwm value 500, the intensity would be half.

see example

4. Servo

- Control the servo pin of Metas NodeOne in degree 0 - 180. There are 4 pins which are 1 to 4.

see example

5. Motor

- Control the motor pin of Metas NodeOne. We can control the direction and the speed of the motor.

see example

Office Hour

 

 

Mon - Fri 9:00am-06:00pm

Tel: (852) 3707 4719

 

 

  • YouTube - Black Circle
  • Facebook - Black Circle
  • Instagram - Black Circle

Address

 

Suite 19, 5/F, Hung To Centre,

94-96 How Ming Street,

Kwun Tong, Hong Kong

bottom of page