Difference between revisions of "Template:PI4B Senser Kit User Manual"

From Waveshare Wiki
Jump to: navigation, search
Line 1: Line 1:
=<span style="color:#FF0000;">Configure Raspberry Pi</span>=
+
==<span style="color:#FF0000;">Configure Raspberry Pi</span>==
 
{{RPI open i2c}}
 
{{RPI open i2c}}
 
{{RPI open spi}}
 
{{RPI open spi}}
Line 49: Line 49:
 
3) Reboot Raspberry Pi:<br />
 
3) Reboot Raspberry Pi:<br />
 
  sudo reboot
 
  sudo reboot
After rebooting, the hardware serial of Raspberry Pi is enabled and the login shell function is disabled. If you want to access Raspberry Pi via serial port, you need to reset all the setting and reboot.<br />
+
After rebooting, the hardware serial of Raspberry Pi is enabled and the login shell function is disabled. If you want to access Raspberry Pi via serial port, you need to reset all the settings and reboot.<br />
  
 
===Print data via serial Port===
 
===Print data via serial Port===
1) Users should configure the jumpers on board for enable serial port:<br />
+
1) Users should configure the jumpers on board for enabling the serial port:<br />
 
*Connect CP_RX to P_TX
 
*Connect CP_RX to P_TX
 
*Connect CP_TX to P_RX  
 
*Connect CP_TX to P_RX  
2)Run putty software in host PC and configure:<br />
+
2)Run putty software on the host PC and configure:<br />
*Serial line: Select the COM port according the Devive Manager
+
*Serial line: Select the COM port according to the Devive Manager
*Speed: Set the buad rate to
+
*Speed: Set the baud rate to
 
*Connection type: Choose Serial。
 
*Connection type: Choose Serial。
 
3) Copy the program/Xbee/send folder to Raspberry Pi and go into send folder, run the following commands:<br />
 
3) Copy the program/Xbee/send folder to Raspberry Pi and go into send folder, run the following commands:<br />
Line 94: Line 94:
  
 
===Configure XBee-A===
 
===Configure XBee-A===
1) Click Modem Configuration Option, and click Read button to read the parameter of XBee: <br />
+
1) Click Modem Configuration Option, and click the Read button to read the parameter of XBee: <br />
 
[[file:ARPI600_6.png|300px]]<br />
 
[[file:ARPI600_6.png|300px]]<br />
 
2) Select ZIBGEE ROUTER/END DEVICE AT from Function Set box: <br />
 
2) Select ZIBGEE ROUTER/END DEVICE AT from Function Set box: <br />
Line 102: Line 102:
 
*DH: 0
 
*DH: 0
 
*DL: 0
 
*DL: 0
4) Click Write button to save the settings of XBee-A.<br />
+
4) Click the Write button to save the settings of XBee-A.<br />
  
 
===Configure XBee-B===
 
===Configure XBee-B===
Line 113: Line 113:
 
*DL: ffff
 
*DL: ffff
 
4) Click the Write button to save the settings of XBee-B. <br />
 
4) Click the Write button to save the settings of XBee-B. <br />
5) After setting, run two X-CTU windows in the host PC and select the corresponding COM port in the PC Setting option, then you can test the point to point communication between two XBee modules. <br />
+
5) After setting, run two X-CTU windows in the host PC and select the corresponding COM port in the PC Setting option, then you can test the point-to-point communication between two XBee modules. <br />
6) In the terminal of X-CTU (XBee-A), input the data and the data will be transmitted to XBee-B and printed in terminal of X-CTU software (Bee-B), Blue is the data transmitted and Red is the data Received. <br />
+
6) In the terminal of X-CTU (XBee-A), input the data, and the data will be transmitted to XBee-B and printed in the terminal of X-CTU software (Bee-B), Blue is the data transmitted and Red is the data Received. <br />
 
[[file:ARPI600_8.png|300px]]<br />
 
[[file:ARPI600_8.png|300px]]<br />
  
 
==Wireless Communicating Between XBee Modules==
 
