|HOME PRODUCTS ACCESSOIRES SHOP SUPPORT CONTACT 中文|
|X205 EXPANSION BOARD FOR RASPBERRY PI|
1 x X205 expansion board
1 x USB adapter
1 x 2.4GHz WIFI antenna
4 x nylon spacers (M3 x 20mm)
8 x nylon screws (M3 x 6mm)
|QUICK START GUIDE|
|A. FITTING THE EXPANSION BOARD|
|B. OPERATION SYSTEM|
|C. POWER SUPPLY|
Xseries expansion board supplies the RPi with a regulated +5V through the GPIO header using a 2A poly-resettable (PTC) fuse. With the wide voltage input range (6~20Vdc), the RPi can be powered from a wide variety of external sources such as batteries, 12V power adapters, solar battery sources, etc.
Recommended Power Adapter : 110~240VAC input, 12VDC 2A output
Dimension of input plug (Unit: mm)
Warning: do not connect a +5V supply through the Raspberry Pi micro-USB connector when used with this expansion board.
|D. RS232 COMMUNICATIONS|
The RS232 port is connected to the UART port on the Raspberry Pi using a MAX3232 interface. The MAX3232 IC converts the 3.3V UART port to RS232 voltages allowing communication with RS232 compatible devices over a DB9 serial cable or with the use of a null-modem cable the board allows terminal access with linux on the Raspberry Pi using a terminal application. The RS232 port can be accessed through the terminal block on x205.
Configuring and using terminal application on your PC
PuTTY configuration (COMX, X= Serial port number)
|E. TESTING OF RS485 COMMUNICATIONS|
What is RS485
Please click on the link below for further details of RS485.
Install Dedendecy Libraries (Raspbian)
Python Test Code
Test code(serial_test.py , unzip and save to /home/pi ) :
1 x USB-RS485 converter
Wire Diagram and Test
After the wiring is done, launch a serial terminal. We use X-CTU in our case, and set the baud rate to 9600:
After running serial_test.py, enter the characters in the X-CTU:
|F. MICROPHONE INPUT AND AUDIO OUTPUT|
To configure X300 sound card as the default audio device.
<1> Right-click the volume icon, a pop-up menu appears to allow you to select "USB PnP Sound Device".
<2> Click "Device Settings..." to allow more detailed control of the X300 audio devices – you can access this either under Device Settings from the volume right-click menu or from the Preferences section of the main menu, where it is listed as Audio Device Settings.
<3> From this dialog, select the device you want to control from the drop-down at the top, and then press the Select Controls button to choose which of the controls the device offers that you want to display. Pressing the Make Default button on this window has the same effect as choosing an output source in the volume right-click menu.
<4> Let's record the sound with LXterminal
<5> Press Ctrl + C to abort recording
<6> Playback the recording with aplay
|G. AUDIO INPUT AND OUTPUT INTERFACE|
|H. SETTING RTC TIME|
This page details how to setup the RTC Pi on the Raspbian Jessie image from http://www.raspberrypi.org/downloads
<7> Ensure that the CR2032 coin battery was inserted into the battery holder. Using the expansion board without a battery installed may damage the RTC chip and will stop it from appearing on the I2C bus.
<8> Follow the instructions on how to install and configure I2C on Raspbian Linux.
<9> Once you have installed I2C check that the RTC Pi has been detected using:
The RTC Pi should appear on channel 68 as shown in the screen shot below. If the RTC Pi does not appear check that the battery is installed correctly and is fully charged:
<10> Enable I2C by running:
Find the I2C line where the I2c is black listed
Comment it out by replacing it with the line below
<11> To ensure that the necessary kernel modules are loaded at boot, ensure your /boot/config.txt file has the entry below …
<12> Save your changes by pressing Ctrl-x then Y
<13> Edit /lib/udev/hwclock-set with
<14> Locate the lines and edit
<15> Comment following three lines in config.txt by adding '#' located at start of the line. (check Images below)
<16> Save your changes by pressing Ctrl-x then Y
<17> Reboot your Raspberry Pi
<18> Get the right time set on the Pi ,
<19> Write the system time to the expansion board,
<20> Verify the time ,
If everything worked correctly the expansion board should be initialised on boot and the current date and time will be loaded into Linux.
|I. TESTING THE IR RECEIVER|
<21> Installing LIRC
<22> Add the two lines below to /etc/modules . This will start the modules up on boot. Pin 8 bellow will be used to take the output from the IR sensor.
<23> Save your changes by pressing Ctrl-x then Y
<24> Edit your
<25> Edit /etc/lirc/hardware.conf and have it appear exactly as shown below.
# /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="--uinput" # Don't start lircmd even if there seems to be a good config file # START_LIRCMD=false # Don't start irexec, even if a good config file seems to exist. # START_IREXEC=false # Try to load appropriate kernel modules LOAD_MODULES=true # Run "lircd --driver=help" for a list of supported drivers. DRIVER="default" # usually /dev/lirc0 is the correct setting for systems using udev DEVICE="/dev/lirc0" MODULES="lirc_rpi" # Default configuration files for your hardware if any LIRCD_CONF="" LIRCMD_CONF=""
The highlighted text are the parts that will need changing, though it’s worth checking the rest of the text incase you have a different initial configuration.
<26> Save your changes by pressing Ctrl-x then Y
<27> Reboot the Raspberry Pi
<28> Run these two commands to stop lircd and start outputting raw data from the IR receiver
<29> Point a remote control at your IR receiver and press some buttons. You should see something like this:
|J. ULN2803 8-CHANNEL RC SERVO PORT|
Bring in some muscle to your output pins with 8 mighty Darlingtons! This driver chip contains 8 drivers that can sink 500mA from a selectable 5V or DC input voltage supply and has kickback diodes included inside for driving coils. This will let your little microcontroller or microcomputer power solenoids, DC motors (in one direction) and unipolar stepper motors. The GPIO Pins are connected to ULN2803 inputs through a DIP switch, with the its outputs going to two array of Wire-to-Board header. Alternatively, these ports can be used to supply +5V or input voltage to other external circuitry, or embedded devices.
Please note that this is an 'open collector' driver - it can only be used to connect the load to ground and there will be a 1 Volt (or more) 'drop' across the internal transistors.
Schematic diagram Raspberry Pi GPIO Pin numbering ULN2803 Datasheet
Optional driver to install - WiringPi
<1> Install GIT
<2> Download WiringPi
<3> Enter the directory of wiringPi
<4> Install wiringPi
<5> Test GPIO port
SALES AND AGENT
All Rights Reserved.