X205 SKU: EZ-0046: Difference between revisions

From 52Pi Wiki
Jump to navigation Jump to search
(Blanked the page)
Tag: Blanking
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
==X205 EXPANSION BOARD FOR RASPBERRY PI==
[[File:X205 860p2.jpg|left|300px]]
<br style="clear:both;">
----
{|-
|[[File:X205 165p3.jpg|left]]
|[[File:X205 165p4.jpg|none]]
|[[File:X205 165p5.jpg|none]]
|}
<br style="clear:both;">
----
== KEY FEATURES==
{| class="wikitable"
|-
!Parameters !! Values
|-
|Input Voltage || 6V to 20Vdc converted to 5V, 3A via step-down DC/DC converter to power the Raspberry Pi
|-
|RS232 serial communications|| Control the Raspberry Pi over RS232 or connect to external serial accessories
|-
|RS485 serial communications|| You will be able to have a communication port for your field bus directly connected to your RPi!
- It will allow up to 32 devices to communicate through the same data line over a cable length of up to 4,000ft with a maximum data rate of 10Mbit/s.
|-
|Audio || 3.5mm MIC in jack
- 3.5mm stereo audio jack
- Audio IO connector (Microphone input and stereo audio amplifier 3.3Wx2)
|-
|Wireless || WiFi (IEEE 802.11b/g/n) with external antenna
- IR sensor (38KHz)
|-
|USB Storage || Self-powered USB hub with 3 ports
|-
|Real-time clock (RTC) ||  Based on DS3231SN with included CR2032 battery
|-
|GPIO Control ||  8-channel Darlington driver chip  (ULN2803) allowing to control electronic circuits which require more current
|-
|Misc ||  Power output socket
- Camera flex slot so camera can still be used with the expansion  board attached
- DIP switch to remove connection from RPi’s pin header
- Directly connected on top of the Raspberry Pi using the board GPIO header pins
- No wiring nor soldering is required
- Duplicated the 40-pin header of the R-Pi in order to support existing expansion boards
- Suitable for Raspberry Pi Model B+, Raspberry pi 2 Model B and Raspberry Pi 3 Model B NEW!
|-
|Dimensions|| 85 x 56mm (Same size as Raspberry Pi)
|}
----
[[File:X205test1.jpg|left]]
<br style="clear:both;">
----
==PACKING LIST==
*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
*D. RS232 communications
*E. Testing of RS485 communications
*F. Microphone input and audio output
*G. Audio input and output interface
*H. Setting RTC time
*I. Setting up the IR remote
*J. ULN2803 8-channel RC servo port
----
**A. FITTING THE EXPANSION BOARD<br>
1. Push a screws up through the mounting hole on the underside of the Raspberry Pi and screw the spacer down until it is hand tight<br>
[[File:Assembly 275p1.jpg|left]]
<br style="clear:both;">
-----
2. Plugs the expansion board straight into      your Raspberry Pi B+'s GPIO header and  screw down.<br>
[[File:Assembly 275p2.jpg|left]]
<br style="clear:both;">
----
3. Insert the USB adapter
[[File:Assembly 275p4.jpg|left]]
<br style="clear:both;">
----
4. Install the WiFi antenna
[[File:Assembly 275p5.jpg|left]]
<br style="clear:both;">
----
==B. OPERATION SYSTEM==
[[File:Rpi.jpg|left]]
<br style="clear:both;">
[https://www.raspberrypi.org/downloads/raspbian/ Download]
----
==C. POWER SUPPLY==
Xseries expansion board supplies the RPi with a regulated +5V through the GPIO header using a 2A poly-resettable (PTC) fuse.<br>
With the wide voltage input range (6~21Vdc), the RPi can be powered from a wide variety of external sources such as batteries, 12V power adapters, solar battery sources, etc. <br>
<br>
Recommended Power Adapter : 110~240VAC input, 12VDC 2A output  <br>
Dimension of input plug (Unit: mm)<br>
[[File:Ds0101.jpg]]
<br style="clear:both;">
----
D. RS232 COMMUNICATIONS
Introduction


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.
Schematic diagram
----
==E. TESTING OF RS485 COMMUNICATIONS==
*What is RS485
Please click on the link below for further details of RS485.<br>
http://www.radio-electronics.com/info/telecommunications_networks/rs485/rs-485-tutorial-basics.php <br>
*Install Dedendecy Libraries (Raspbian)<br>
1. Update source list<br>
<code>$ sudo apt-get update</code><br>
2 . Install python-pip<br>
<code>$ sudo apt-get install python-pip</code><br>
3.Use pip to install WiringPi (WiringPi is designed for raspberry pi to behave similarly to that of the wiring library under Arduino.  <br>
After this library is  installed,c  or shell or python can use the  function to configure and control GPIOs directly.  <br>
<code>$ sudo pip install wiringpi</code><br>
4. Installed the associated library files of serial ports :<br>
<code>$ sudo apt-get install python-serial</code><br>
5.Test whether the GPIO library and the serial library is installed or not:<br>
<code>$ python</code><br>
<code>$ import RPi.GPIO</code><br>
<code>$ import serial</code><br>
If there is no error , then the two libraries are installed correctly.<br>
[[File:X205test2.jpg|left]]
<br style="clear:both;">
----
6. We need to configure  file ‘/boot/cmdline.txt’ to remove the kernel booting information and debug message:<br>
<code>$ sudo nano / boot / cmdline.txt</code><br>
You can see the following information:<br>
<code>dwc_otg.lpm_enable = 0 console = ttyAMA0, 115200 kgdboc = ttyAMA0, 115200 console = tty1 root = / dev/mmcblk0p2 rootfstype = ext4 elevator = deadline rootwait</code><br>
Remove “console = ttyAMA0, 115200 kgdboc = ttyAMA0, 115200″ so that the information becomes:<br>
<code>dwc_otg.lpm_enable = 0 console = tty1 root = / dev/mmcblk0p2 rootfstype = ext4 elevator = deadline rootwait</code><br>
7. Disable log in from the serial port:<br>
<code>$ sudo nano / etc / inittab</code><br>
and comment out ” T0: 23: respawn :/ sbin / getty-L ​​ttyAMA0 115200 vt100″<br>
8 Restart Raspberry Pi:<br>
<code>$ sudo reboot</code><br>
Now you can use / dev/ttyAMA0 like the regular COM port.<br>
----
*Python Test Code
Test code(serial_test.py , unzip and save to /home/pi ) :
[[File:X205test3.jpg|left]]
<br style="clear:both;">
----
*Test Tools
**1 x Raspberry Pi
**1 x X205 expansion board for Raspberry Pi
**1 x Cable (two conductors)
**1 x  USB-RS485 converter
[[File:RS485 converter.jpg|left]]
<br style="clear:both;">
----
*Wire Diagram and Test
Wiring:<br>
X205 RS485 ‘A’-> USB-RS485 converter ‘ A ‘ <br>
X205 RS485 ‘B’-> USB-RS485 converter ‘ B ‘ <br>
<br>
After the wiring is done, launch a serial terminal. We use X-CTU in our case, and set the baud rate  to 9600:
[[File:X205test4.jpg|left]]
<br style="clear:both;">
After running serial_test.py, enter the characters in the X-CTU:<br>
[[File:X205test5.jpg|left]]
<br style="clear:both;">
[[File:X205test6.jpg|left]]
<br style="clear:both;">
----
==F. MICROPHONE INPUT AND AUDIO OUTPUT==
----
==G. AUDIO INPUT AND OUTPUT INTERFACE==
----
==H. SETTING RTC TIME==
----
==I. TESTING THE IR RECEIVER==
----
==J. ULN2803 8-CHANNEL RC SERVO PORT==
----

Latest revision as of 12:19, 4 August 2026