==Wireless Communicating Between XBee Modules==
Set up and configure XBee modules as above guides first. Then we can configure Raspberry Pi for wireless communicating.<br />
+
Set up and configure XBee modules like the above guides first. Then we can configure Raspberry Pi for wireless communication.<br />
 
1)  Configure jumers of ARPI600: <br />
 
1)  Configure jumers of ARPI600: <br />
 
*Connect XB_RX to P_TX
 
*Connect XB_RX to P_TX
Line 213: Line 213:
 
|D13||SCK
 
|D13||SCK
 
|}
 
|}
2) You can configure the SPI interface by changing the setting of 0 ohm resistor as below:<br />
+
2) You can configure the SPI interface by changing the setting of 0ohm resistor as below:<br />
 
[[file:ARPI600_15.png|300px]]<br />
 
[[file:ARPI600_15.png|300px]]<br />
 
The resistors are solders by default:<br />
 
The resistors are solders by default:<br />
*SCK is connected D13
+
*SCK is connected to D13
 
*MISO is connected to D12
 
*MISO is connected to D12
 
*MOSI is connected to D11
 
*MOSI is connected to D11
Line 245: Line 245:
 
|A5||MOSI
 
|A5||MOSI
 
|}
 
|}
b)If the A0~A5 are connected to 3, they are works as AD pins.<br />
+
b)If the A0~A5 is connected to 3, they are works as AD pins.<br />
 
4) You can connect A4 to P_SCL and A5 to P_SD for connecting I2C devices. They are disconnected by default.<br />
 
4) You can connect A4 to P_SCL and A5 to P_SD for connecting I2C devices. They are disconnected by default.<br />
Note: You can change the setting of pins. (Please confirm it with Waveshare first if you want to change it, otherwise, the board lose warranty.<br />
+
Note: You can change the setting of pins. (Please confirm it with Waveshare first if you want to change it, otherwise, the board lose the warranty.<br />
 
[[file:ARPI600_17.png|300px]]<br />
 
[[file:ARPI600_17.png|300px]]<br />
 
5) The pins for sensors are extended in ARPI600 board:<br />
 
5) The pins for sensors are extended in ARPI600 board:<br />
Line 255: Line 255:
 
You can connect sensors to these pins.<br />
 
You can connect sensors to these pins.<br />
  
===ARPI600连接传感器套件(需另外选购)===
+
===ARPI600 Connect Sensors (Should be purchased separately)===
以下操作都需把ARPI600插上树莓派使用。如果只有ARPI600和传感器套件,却没有树莓派的话,那么是无法使用的。<br />
+
The following examples requires Raspberry Pi, you need to connect the ARPI600 board and related sensors to the Raspberry Pi.。<br />
  
 
*Color Sensor
 
*Color Sensor
Line 284: Line 284:
 
  cd Color_Sensor
 
  cd Color_Sensor
 
  sudo ./Color_Sensor
 
  sudo ./Color_Sensor
4) The sensor will fist take the white balance process for 2s and then output the color data.<br />
+
4) The sensor will first take the white balance process for 2s and then output the color data.<br />
 
5) You can press Ctrl+C to stop the codes<br />
 
5) You can press Ctrl+C to stop the codes<br />
  
Line 330: Line 330:
 
  cd Metal_Sensor
 
  cd Metal_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) The LED of sensor lights on when the sensor touches live metal.<br />
+
4) The LED of the sensor lights on when the sensor touches live metal.<br />
5) The data changes according to the touching between sensor and live metal.<br />
+
5) The data changes according to the touching between the sensor and live metal.<br />
 
6) You can press Ctrl+C to stop code<br />
 
6) You can press Ctrl+C to stop code<br />
  
Line 352: Line 352:
 
  cd Hall_Sensor
 
  cd Hall_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) Colose the sensor to magnet, the indicator turns on.<br />
+
4) Close the sensor to the magnet, the indicator turns on.<br />
5)The data output changes according the touching between sensor and magnet.<br />
+
5)The data output changes according to the touching between the sensor and magnet.<br />
 
6)You can press Ctrl+C to stop code<br />
 
