From 2e8e89f35b81ea271cc46ab0c3216948e1d98a4f Mon Sep 17 00:00:00 2001 From: LottesLiu Date: Thu, 20 Jun 2019 19:19:52 +0800 Subject: [PATCH] add op.md --- docs/en/unit/{op90.md => op.md} | 0 docs/en/unit/op180.md | 95 --------------------------------- 2 files changed, 95 deletions(-) rename docs/en/unit/{op90.md => op.md} (100%) delete mode 100644 docs/en/unit/op180.md diff --git a/docs/en/unit/op90.md b/docs/en/unit/op.md similarity index 100% rename from docs/en/unit/op90.md rename to docs/en/unit/op.md diff --git a/docs/en/unit/op180.md b/docs/en/unit/op180.md deleted file mode 100644 index 0a63b176..00000000 --- a/docs/en/unit/op180.md +++ /dev/null @@ -1,95 +0,0 @@ -# Unit OP 90 {docsify-ignore-all} - - - -*** - -:memo:**[Description](#Description)**      :octocat:**[Example](#Example)**       :electric_plug:**[Schematic](#Schematic)**       ðŸ›’**[Purchase](https://www.aliexpress.com/store/product/M5Stack-Official-ADC-Unit-16-Bit-I2C-GROVE-ADS1100-Module-0V-to-12V-analog-to-digital/3226069_32946953374.html?spm=a2g1x.12024536.productList_5885013.pic_7)** - -## Description - -**OP.90** and **OP.180** are two limit switches with different orientation placement. -
-They are used for controlling machinery as part of a control system, as a safety interlock, or to count objects passing a point.A limit switch is an electromechanical device that consists of an actuator mechanically linked to a set of contacts. When an object comes into contact with the actuator, the device operates the contacts to make or break an electrical connection -
-The actuator of this Unit is consist of a pair of IR part, emitter side and receiver side. The IR emitter will keep sending IR wave while the receiver will keep detecting the IR wave. The IR is directly emitted from one side to another side, so if there's no object in between, the receiver side would get the IR signal. This is how it detecting a break an electrical connection. - - - -### Product Features - -- Horizontal/vertical -- IR limit switch - -## Include - -- 1x ADC unit -- 1x GROVE Cable -- 1x HT3.96 Male Socket(2 pins) - -## Application - -- Door switch -- machinery control - - -## Dcumentation - - -## Schematic - - - -## EasyLoader - - - - - ->1.EasyLoader is a simple and fast program burner, and each product page has a product-related case program for EasyLoader. - ->2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click **"Burn"** to start burning. - -!>3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. [Click here to view the driver installation tutorial](en/related_documents/establish_serial_connection) - -## Example - -### 1. Arduino IDE - -*The below code is incomplete(just for usage). If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ADC/Arduino/ADC_ADS1100).* - -```arduino -#include -#include -#include "ADS1100.h" - -#define ADS1100_DEFAULT_ADDRESS 0x48 - -// declaration -byte error; -int8_t address; - -//new a object -ADS1100 ads; - -// initialization -M5.begin(true, false, false); -ads.getAddr_ADS1100(ADS1100_DEFAULT_ADDRESS);// 0x48, 1001 000 (ADDR = GND) -ads.setGain(GAIN_ONE); // 1x gain(default) -ads.setMode(MODE_CONTIN); // Continuous conversion mode (default) -ads.setRate(RATE_8); // 8SPS (default) -ads.setOSMode(OSMODE_SINGLE); // Set to start a single-conversion -ads.begin(); - -// read data -address = ads.ads_i2cAddress; -Wire.beginTransmission(address); -Wire.endTransmission(); -ads.Measure_Differential(); -``` - -### 2. UIFlow - -*If you want the complete code, please click [here](https://github.com/m5stack/M5-ProductExampleCodes/tree/master/Unit/ADC/UIFlow).* - - \ No newline at end of file