Home
ZIO, Motherboard - Zilogic Systems
Contents
1. GPIO Port Detecting External Voltage Any external voltage input can be connected to the ZIO Input signal through a MOSFET or a BJT An example circuit using a MOSFET is shown below Zilogic Systems Page 13 ZIO Motherboard User Manual Rev 1 0 GPIO Input O GPIO Port If the input voltage Vs is greater than the threshold voltage of the MOSFET the Input signal will be low or else it will be high An example circuit using a BJT is shown below GPIO Input O GPIO Port If the input current ls is greater than h 0 5mA hee the Input signal will be low or else it will be high For all practical purposes a 1mA input current is sufficient to make the Input signal go low The base resistance Rp has to be chosen to make the Input signal low when the required input voltage is driven Rb Vs Vbe h Connecting an Analog Comparator An analog comparator can be used to identify if the input voltage is larger than a specified reference voltage Any operational amplifier can be used as a comparator but a dedicated comparators like LM339 which provide open collector CMOS TTL outputs are suitable for interfacing with logic circuits An example circuit is shown in the following diagram LM339 5V GPIO Input O GND Vin GPIO Port Isolating inputs using opto coupler As in the case of outputs inputs can also be electrically isolated using opto couplers Isolated Subsystem GPI
2. security Devices oh Driver Sound video and game controllers storage controllers pan A al a A E L aT a J Le System devices F Universal Serial Bus controllers Step 2 Connect the ZIO Motherboard to the PC The Device Manager will display ZIO Motherboard under Other Devices Zilogic Systems Page 27 ZIO Motherboard User Manual Ey Device Manager File Action View Help e Mia amp VILAYEUMAR PC ol Batteries ata Biometric he Computer e Disk drives AE Display adapters DVD CD ROM drives Eg IDE ATASATAPI controllers pe IEEE 1394 Bus host controllers EE Jungo Keyboards Pl Mice and other pointing devices Modems Monitors RY Network adapters 5 Other devices La fy 210 Motherboard 0 PEMCIA adapters BS Processors J Security Devices ott SM Driver y Sound video and game controllers a E EH El E A Storage controllers e Systern devices B a Universal Serial Bus controllers bel Step 3 Right click on the ZIO Motherboard and select Update Driver Software in the drop down menu Ey Device Manager File Action View Help AE a mle eRe Eley VIAYKUMAR PC cl Batteries da Biometric a Computer a Disk drives a Display adapters He DVDYCD ROM drives Eg IDE ATAZVATAPT controllers IEEE 1394 Bus host controllers mY Jungo Keyboards A Mice and other pointing devices Modems ls Monitors AY Network
3. Let s assume that the JDK is installed in c Program Files Java jdk1 6 0_18 and the JRE is install in C Program Files Java jre6 Step 2 Install the serial library package Copy the JAR file RXTXcomm jar present in software rxtx 2 1 7 bins r2 zip to the following locations C2 Program bales Java io Oise lia Next C Program Files Java jre6 lib ext Copy the DLL file rxtxserial d11 present in software rxtx 2 1 7 bins r2 zip to C Program Files Java jdk1 6 0_18 jre bin C Program Files Java jre6 bin Step 3 Install the ZIO Java API Copy the JAR file zic java api 1 0 jar to Ce ios le Les Gane elas SAS o Ss den C Program Files Java jre6 lib ext Step 4 Test your installation using the Java program available on the CD ROM at software TestZio jar The JAR file is executable When executed double clicked it will prompt for the serial device file and will then test access to the board through the Java API 2 4 Python API Step 1 Make sure Python 2 x is installed If not install the setup file software python 2 6 4 msi provided on the ZIO Software CD ROM Step 2 Install the serial library using the setup file software pyserial 2 5 rc2 win32 exe provided on the ZIO Software CD ROM Step 3 Install the ZIO Python API using the setup file software zio python api 1 0 win32 exe provided on the ZIO Software CD ROM Step 4 Test your installation using the Python program available on the CD ROM at software test zio p
4. Pin 4 5 GND Pin 6 Signal 5V Power Sc SDA Sensor Input 6 Sensor Input GND current limit of 200mA Rev 1 0 This is the power supply for the external sensors The supply has a total These are 12C bus signals and can be used to connect I2C devices Any 5V tolerant 12C device can be connected to the bus These are analog input signals The signals are connected to a 10 bit ADC The input signal range is 0 to 3V The input is translated to a value in the range O to 1023 by the ADC The pins are connected to a 3V reference through 10K pull up resistors This is the ground signal All other signals are referenced to this signal Zilogic Systems Page 7 ZIO Motherboard User Manual Figure 2 8 AIN 0 Port 5V Pin 1 GND Pin 6 SCL Pin 2 SDA Pin 3 Sensor Input O Pin 4 Sensor Input 1 Pin 5 Figure 2 9 AIN 1 Port 5V Pin 1 GND Pin 6 SCL Pin 2 SDA Pin 3 Sensor Input 2 Pin 4 Sensor Input 3 Pin 5 I2C Master I2C Master Zilogic Systems Rev 1 0 Page 8 ZIO Motherboard User Manual Rev 1 0 Figure 2 10 AIN 2 Port 5V Pin 1 GND Pin 6 SCL Pin 2 I2C SDA Pin 3 Master 3V 3V o 10K 10K Sensor Input 4 Sensor Input 5 Pin 5 Figure 2 11 AIN 3 Port 5V Pin 1 GND Pin 6 SCL Pin 2 I2C SDA Pin 3 Master 3V 3V e e 10K 10K Sensor Input 6 Sensor Input 7 Pin 5 5 PWM Port The
5. ZIO motherboard as show in Figure 4 1 Serial Device Input Select the serial device and click on OK The control panel window as shown in Figure 4 2 Control Panel Screenshot is displayed The control panel has multiple sub panels one for each module Figure 4 1 Serial Device Input 2 seriainevice Select Serial Device devjttyso Cancel oP ok Figure 4 2 Control Panel Screenshot a ZIO Control Panel Ol x UIU O ily Info About Quit GPIO Input Pins SPI YM Mi iv M A Chip Select GPIO 4 O 12 3 4 3 7001 C CS is Active High GPIO Output Pins Freq kHz lt lt JE O O O A Clk Freq 1 kHz a0 0 1 244 5 Duty 9 EEN ee clk Polarity Idle Low sensor i O st np Clk Phase Sample Leading Edge Sensor O ql Endianess LSB First Sensor 1 Ele Device Address Write Ox0C 0x20 Sensor 2 Read OxFF OXFF Sensor 3 Mel ig Config 2 write amp Read sensor 4 LL E E Write OXFA Sensor 6 tet Count 2 B bytes pins 1 2 sensor 7 a Read 0x1 Ox 1 pwm set_duty pins 50 Asean Write Read Controlling GPIO Outputs The GPIO outputs can be controlled by toggling the check box on the GPIO Out panel Sensor 5 Jawa Python Reading GPIO Inputs The GPIO inputs can be read by inspecting the check box on the GP10 In panel Reading Senso
6. ZIO has two PWM ports marked as PwM 0 and PwM 1 The signals on the PWM ports are shown in the following tables Table 2 11 PwM 0 Signals Pin No Signal 5V Power PWM Output 0 PWM Output 1 Reserved Reserved O O A W N GND Zilogic Systems Page 9 ZIO Motherboard User Manual Rev 1 0 Table 2 12 PwM 1 Signals Pin No Signal 5V Power PWM Output 2 PWM Output 3 Reserved Reserved Ooo A OO N GND 5V Power Pin 1 PWM Output Pin 2 3 This is the power supply for the external sensors The supply has a total current limit of 200mA These are PWM output signals The PWM signal when active produces a stream of pulses whose width can be controlled through software An important parameter of a PWM signal is the duty cycle The duty cycle is defined as the ratio between the pulse duration and pulse period of a rectangular waveform The PWM signal can be used to control the power delivered to a load by controlling the duty cycle of the PWM signal PWM signals are generally used for Motor speed control LED brightness control power supplies and wave form generation The PWM signal is a 5V CMOS TTL output The signal has a series resistor of 270 ohm to protect against accidental shorting to GND Figure 2 12 PWM signals with various pulse widths Duty Cycle 20 Duty Cycle 60 GND Pin 6 Figure 2 13 PWM 0 Port 5V Pin 1 GND Pin 6 This is the ground signal All other signals are refer
7. device can be powered from an external 3 3V supply or the 3 3V supply can be generated from the 5V Power using a regulator An example circuit with the commonly available LM1117 3 3 regulator is shown below LM1117 3 3 5V GND 3 3V SCK SCK SPI Device SS SS MISO MOSI MOSI MISO SPI Port 4 Sensor Port 4 1 Resistive Sensors Connecting a Potentiometer The position of potentiometer can be sensed by connecting the potentiometer to the sensor input as shown in the figure below When the centre pin 2 of the potentiometer is moved from pin 1 to pin 3 the raw value varies from 0 to Nmax Where Nmax IS given by the following formula Nmax OXFFFF x Rmax Rmax 10K Here e Rmax is the maximum resistance of the potentiometer e 10K is the internal pull up resistor on the Sensor signal For more details refer Section 4 Sensor Port For a 10K potentiometer Nmax OXFFFF x 10K 10K 10K Ox7FFF Zilogic Systems Page 16 ZIO Motherboard User Manual Rev 1 0 sensor Input O sensor Port Connecting a Resistive Sensor Sensors whose resistance varies with the parameter being measured are called resistive sensors Examples of resistive sensors are Light Dependent Resistor LDR thermistor etc These sensors can be directly connected between the Sensor signal and GND As the parameter being measured varies the resistance varies accordingly and the raw value N produced is given by the following f
8. digital output signals The signal is a 5V logic signal but the output can drive a 5V device or 3 3V device with 5V tolerance The output signal has a series resistor of 270 ohm to protect against accidental shorting to GND These are digital input signals The signal is a 5V logic signal The signal is pulled up to 5V through a 4 7K resistor This is the ground signal All other signals are referenced to the this signal Figure 2 2 GPIO 0 Port 5V Pin 1 GND Pin 6 GPIO Output O Pin 2 GPIO Output 1 Pin 3 GPIO Input O Pin 4 GPIO Input 1 Pin 5 270 ohm 270 ohm GPIO Output Figure 2 3 GPIO 1 Port 5V Pin 1 GND Pin 6 GPIO Output 1 Pin 2 GPIO Output 2 Pin 3 GPIO Input 2 Pin 4 GPIO Input 3 Pin 5 2 12C Port 270 ohm 270 ohm GPIO Output The ZIO has two 12C ports marked as 12C 0 and 12C 1 The signals on the 12C ports are shown in the following tables Zilogic Systems Page 3 ZIO Motherboard User Manual Rev 1 0 Table 2 3 12C 0 Port Signals Pin No Signal 5V Power SCE SDA Reserved Interrupt GPIO Input 4 GND O O A W N Table 2 4 12C 1 Port Signals Pin No Signal 1 5V Power 2 SCL 3 SDA 4 Reserved 5 Interrupt GPIO Input 4 6 GND 5V Power Pin 1 This is the power supply for the external devices The supply has a total current limit of 200mA SCL SDA Pin 2 3 These are 12C bus signals and can be used to connect I
9. stop Free run Power is cut off from the motor and the motor free runs and eventually stops To control the motor through digital signals the switches are replaced by transistors MOSFETs Driver ICs like the L298 that implement the H Bridge can also be used for motor control applications The block diagram of one half of a L298 is shown in the following diagram Zilogic Systems Page 20 ZIO Motherboard User Manual Rev 1 0 Vs GND By controlling the inputs various functions can be selected as shown in the table below In1 In2 Function 0 Brake Reverse Forward 0 0 1 Brake 0 4 4 When in Forward state or Reverse state the speed of the motor can be controlled by driving the inputs with a PWM signal Ini Duty Cycle In2 Duty Cycle Function 0 0 Brake 100 100 Brake 0 100 Reverse full speed 100 0 Forward full speed 0 X Reverse speed proportional to duty cycle X 0 Forward speed proportional to duty cycle A circuit for interfacing a DC motor to the PWM port using the L298 is shown in the following diagram 5V PWM Output 0 PWM Output 1 Sense A Out2 GND GND PWM Port Zilogic Systems Page 21 ZIO Motherboard User Manual Rev 1 0 Chapter 4 ZIO Control Panel The ZIO Control Panel is a GUI application that allows most features of ZIO to be tested without writing code When the control panel is started the application prompts for the serial device name of the
10. the device driver from a list Windows does not guarantee that the driver you choose will be the best match for your hardware Zilogic Systems Page 26 ZIO Motherboard User Manual Rev 1 0 Step 5 Windows searches for the driver and indicates that driver has not passed Windows Logo testing Select Continue Anyway to install the driver Hardware Installation The software vou are installing for this hardware IO Motherboard has not passed Windows Logo testing to very its compatibility with Windows P Tell me why this testing is important Continuing your installation of this software may impair or destabilize the correct operation of your system either immediately or in the future Microsoft strongly recommends that you stop this installation now and contact the hardware vendor for software that haz passed Windows Logo testing Continue Anyway 1 STOP Installation 2 2 ZIO Driver Installation in Vista Step 1 Insert the ZIO Software CD ROM into the CD drive Step 2 Goto Control Panel gt System and Maintenance gt Device Manager y Device Manager Sl sz File Action View Help Es ml amp Elgg VUAYKUMAR PC M Batteries J a Biometric JE Computer Disk drives Display adapters DVD CD ROM drives IDE ATASAT APT controllers TEEE 1394 Bus host controllers Junga keyboards Mice and other pointing devices Moderns Monitors Network adapters PERICIA adapters Processors El
11. 2C devices Any 5V tolerant 12C device can be connected to the bus Interrupt Pin 5 This is a digital input signal This is a shared signal GPTO Input 4 for all 12C devices and should be driven by open collector outputs The signal is pulled up to 5V through a 10K resistor GND Pin 6 This is the ground signal All other signals are referenced to this signal Figure 2 4 12C 0 Port 5V Pin 1 5V 5V GND Pin 6 SCL Pin 2 I2C SDA Pin 3 Master Interrupt GPIO Input Pin 4 Pin 5 Zilogic Systems Page 4 ZIO Motherboard User Manual Rev 1 0 Figure 2 5 12C 1 Port 5V Pin 1 5V 5V GND Pin 6 SCL Pin 2 I2C Master SDA Pin 3 Interrupt GPIO Input Pin 4 Pin 5 3 SPI Port The ZIO has two SPI ports marked as sP1 0 and SPI 1 The signals on the SPI ports are shown in the following tables Table 2 5 SPI 0 Port Signals Pin No Signal 5V Power SPI CS GPIO Output 4 SPI MOSI SPI MISO oP I COR Ooo A OO N a GND Table 2 6 SPI 1 Port Signals Pin No Signal 1 5V Power 2 SPI SS GPIO Output 5 3 SPI MOSI 4 SPI MISO 5 SPI SCK 6 GND 5V Power Pin 1 This is the power supply for the external devices The supply has a total current limit of 200mA SPI SS Pin 2 This is the SPI chip select signal SPI MOST Pin 3 This is the M_aster_O utput S lave nput signal The signal is a 5V logic signal but the output can drive a 5V device or 3 3V dev
12. O Input O Optocoupler GPIO Port 2 12C Port Connecting 5V I2C devices Since the 12C signal are pulled up to 5V 5V 12C devices can be directly connected to the 12C port Zilogic Systems Page 14 ZIO Motherboard User Manual Rev 1 0 I2C Device I2C Port Connecting 3 3V I2C devices with 5V tolerance Any 3 3V I2C device with 5V tolerance can be directly connected to the I2C port The device can be powered from an external 3 3V supply or the 3 3V supply can be generated from the 5V Power using a regulator An example circuit with the commonly available LM1117 3 3 regulator is shown below LM1117 3 3 3 3V 12C Device I2C Port IO Expander Additional digital inputs and outputs if required can be obtained using a 12C IO expander The PCA8574 provides 8 digital I O lines and PCA8578 provides 16 digital I O lines An example circuit using the PCA8574 with 12C device address set to 0x20 is shown below PO Pl P2 P3 5 2C lO Expander PCAB574 SDA ADO Interrupt jet GND P4 P5 P6 P7 l2 C Port 3 SPI Port Connecting 5V SPI devices Since the SPI signal are 5V TTL CMOS signals 5V SPI devices can be directly connected to the SPI port Zilogic Systems Page 15 ZIO Motherboard User Manual Rev 1 0 5V SS sp SCK SCK Device MISO MOSI MOSI MISO GND GND SPI Port Connecting 3 3V SPI devices with 5V tolerance Any 3 3V SPI device with 5V tolerance can be directly connected to the SPI port The
13. Panel to explore the board e On field firmware upgrade through USB Figure 1 1 Block Diagram PWM PWM GPIO GPIO Port 1 Port O Port 1 Port O USB y z Serial I2C I2C SPI SPI Port O Port 1 Port O Port 1 ZIO Motherboard Zilogic Systems Page 1 ZIO Motherboard User Manual Rev 1 0 Chapter 2 Connecting to ZIO In this chapter we will describe the connector used for the ZIO ports and the pins found on each of the ports The ZIO has 4 different types of ports 1 GPIO Port 2 12C Port 3 SPI Port 4 Sensor Port Marked as AIN on the ZIO 5 PWM Port All the ports are available through RJ12 jacks The RJ12 is similar to RJ11 but has six pins The RJ12 jack pins and pin numbering are shown in the following diagram Figure 2 1 RJ12 Jack Female 1 2 3 4 5 6 1 GPIO Port The ZIO has two GPIO ports marked as GP10 0 and GPIO 1 The signals on the GPIO ports are shown in the following tables Table 2 1 GPIO 0 Signals Pin No Signal 5V Power GPIO Output 0 GPIO Output 1 GPIO Input U GPIO Inp t 1 GND Ooo A OO N a Table 2 2 GPIO 1 Signals Pin No Signal 5V Power GPIO GQUEPUE z GPIO Output 3 GPIO Input z GPIO Input 3 GND Ooo A W N 5V Power Pin 1 This is the power supply for the external device The supply has a total current limit of 200mA Zilogic Systems Page 2 ZIO Motherboard User Manual Rev 1 0 GPIO Output Pin 2 3 GPIO Input Pin 4 5 GND Pin 6 These are
14. ZIO Motherboard User Manual 1 0 March 2010 ZIO Motherboard User Manual Rev 1 0 ZIO Motherboard User Manual Rev 1 0 Table of Contents SAMOA UN ONAN EAE E naa criando dao lla E eed ole E dies 1 An PO PE E E 1 2 os e aihetesactaaia tee hu bene r oaai aims aetaatubuatatten deta buctatnmaastaden 1 2 Conmmecing 1O AO eee ee ee een nee ane kee eee eee ee eee eee 2 EA Cae E acu E EE E EES south ci A E E A A AETAT 2 BZ E O i A EE PEE E A A E ides E E E E E E 3 o a E E E EE E E E E 5 A IVS OMe PO e E E E E 6 EAN O edi didnt A 9 A oo A 12 RIO POT nenita tocas 12 2 ROG FOT e A IIS A 14 AA 15 Dy SSVI Fe 1 q PORRO E A E 16 De PWM POR reinado eembieta candace scum dados tum setadeaneatonmtectaos 19 AO CONTO PAN iio nee 22 5 Software Installation anios ici dao 24 AA AS nn A 24 2 Under Windows escoria anipdadaa ede ida otrora ei 25 Zilogic Systems Page iii ZIO Motherboard User Manual Rev 1 0 Chapter 1 Introduction 1 Philosophy e Move development from micro controllers to PC e Use high level languages like Python and Java e Extend the lO capabilities of the PC e Rapid prototype development 2 Product Features e Connects to PC through USB e Interfaces Sensor Input GPIO PWM Output SPI 2C Host side API for programming the ports e APIs available for Java and Python e API documentation for easy reference e Port interfacing guidelines for common scenarios e GUI based Control
15. adapters p Other devices Be ren x Update Driver software a Processors Disable pE security D Uninstall ote SM Driver Ej sound vic A Storage co jk System de a Universal Serial Bus controllers E acan for hardware changes a Properties E Launches the Update Driver Software Wizard for the selected device Step 4 In the dialog that appears select Browse my computer for driver software bba Zilogic Systems Page 28 ZIO Motherboard User Manual Rev 1 0 de ee A elal a File Action View Help gt Search automatically for updated driver software Windows will search your computer and the Internet for the latest driver software for your device gt Browse my computer for driver software Locate and install driwer software manually Specify the CD ROM drive as the location to search for drivers A voice manger File Action View Help Browse for driver software on your computer Search for driver software in this location Ml Include subfolders gt Let me pick from a list of device drivers on my computer This list will show installed driver software compatible with the device and all driver software in the same category as the device Step 5 Windows searches for the driver and indicates that publisher of the driver cannot be verified Select Install this driver software anywa
16. cuted it will prompt for the serial device file and will then test access to the board through the Java API 1 3 Python API Step 1 Make sure you have Python 2 x installed If not install it using the following command feepe dee ise iS ion Under Ubuntu Mint Debian 7 yum install python devel Under Fedora Step 2 Install the serial library package python serial using the following command a ge in st Oy Pons ett Under Ubuntu Mint Debian ie IOI epee ias Pela sema Under Fedora Step 3 The ZIO Python API is available in api zio python api 1 0 tar gz Install the ZIO Python API using the following command sequence SAG euig Gb bo Ma o I B10 10 eave a S OC ZiLO ajoi 1 0 5 0 python setup py install Step 4 Test your installation using the Python program available on the CD ROM at software test zio py When executed the program will prompt for the serial device file and will test access to the board through the Python API 1 4 ZIO Control Panel Step 1 Install the Python API using the command sequence specified in the previous section Step 2 Install the GTK libraries using the following command Under Ubuntu Mint Debian Under Ubuntu Mint Debian Under Fedora Under Fedora abe deew Install pyumon GrkZ eC geral lil eyaclaoim clous Unas ej totales Uns US Oy te morn Step 3 Install the ZIO control panel using the following command sequence A AS AO Oz S OC ano ao ine Il pytho
17. enced to this signal 270 ohm PWM Ouput O Pin 2 270 ohm PWM PWM Ouput 1 Pin 3 Zilogic Systems Page 10 ZIO Motherboard User Manual Figure 2 14 Pwm 1 Port 5V Pin 1 GND Pin 6 270 ohm PWM Ouput 2 ran 2 270 ohm PWM Output 3 Pin 3 Zilogic Systems Rev 1 0 Page 11 ZIO Motherboard User Manual Rev 1 0 Chapter 3 ZIO Recipes 1 GPIO Port Connecting LEDs Connect the anode of the LED to an Output signal and the cathode to GND The built in series resistor is sufficient to limit the current GPIO Output O GND GPIO Port Connecting series of LEDs Since the Out put signal can not provide sufficient power for more than one LED and external power source is to be used And the power supply can be controlled using a MOSFET switch LEDs 4 4 kt M 470 ohm GPIO Output O GND GPIO Port The circuit diagram for connecting a series of LEDs is shown above The following formula can be used to calculate the resistance for the current limiting resistor The voltage drop across the MOSFET is considered to be negligible R Veo NVa Ig Where Vd Voltage Drop Across LED N No of LEDs lg Current for the required brightness Vog LED supply voltage R Current Limiting Resistor As an example for the following parameters e V 12V lg 11mA e N 4 the calculated current limiting resistance is 470 ohms Connecting relays Relays are used to control a high vol
18. hould report that the device was detected and attached to ttyUSBx This device file name should be used to communicate with the board amec cg e ai as option USB Driver tor GSM modems v0 7 2 option 1 3 1 0 GSM modem l port converter detected usb 1 3 GSM modem 1 port converter now attached to ttyUSBO Even though the message says that the driver is for GSM Modems the same driver is capable of handling the ZIO Motherboard as well Step 3 The device file generally belongs to the dialout group Users who would like to access the device should be a member of the dialout group The user xyz can be added to the dialout group using the following command usermod a G dialout xyz 1 2 Java API Step 1 Make sure the JDK is installed If not install it using the following command apt get install open jak o Welk Under Ubuntu Mint Debian yum install java 1 6 0 openjdk devel Under Fedora Step 2 Install the serial library package 1ibrxtx 3ava using the following command 4 apr Cer ins tele al Under Ubuntu Mint Debian Zilogic Systems Page 24 ZIO Motherboard User Manual Rev 1 0 f VU sa o Under Fedora Step 3 The ZIO Java API is available in the JAR file software zio java api 1 0 jar on the ZIO Software CD ROM Copy it to a convenient location and add it to your CLASSPATH Step 4 Test your installation using the Java program available on the CD ROM at software TestZio jar The JAR file is executable When exe
19. ice with 5V tolerance Zilogic Systems Page 5 ZIO Motherboard User Manual Rev 1 0 SPI MISO Pin 4 This is the _M_aster input S lave _O utput signal The signal is a 5V logic signal SPI SCK Pin 5 This is Serial Clock signal The signal is a 5V logic signal but the output can drive a 5V device or 3 3V device with 5V tolerance GND Pin 6 This is the ground signal All other signals are referenced to this signal Figure 2 6 SPI 0 Port SPI MOSI Pin 3 SPI MISO Pin 4 SPI Master SPI SCK Pin 5 5V Pin 1 GND Pin 6 GPIO GPIO Ouput 5 Output SPI SS Pin 2 Figure 2 7 SPI 1 Port SPI MOSI Pin 3 SPI MISO Pin 4 SPI Master SPI SCK Pin 5 5V Pin 1 GND Pin 6 GPIO GPIO Ouput 6 Output SPI SS Pin 2 4 Sensor Port The ZIO has four sensor ports marked as AIN 0 AIN 1 AIN 2 and AIN 3 The signals on the sensor ports are shown in the following table Table 2 7 AIN 0 Signals Pin No Signal 5V Power SCE SDA Sensor Input 0 Sensor Input 1 O O A W N GND Zilogic Systems Page 6 ZIO Motherboard User Manual Table 2 8 AIN 1 Signals Pin No O O A W N Signal 5V Power SCE SDA Sensor Input z Sensor Input 3 GND Table 2 9 AIN 2 Signals Pin No O O A W NY Signal 5V Power GCL SDA Sensor Input 4 sensor Input 5 GND Table 2 10 AIN 3 Signals Pin No O O Aa W N 5V Power Pin 1 SCL SDA Pin 2 3 Sensor Input
20. n resistive Sensors Transistor Buffer Non resistive sensors usually generate a voltage signal that varies with the parameter being measured Such sensors cannot be directly connected to the Sensor N signal due the signal being pulled up to 3V using a 10K resistor A transistor buffer can be used to overcome this problem The transistor isolates the sensor from the pull up A transistor buffer circuit is shown below Sensor Input O Sensor Port This is a PNP emitter follower where the emitter voltage is almost equal to the base voltage For a V range of 0 to 4 4V the voltage at Sensor 0 Is Vi 0 6 To compensate for the added 0 6V subtract 0 6 to the obtained voltage Temperature Sensor The LM35 is an example of an non resistive sensor The LM35 produces a voltage that is proportional to the temperature The voltage output by the LM35 increases by 10mV for every degree Celsius rise in temperature As the temperature changes from 2 C to 150 C the voltage rises from OV to 1 5V The LM35 can be connected to the Sensor port using the transistor buffer and is shown in the following circuit Zilogic Systems Page 18 ZIO Motherboard User Manual Rev 1 0 5V Sensor Input O LM35 Sensor Port 5 PWM Port LED Brightness Control An LED can be connected between the PWM N signal and GND as shown in the following diagram When the duty cycle is varied the LED brightness varies accordingly PWM Output O GND PWM Por
21. n setup py install 2 Under Windows Supported Windows releases are 1 Windows XP 2 Windows Vista 2 1 ZIO Driver Installation in XP Step 1 Insert the ZIO Software CD ROM into the CD drive Zilogic Systems Page 25 ZIO Motherboard User Manual Rev 1 0 Step 2 Connect the ZIO Motherboard to the PC Windows will detect the device y Found New Hardware IO Motherboard Step 3 In the Found New Hardware Wizard select Install from a list of specific location and click on Next Found Hew Hardware Wizard Welcome to the Found New Hardware Wizard This wizard helps pon install software for AO Motherboard fe If your hardware came with an installation CD k 12 or floppy disk insert it now what do you want the wizard to do Install the software automatically Recommended Install from a list or specific location Advanced Click Next to continue Step 4 In the next wizard page select the Search removable media checkbox Found New Hardware Wizard Please choose your search and installation options S 2 Search for the best driver in these locations Use the check boses below to limit or expand the default search which includes local paths and removable media The best driver found will be installed Search removable media floppy CD ROM Include this location in the search O Don t search will choose the driver to install Choose this option to select
22. ormula N OxFFFF x R R 10K Here e Ris the resistance of the sensor e 10K is the internal pull up resistor on the Sensor signal For more details refer Section 4 Sensor Port An example circuit using the LDR is shown below Sensor Input O Jf Sensor Port 4 2 Voltage Sensors Voltage measurement 3V to 3V Though the ADC input range is 0 to 3V it is possible to measure voltages between 3V and 3V using a simple circuit The circuit diagram is shown in the figure below Sensor Input O Sensor Port To better understand the operation of the circuit the circuit is shown with the internal pull up resistor on the Sensor signal in the following diagram 3V Sensor Input O GND Zilogic Systems Page 17 ZIO Motherboard User Manual Rev 1 0 Using superposition the voltage at Sensor 0 is given by the following formula Voltage at Sensor 0 1 5V Vi 2 As V decreases from 3V to 3V the voltage at the Sensor 0 decreases linearly from 3V to OV and the raw value from OxFFFF to 0 Vi V Voltage at Sensor 0 V Raw Value 3 3 OxFFFF 0 135 Ox7FFF 3 0 0 Voltage measurement 15V to 15V The following circuit can be used to measure voltages in the range 15V to 15V The input voltages and the corresponding raw values is shown in the table below Sensor Input O Sensor Port Vi V Voltage at Sensor 0 V Raw Value 15 3 0 OxFFFF 0 1 5 Ox7FFF 15 0 0 0 4 3 No
23. r Inputs The Sensor inputs can be read by inspecting the progress bar on the Sensor panel Zilogic Systems Page 22 ZIO Motherboard User Manual Rev 1 0 Controlling PWM Outputs PWM signals can generated using the controls in the PwM panel 1 Select the PWM channels by toggling the checkboxes 2 Set the PWM frequency in the frequency slider 3 Set the PWM duty cycle in the duty cycle slider 4 Click Start to start generating PWM signal 5 Click Stop to stop generating PWM signal Controlling 12C Devices 12C devices can be accessed using the controls in 12C panel To list devices present on the bus 1 Click on the Scan button 2 Addresses of devices present on the bus is displayed on the list box To write to a device 1 Select the device address 2 Enter the data bytes to be written in hex separated by commas in the Write text box 3 Click on the Write button To read from a device 1 Select the device address 2 Select the no of bytes to read 3 Click on the Read button Controlling SPI Devices SPI devices can be accessed using the controls in SPI panel To configure the device 1 Specify the GPIO output that is to be used as chip select in the Chip Select combo box If the chip select is active high select the CS is Active High check box Specify the clock polarity in the Clk Polarity combo box Specify the clock phase in the Clk Phase combo box Specify the endianess in the Endianess combo bo
24. t One Bit DAC An analog output can be generated from the PWM signal using a low pass filter circuit The low pass filter circuit with an op amp buffer is shown in the following diagram 5V PWM Output O PWM Port If the analog output has a frequency of F the PWM frequency should be much higher than F The values of R and C are given by the following formula For an output frequency of 1kHz choosing R 4kohm C 0 04uF DC Motor Control A DC motor s speed and direction of rotation can be controlled using the PWM port The DC motor has to be interfaced through a circuit called the H Bridge A simple H Bridge constructed using switches is shown in the following diagram By controlling the switches the motor can be made to rotate forward reverse brake and free run The various switch states and their effect on the motor is shown in the following table Zilogic Systems Page 19 ZIO Motherboard User Manual Rev 1 0 Vcc Vcc et q FOr OT ANA a Free Running State b Reverse State Vcc Vcc A A EOL Ot SN c Forward State d Brake State S1 S2 S3 S4 Function 0 0 0 0 Free run 0 1 1 0 Reverse 1 0 0 1 Forward 0 1 0 1 Brake 1 0 1 0 Brake Forward The current to flows in one direction through the motor Reverse The current flows in the opposite direction through the motor Brake Applying same voltage to both the terminals counters the back EMF produced by the motor and causes it to come to a sudden
25. tage high current circuit with a low voltage low current signal A relay can be connected to the ZIO through a MOSFET as shown in the following circuit diagram Zilogic Systems Page 12 ZIO Motherboard User Manual Rev 1 0 GPIO Output O GND GPIO Port Isolating outputs using opto coupler There are situations in which signals from one subsystem need to be electrically isolated from another subsystem in an electrical equipment For example a microcontroller operating at 5V controls the power to a load operating at 230V AC In such situations the microcontroller needs to be electrically isolated from the high voltage section using a opto coupler Note that though relays can also be used for this purpose they are generally bulky slow unreliable and power hungry Isolated Subsystem Optocoupler GPIO Output O GND GPIO Port Connecting to CMOS TTL inputs CMOS TTL inputs can be directly connected to the Output signal An example of shift register connected to the Output signals is shown in the following circuit diagram DO D1 D2 D3 toy CMOS TTL GPIO Output O Shift Register GPIO Output 1 D4 D5 D6 D7 GPIO Port Connecting Switches Switches can be directly connected between the Input and GND When the switch is pressed the Input signal will be low and when the switch is released the Input signal will be become high due to the built in in pull up resistor switch A GPIO Input O GND
26. x Oo oH W PP Click on Config to select the configuration specified The has to be done every time the configuration is changed To write and read from the device 1 Specify the list of bytes to be written in the Write text box 2 Click on Write amp Read to write the specified byte and read an equal no of bytes Equivalent Code The equivalent code for the currently performed operation is indicated in the Java and Python tabs This is an easy way to learn the Java and Python API Zilogic Systems Page 23 ZIO Motherboard User Manual Rev 1 0 Chapter 5 Software Installation 1 Under GNU Linux Supported distributions are 1 Debian 5 0 4 Lenny and above 2 Ubuntu 8 04 Hardy and above 3 Mint 5 Elyssa and above 4 Fedora 9 and above Tip In the following sections commands that have a hash prompt should be executed as root In case of Ubuntu the command should be invoked using sudo 1 1 ZIO Driver The ZIO motherboard is accessed through a USB serial interface The USB serial interface driver option ko can be used with the ZIO motherboard A few configuration changes has to be made to use the driver with ZIO Step 1 Copy the file drivers linux 30 zio rules from the ZIO Software CD ROM to etc udev rules d This can be done by issuing the following command from the CD ROM mount point Clo elisa os sao O gt zo cues eo ice eulles 0 Step 2 Plug the ZIO Motherboard into the USB port dmesg s
27. y When executed double clicked the program will prompt for the serial device file and will test access to the board through the Python API 2 5 ZIO Control Panel Install the ZIO Control Panel using the setup file software zio cpanel 1 0 win32 exe provided on the ZIO Software CD ROM Zilogic Systems Page 31
28. y to install the driver Zilogic Systems Page 29 ZIO Motherboard User Manual Rev 1 0 Device Manager lel 3 amp 8 File Action View Help Es ias ext Don t install this driver software You should check your manufacturer s website for updated driver software for your device Install this driver software anyway Only install driver software obtained from your manufacturer s website or disc Unsigned software from other sources may harm your computer or steal information a M EOL e v See details Step 6 The driver will get installed and the COM port will be displayed in the Device Manager de Decorar e File Action View Help AE ol VIAYKUMAR PC cl Batteries de Biometric cr Computer la Disk drives ce Display adapters 8 DVDYCD ROM drives a c IDE ATAJATAPI controllers H 3 IEEE 1394 Bus host controllers EF Jungo EP Jung lt Keyboards JA Mice and other pointing devices 4 Modems kL Monitors EP Network adapters y PEMCIA adapters a Fro a pe security Devices pAr aMi Driver a sound video and garne controllers H E storage controllers cll System devices E a Universal Serial Bus controllers Zilogic Systems Page 30 ZIO Motherboard User Manual Rev 1 0 2 3 Java API Step 1 Make sure the JDK gt 1 5 is installed If not install the JDK from the ZIO Software CD ROM The setup program is located at software jdk 6u18 windows i586 exe
Download Pdf Manuals
Related Search
Related Contents
Pelco C1932M User's Manual TX130M+ manual D07-00-051P Copyright © All rights reserved.
Failed to retrieve file