6)You can press Ctrl+C to stop code<br />
  
Line 374: Line 374:
 
  cd Infrared_Reflective_Sensor
 
  cd Infrared_Reflective_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) The indicators tuns on when the sensor detects obstacle.<br />
+
4) The indicators tune on when the sensor detects obstacles.<br />
5) The data output is changed according to the distance of obstacle.<br />
+
5) The data output is changed according to the distance of the obstacle.<br />
 
6) You can press Ctrl+C to stop code<br />
 
6) You can press Ctrl+C to stop code<br />
  
Line 396: Line 396:
 
  cd Laser_Sensor
 
  cd Laser_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) Put an object obove the sensors, the indicator of sensor turns on.<br />
+
4) Put an object above the sensors, the indicator of the sensor turns on.<br />
 
5) You can press Ctrl+C to stop code<br />
 
5) You can press Ctrl+C to stop code<br />
  
Line 414: Line 414:
 
|VCC||3.3V
 
|VCC||3.3V
 
|}
 
|}
3) Copyt the Moisture_Sensor folder to Raspberry Pi and run the following commands:<br />
+
3) Copy the Moisture_Sensor folder to Raspberry Pi and run the following commands:<br />
 
  cd Moisture_Sensor
 
  cd Moisture_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) Inset the the sensor to soil watering, the data will change.<br />
+
4) Inset the sensor to soil watering, the data will change.<br />
 
5) You can press Ctrl+C to stop codes<br />
 
5) You can press Ctrl+C to stop codes<br />
  
Line 437: Line 437:
 
|VCC||3.3V
 
|VCC||3.3V
 
|}
 
|}
3) Copy the Rotation_Sensor folers to Raspberry Pi and runthe following commands:<br />
+
3) Copy the Rotation_Sensor folders to Raspberry Pi and run the following commands:<br />
 
  cd Rotation_Sensor
 
  cd Rotation_Sensor
 
  sudo ./Rotation_Sensor
 
  sudo ./Rotation_Sensor
4) Trun the sensor clockwisely or anticlocwisely, press the potentiometer, the data output changes.<br />
+
4) Turn the sensor clockwise or anticlockwise, press the potentiometer, and the data output changes.<br />
 
  Turn right!
 
  Turn right!
 
  Turn left!
 
  Turn left!
Line 471: Line 471:
 
  cd Sound_Sensor
 
  cd Sound_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) The indicator of sensor turns on when the sensor close to sounds.<br />
+
4) The indicator of the sensor turns on when the sensor is close to sounds.<br />
 
5) The data changes while the distance change.<br />
 
5) The data changes while the distance change.<br />
6) You can press Ctrl+C to stop code.<br />
+
6) You can press Ctrl+C to stop the code.<br />
  
 
*Temperature-Humidity Sensor<br />
 
*Temperature-Humidity Sensor<br />
Line 515: Line 515:
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
 
4) The sensor requires about 1 minute to warm up. <br />
 
4) The sensor requires about 1 minute to warm up. <br />
5) Put the sensor into testing equipment with gases, the indicator of sensor turns on.<br />
+
5) Put the sensor into testing equipment with gases, the indicator of the sensor turns on.<br />
 
6) You can press Ctrl+C to stop code<br />
 
6) You can press Ctrl+C to stop code<br />
  
Line 553: Line 553:
 
  cd UV_Sensor
 
  cd UV_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) The data changes when detecting UV wave.<br />
+
4) The data changes when detecting UV waves.<br />
 
5)You can press Ctrl+C to stop code<br />
 
5)You can press Ctrl+C to stop code<br />
  
Line 569: Line 569:
 
|VCC||3.3V
 
|VCC||3.3V
 
|}
 
|}
3) Copyt the Liquid_Level_Sensor folder to Raspberry Pi and run the following commands:<br />
+
3) Copy the Liquid_Level_Sensor folder to Raspberry Pi and run the following commands:<br />
 
  cd Liquid_Level_Sensor
 
  cd Liquid_Level_Sensor
 
  sudo ./General_Sensor
 
  sudo ./General_Sensor
4) Put the sensor in water, the data output changes.<br />
+
4) Put the sensor in water, and the data output changes.<br />
 
5) You can press Ctrl+C to stop code<br />
 
5) You can press Ctrl+C to stop code<br />

Revision as of 06:53, 28 April 2022

Configure Raspberry Pi

Enable I2C Interface

Open a terminal and run the following commands:

sudo raspi-config 
Choose Interfacing Options -> I2C ->yes 

Reboot Raspberry Pi:

sudo reboot

RPI open i2c.png

Enable SPI interface

  • Open terminal, use command to enter the configuration page
sudo raspi-config
Choose Interfacing Options -> SPI -> Yes  to enable SPI interface

RPI open spi.png
Reboot Raspberry Pi:

sudo reboot

Please make sure that SPI interface was not used by other devices

Enable UART

If the module is set to UART mode and is connected to the UART interface of the Raspberry Pi, the UART of the Raspberry Pi also needs to be enabled accordingly. Since the Raspberry Pi serial port is used for terminal debugging by default, if you want to use the serial port, you need to modify the Raspberry Pi settings. Execute the following command to enter the Raspberry Pi configuration:

sudo raspi-config

Choose Interfacing Options -> Serial -> No -> Yes
You need to disable the login shell and enable the hardware serial

L76X GPS Module rpi serial.png


Reboot Raspberry Pi

sudo reboot

Install libraries

  • Install BCM2835 libraries
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.64.tar.gz
tar zxvf bcm2835-1.60.tar.gz 
cd bcm2835-1.64/
sudo ./configure
sudo make
sudo make check
sudo make install
#For more details, please refer to http://www.airspayce.com/mikem/bcm2835/
  • Install WiringPi libraries
sudo apt-get install wiringpi

#For Pi 4, you need to update it:
cd /tmp
wget https://project-downloads.drogon.net/wiringpi-latest.deb
sudo dpkg -i wiringpi-latest.deb
gpio -v
#You will get 2.52 information if you install it correctly
  • python
sudo apt-get updata
sudo apt-get install ttf-wqy-zenhei
sudo apt-get install python-pip 
sudo pip install RPi.GPIO
sudo pip install spidev
sudo apt-get install python-smbus
sudo apt-get install python-serial
sudo pip install rpi_ws281x

Download Demo codes

sudo apt-get install p7zip
wget http://www.waveshare.com/w/upload/3/37/ARPI600.7z
7zr x ARPI600.7z -r -o./ARPI600
sudo chmod 777 -R ARPI600
cd ARPI600/RaspberryPi/ARPI600_Code

Control sensors by Serial port

Configure Serial Port

1) Open a terminal and run the following commands:

sudo nano /boot/cmdline.txt

Change the line below:

wc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait

to:

dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4
elevator=deadline rootwait

Save and exit (Ctrl+X, Y)
2) Run the following command:

sudo nano /etc/inittab

Modify the line below:

#Spawn a getty on Raspberry Pi serial line
T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

to:

#Spawn a getty on Raspberry Pi serial line
#T0:23:respawn:/sbin/getty -L ttyAMA0 115200 vt100

Save and exit (Ctrl+X, Y)
3) Reboot Raspberry Pi:

sudo reboot

After rebooting, the hardware serial of Raspberry Pi is enabled and the login shell function is disabled. If you want to access Raspberry Pi via serial port, you need to reset all the settings and reboot.

Print data via serial Port

1) Users should configure the jumpers on board for enabling the serial port:

  • Connect CP_RX to P_TX
  • Connect CP_TX to P_RX

2)Run putty software on the host PC and configure:

  • Serial line: Select the COM port according to the Devive Manager
  • Speed: Set the baud rate to
  • Connection type: Choose Serial。

3) Copy the program/Xbee/send folder to Raspberry Pi and go into send folder, run the following commands:

sudo make
sudo ./serialTest

The serial port will print data as below:
ARPI600 1.png

Set up a wireless network with 2 Xbee modules

Preparation

1) Two Xbee modules
2) Two ARPI600 modules
3) Two Raspberry Pi

  • We divide them to A group and B group (XBee-A,ARPI600-A,XBee-B,ARPI600-B)

Install X-CRU tool

1) Install software/X-CTU V5.2.8.6.exe in host PC
ARPI600 2.png
2) Configure XBee mdoule

  • Baud: 9600
  • Data Bite: 8
  • Parity: NONE
  • Stop: 1

Test XBee in host PCe

1) Connect XBee-A to ARPI600-A. Connect XBee-B to ARPI600-B.
2) Configure jumpers to enable the XBee:
ARPI600 3.png

  • Connect XB_RX to CP_RX
  • Connect CP_TX to XB_TX

3) Power on the Raspberry Pi
4) Click Test/Query button to check if the XBee module is connected successfully:
ARPI600 4.png
5) The module is connected normally if you get the following result:
ARPI600 5.png

Configure XBee-A

1) Click Modem Configuration Option, and click the Read button to read the parameter of XBee:
ARPI600 6.png
2) Select ZIBGEE ROUTER/END DEVICE AT from Function Set box:
ARPI600 7.png
3) Configure Networking parameter as below:

  • ID: 234
  • DH: 0
  • DL: 0

4) Click the Write button to save the settings of XBee-A.

Configure XBee-B

1) Click Modem Configuration Option, and click the Read button to read the parameter of XBee.
2) Select ZIGBEE COORDINATOR AT from Function Set box:
ARPI600 7.png
3) Configure Networking parameter as below:

  • ID: 234
  • DH: 0
  • DL: ffff

4) Click the Write button to save the settings of XBee-B.
5) After setting, run two X-CTU windows in the host PC and select the corresponding COM port in the PC Setting option, then you can test the point-to-point communication between two XBee modules.
6) In the terminal of X-CTU (XBee-A), input the data, and the data will be transmitted to XBee-B and printed in the terminal of X-CTU software (Bee-B), Blue is the data transmitted and Red is the data Received.
ARPI600 8.png

Wireless Communicating Between XBee Modules

Set up and configure XBee modules like the above guides first. Then we can configure Raspberry Pi for wireless communication.
1) Configure jumers of ARPI600:

  • Connect XB_RX to P_TX
  • Connect XB_TX to P_RX

ARPI600 9.png
2) Testing:
Run the following commands:

cd /Xbee/getdata
sudo make
sudo ./serialTest

Data will be printed as below:
ARPI600 10.png
Go into the send folder and run the following commands:

sudo make
sudo ./serialTest

The receiver will printed the data received:
ARPI600 11.png

RTC

1) Connectg the RTC JMPjumpers
2) Run the LXTerminal and input:

i2cdetect -y 1

3) The i2c address of PCF8563 should be printed.
ARPI600 12.png
4)Run the following commands in LXTerminal terminal:

modprobei2c-dev
echo pcf8563 0x51 > /sys/class/i2c-adapter/i2c-1/new_device
hwclock -r#(Read the RTC time)

The time of PCF8563 is printed in LXTerminal, it may be different with system time
5) Run the following commands in LXTerminal:

hwclock -w #(Write the system time to PCF8563)
hwclock -r #(Read the PCF8563 time)
hwclock -s #(Synchronize the system time and RTC)

AD(Onboard TLC1543)

Configure A0 Pin

1) Install libraries (ignore if you have done)
2) Set REF voltage:

  • Connect REF to 5V: the REF voltage of the AD chip is 5V (Default)
  • Connect REF连 to 3V3: the REF voltage of the AD chip is 3.3V.

You can only choose one setting when configure the REF voltage.
ARPI600 13.png
3) Copy the program/AD_TLC1543 folder to Raspberry Pi and go into it. Run wit the following commands

sudo make
sudo ./tlc1543

4) The data sent from AD0 pin will be printed.
5) Connect the T_A0 pin to A0, then you can connect the A0 pin to any sensors for Analog signal reading:
ARPI600 14.png

Configure AD pins

1) If you want to read the data of other AD pins, you can modify tlc1543.c file:
sudo nano tlc1543.c Find the line:
re=ADCSelChannel(0); Change 0 to other number of pin for testing other AD pins (for example: re=ADCSelChannel(1);
Save and exti (Ctrl+X, Y)
2)Run the following commands to test:

sudo make
sudo ./tlc1543

Interface

Pinout

1) The Arduino compitble interface onboard are related to the GPIO of Raspberry:

Arduino Compatible Interface Raspberry Pi IO
D0 P_RX
D1 P_TX
D2 P0
D3 P1
D4 P2
D5 P3
D6 P4
D7 P5
D8 P6
D9 P7
D10 CE0
D11 MOSI
D12 MISO
D13 SCK

2) You can configure the SPI interface by changing the setting of 0ohm resistor as below:
ARPI600 15.png
The resistors are solders by default:

  • SCK is connected to D13
  • MISO is connected to D12
  • MOSI is connected to D11

If you change the resistors as below

  • D13 to P26
  • D12 to IO_SD
  • D11 to IO_SC

The D11, D12 and D13 pins are connected to GPIO of Raspberry Pi directly.
Note: You can change the setting of resistors. (Please confirm it with Waveshare first if you want to change it, otherwise, the board lose warranty.
3) The A0~A5 pisn are configurable, you can configure the as GPIO pin or AD pins.
ARPI600 16.png
a) If A0~A5 pins are connected to 1, they are used as GPIOs:

Arduino interface Raspberry Pi IO
A0 CE1
A1 P5
A2 P6
A3 P7
A4 CE0
A5 MOSI

b)If the A0~A5 is connected to 3, they are works as AD pins.
4) You can connect A4 to P_SCL and A5 to P_SD for connecting I2C devices. They are disconnected by default.
Note: You can change the setting of pins. (Please confirm it with Waveshare first if you want to change it, otherwise, the board lose the warranty.
ARPI600 17.png
5) The pins for sensors are extended in ARPI600 board:
ARPI600 18.png

  • The pins (A6-A10) in A area are connected to TLC1543 chip for analog signals.
  • The pins in D ara are connected to P0-P4 IO of Raspberry Pi for digital signal.

You can connect sensors to these pins.

ARPI600 Connect Sensors (Should be purchased separately)

The following examples requires Raspberry Pi, you need to connect the ARPI600 board and related sensors to the Raspberry Pi.。

  • Color Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the color sensor to ARPI600:

Color Sensor ARPI600
LED 3.3V
OUT P0
S3 P4
S2 P3
S1 P2
S0 P1
GND GND
VCC 3.3V

3) Copy the folder of Color_Sensor to Raspberry Pi and run it:

cd Color_Sensor
sudo ./Color_Sensor

4) The sensor will first take the white balance process for 2s and then output the color data.
5) You can press Ctrl+C to stop the codes

  • Flame Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Flame Sensor ARPI600
DOUT NC
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the folder of Flame_Sensor to Raspberry Pi and run the following commands:

cd Flame_Sensor
sudo ./General_Sensor

4) The LED of sensor lights on when it close to fire.
5) The outut data are changing while the distance between sensor and fire is changing.
6) You can press Ctrl+C to stop cpdes
Note: This sensor isn't fireproof, you cannot put it in fire direclty.

  • Metal Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Metal Sensor ARPI600
DOUT NC
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the folder of Metal_Sensor to Raspberry Pi, and run the following commands:

cd Metal_Sensor
sudo ./General_Sensor

4) The LED of the sensor lights on when the sensor touches live metal.
5) The data changes according to the touching between the sensor and live metal.
6) You can press Ctrl+C to stop code

  • Hall Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Hall Sensor ARPI600
NC
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the folder of Hall Sensor to Raspberry Pi and run the following commands:

cd Hall_Sensor
sudo ./General_Sensor

4) Close the sensor to the magnet, the indicator turns on.
5)The data output changes according to the touching between the sensor and magnet.
6)You can press Ctrl+C to stop code

  • Infrared Reflective Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Infrared Reflective Sensor ARPI600
DOUT NC
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the Infrared_Reflective_Sensor folder to Raspberry Pi and run the following commands:

cd Infrared_Reflective_Sensor
sudo ./General_Sensor

4) The indicators tune on when the sensor detects obstacles.
5) The data output is changed according to the distance of the obstacle.
6) You can press Ctrl+C to stop code

  • Laser Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Laser Sensor ARPI600
DOUT NC
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the Laser_Sensor folder to Raspberry Pi and run the following commands:

cd Laser_Sensor
sudo ./General_Sensor

4) Put an object above the sensors, the indicator of the sensor turns on.
5) You can press Ctrl+C to stop code

  • Moisture Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Moisture Sensor ARPI600
DOUT NC
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the Moisture_Sensor folder to Raspberry Pi and run the following commands:

cd Moisture_Sensor
sudo ./General_Sensor

4) Inset the sensor to soil watering, the data will change.
5) You can press Ctrl+C to stop codes

  • Rotation Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Moisture Sensor ARPI600
SIA P0
SIB P1
SW P2
GND GND
VCC 3.3V

3) Copy the Rotation_Sensor folders to Raspberry Pi and run the following commands:

cd Rotation_Sensor
sudo ./Rotation_Sensor

4) Turn the sensor clockwise or anticlockwise, press the potentiometer, and the data output changes.

Turn right!
Turn left!
Turn down!

5) Connect the SIA, SIB, SW pins tologic analyzer(CH0, CH1, CH2).
Turn the potentiometer clockwisely:
ARPI600 19.png
Turn the potenitmerter anticlockwisely:
ARPI600 20.png
Press the button in encoder:
ARPI600 21.png
6)You can press Ctrl+C to stop codes.

  • Sound Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

Sound Sensor ARPI600
DOUT NC
AOUT T_A6
GND GND
VCC 3.3V

3)Copy the Sound_Sensor folder to Raspberry Pi and run the following commands:

cd Sound_Sensor
sudo ./General_Sensor

4) The indicator of the sensor turns on when the sensor is close to sounds.
5) The data changes while the distance change.
6) You can press Ctrl+C to stop the code.

  • Temperature-Humidity Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

PIN ARPI600
DOUT P0
GND GND
VCC 3.3V

3) Copy the Temperature-Humidity_Sensor folder to Raspberry Pi and run the following commands:

cd Temperature-Humidity_Sensor
sudo ./DHT11

4)Temperature and humidity data are printed

Humidity=33 
Temperature=28

5) You can press Ctrl+C to stop code

  • MQ-5 Gas Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

PIN ARPI600
DOUT NC
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the MQ-5_Gas_Sensor folder to Raspberry Pi and run the following commands:

cd MQ-5_Gas_Sensor
sudo ./General_Sensor

4) The sensor requires about 1 minute to warm up.
5) Put the sensor into testing equipment with gases, the indicator of the sensor turns on.
6) You can press Ctrl+C to stop code

  • Tilt Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

PIN ARPI600
DOUT T_A6
GND GND
VCC 3.3V

3) Copy the Tilt_Sensor folder to Raspberry Pi and run the following commands:

cd Tilt_Sensor
sudo ./General_Sensor

4) Shake the sensor to check the data and indicator.
5) You can press Ctrl+C to stop code

  • UV Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

PIN ARPI600
T_A6
GND GND
VCC 3.3V

3) Copy the UV_Sensor folder to Raspberry Pi and run the following commands

cd UV_Sensor
sudo ./General_Sensor

4) The data changes when detecting UV waves.
5)You can press Ctrl+C to stop code

  • Liquid Level Sensor

1) Connect the ARPI600 to Raspberry Pi
2) Connect the sensor to ARPI600:

PIN ARPI600
AOUT T_A6
GND GND
VCC 3.3V

3) Copy the Liquid_Level_Sensor folder to Raspberry Pi and run the following commands:

cd Liquid_Level_Sensor
sudo ./General_Sensor

4) Put the sensor in water, and the data output changes.
5) You can press Ctrl+C to stop code