Advertisement

Quick Links

Product Manual
1072 - PhidgetSBC2

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SBC2 and is the answer not in the manual?

Questions and answers

Summary of Contents for Phidgets SBC2

  • Page 1 Product Manual 1072 - PhidgetSBC2...
  • Page 2 Phidgets 1072 - Product Manual For Board Revision 0 © Phidgets Inc. 2011...
  • Page 3 Testing the Phidget InterfaceKit 8/8/8 Over the Webservice Viewing the Webcam Rebooting/Resetting the PhidgetSBC Ports User’s Guide Basic Use Phidget Webservice Reliability Finding Phidgets on the Network Configuration (Web Interface) The Configuration Pages Status: System Status: Network Status: Processes Status: USB Status: Phidgets...
  • Page 4 Phidgets: Webservice Projects: Projects Webcam: Webcam System: General System: Logs System: Password Change System: File Editor System: Backup & Restore System: Packages System: Reboot Main: About Networking Guide Initial Setup Zero Configuration Networking Setting up an Ethernet Connection Setting up a Wireless connection No DHCP Server? Advanced User’s Guide...
  • Page 5 Configuration System Nand Layout Boot Process Drivers for USB to Serial adapters U-Boot SBC2 Device Specifications PhidgetInterfaceKit 8/8/8 General Product Features Programming Environment Programming a Phidget Architecture Libraries Programming Hints Networking Phidgets Documentation Code Samples API for the InterfaceKit 8/8/8...
  • Page 6: Product Features

    Connections • 6 full-speed USB ports with built in support for webcams, Phidget USB devices, and other USB devices. • Ethernet port. Remotely use attached Phidgets from another computer anywhere over the network. 1072_0_Product_Manual - February 24, 2011 2:52 PM...
  • Page 7: Programming Environment

    Analog inputs They are used to measure continuous quantities, such as temperature, humidity, position, pressure, etc. Phidgets offers a wide variety of sensors that can be plugged directly into the board using the cable included with the sensor. Here is a partial list of sensors currently available:...
  • Page 8: Checking The Contents

    The green LED located above the red LED indicates boot status. The green LED will turn on and off once during boot and then turn back on when everything is running. Other Phidgets can also be connected to the 1072 using a USB cable. 1072_0_Product_Manual - February 24, 2011 2:52 PM...
  • Page 9: Testing Using Windows 2000/Xp/Vista

    Make sure that you have the current version of the Phidget library installed on your PC. If you don’t, do the following: Go to www.phidgets.com >> Drivers Download and run Phidget21 Installer (32-bit, or 64-bit, depending on your PC) You should see the icon on the right hand corner of the Task Bar.
  • Page 10: Setting The Password

    Setting the Password On your first visit to the PhidgetSBC web configuration, you will need to set a password. Type in your password and click on Set. Subsequent visits will use the username ‘admin’ and the password you chose. The PhidgetSBC Info is displayed. Updating the SBC Click on System >> Packages. Click “Refresh Available Packages”...
  • Page 11 Testing the Phidget InterfaceKit 8/8/8 Over the Webservice Open the Phidget control panel. Click on the WebService->Bonjour tab. Double click the Phidget InterfaceKit 8/8/8 with the ‘phidgetsbc’ Server ID to bring up InterfaceKit-full. Check that the box labelled Attached contains the word True. Test the digital output by clicking on the white box to turn on the LED.
  • Page 12 Viewing the Webcam Connect a UVC compatible webcam to your PhidgetSBC. Launch the configuration interface. Click the Webcam tab. Under the settings, select ‘Enabled’ for the webcam, choose your resolution and frame rate, and then click ‘Save Changes’. The webcam stream should now be visible.
  • Page 13 (Indexed 0 to 7) This Ethernet port is used for network connectivity to the PhidgetSBC. This enables access to the PhidgetSBC as well as any connected Phidgets through the webservice. Alternatively, the USB Wireless adapter can be used for network connectivity.
  • Page 14: Basic Use

    Basic use of the PhidgetSBC allows the opening of connected Phidgets over the network. Using another Phidget with the PhidgetSBC in this way is almost exactly like using Phidgets over USB, in respect to the API calls and behavior. However, some extra considerations need to be made when working with the PhidgetWebservice.
  • Page 15 The Phidget Control Panel has a Bonjour tab (under WebService >> Bonjour) that lists all detected network attached Phidgets. The Phidgets connected to the PhidgetSBC should be seen here and can be opened by double clicking its name in the menu.
  • Page 16: Configuration (Web Interface)

    Configuration (Web Interface) The PhidgetSBC is configured through a built-in configuration interface, through an internet browser much like your wireless access point or router. You can double click on the device under the PhidgetSBC tab in the Phidget Control Panel to bring up its configuration interface. Alternatively, if you have Bonjour installed, you can access the PhidgetSBC by name. For example, by default you can use ‘http://phidgetsbc.local.’. Once you know the IP address of your PhidgetSBC, you can also just type it into your web browser of choice.
  • Page 17: Status: System

    Phidgets. Current Date/Time - Current date and time. Address - A PhidgetSBC is uniquely identified by its MAC address shown here. This address is also printed on the label of the underside of the PhidgetSBC. Other Phidgets, including the integrated InterfaceKit, use a serial number to identify themselves. Filesystem All mounted filesystems are listed, along with their size and usage.
  • Page 18: Network Status

    Status: Phidgets see: Phidgets: Status. Network: Status General network status can be viewed on this page. Modifying these values are done on other pages. Adapter - Abbreviated name and number of the network interface. Type - Wired or wireless connection.
  • Page 19: Wireless Network Settings

    Phidgets: Webservice The Phidget webservice is a simple server that allows Phidgets connected to the PhidgetSBC board to be opened over the network. This is enabled by default and starts with the SBC. The webservice also exposes a key-value dictionary which can optionally be used for communication between applications written for the PhidgetSBC, and applications running on your local computer.
  • Page 20 Projects: Projects This is where user projects are set up. Custom applications can be written in either C or Java, and then set up to run on the PhidgetSBC at system startup. On the main page, there is a list of installed applications as well as the controls for creating a new application space.
  • Page 21: System: General

    Webcam: Webcam This is where you can view and control a connected UVC (USB Video Class) webcam. For a list of UVC compliant webcams see here: http://linux-uvc.berlios.de/#devices Video is streamed from these devices in M-JPEG format, and can be viewed though the web interface, or any compatible M-JPEG viewer (such as VLC).
  • Page 22: System: Password Change

    Text to Filter - Insert a string that covers what you would like to see or exclude. In fact you can use the regular expression constants like: 00:[[:digit:]]{2}:[[:digit:]]{2} or .debug|.err. Filter Mode - You will see only messages containing the text in the Include mode while you will not see them in the Exclude mode.
  • Page 23: System: Packages

    - This enables the full Debian repository in the apt sources list. By default, only the Phidgets repository is included. When enabled, all system packages will show up in the updates list, rather then just Phidgets packages, allowing for full system updates. This also allows the user to install any packages they like, from the SSH interface.
  • Page 24: Networking Guide

    Networking Guide Initial Setup 1. Make sure that Phidget21 is installed on your computer. 2. Install Bonjour (recommended) 3. Plug the PhidgetSBC into your network and power it up. The PhidgetSBC will try to get an IP address from DHCP, which should work on most networks. If there isn’t a DHCP server running, then it will fall back on Link Local addressing. In order to find the PhidgetSBC on your network, you either need to look at the DHCP server log, or use Bonjour.
  • Page 25 If the wireless adapter is plugged in and detected, then you can configure it under the Network : Wireless menu. Use the Re-Scan button to search for networks and then select your network from the list. Next input any required user names or passwords and click add this network. The newly saved network should appear under Manage Saved Networks. Now under Wireless Network Settings, make sure TCIP/ IP settings are set to DHCP and the DNS settings are on Automatic.
  • Page 26: Custom Applications

    Advanced User’s Guide This section describes use of the PhidgetSBC outside of the web configuration, and basic opening of Phidgets over the network. This includes custom applications, SSH, customizing the system, etc. It is recommended that you have some experience with Linux before trying some of these tasks. Custom Applications The PhidgetSBC supports custom user application written in either Java or C. Custom applications are set up and managed using the configuration interface.
  • Page 27: Other Languages

    Other Languages Other languages, such as Python, Mono, etc. are easy to support by installing the correct packages. These are not however explicitly supported/documented by Phidgets currently. Debian/Packages The PhidgetSBC runs Debian. We have included packages from the Emdebian project where available in order to reduce space requirements.
  • Page 28 Custom Kernel and Filesystem You can compile your own Kernel and flash it to the board. Phidgets Inc. provides our kernel patches on phidgets. com. It is left up to the user to configure an appropriate cross-compiler for kernel development. You may also be able to compile a new kernel on-board. Installing a new kernel involves erasing the old kernel, flashing the new kernel, installing the new kernel modules, and rebooting: 1. ‘make uImage; make modules’ in the kernel directory 2. ‘flash-eraseall /dev/mtd3’ 3. ‘nandwrite -p /dev/mtd3 arch/arm/boot/uImage’ 4. ‘make modules-install’ 5. ‘reboot’ Custom kernels can also be flashed from the Recovery/Upgrade system. Custom filesystem can be flashed from the Recovery/Upgrade system. The creation of custom filesystems is not documented, as the Debian package repository should provide enough flexibility for most users. However, if you need to create a root filesystem image, use the following settings:...
  • Page 29: Factory Reset

    Phidgets maintains it’s own package repository from which to push out updates. Occasionally, you may wish to go back to a clean install and upgrade to the latest rootfs/kernel from Phidgets. Phidgets will not be creating these images with every release of phidget21 as we did with PhidgetSBC1, rather they will be released several times a year, as needed for major changes not easy to push out via packages.
  • Page 30: Hardware Layout

    Technical Power Over Ethernet Power over Ethernet can be used to provide both a network connection and power to a device when a power outlet is not available. This means that with the proper adapters, you can run the PhidgetSBC entirely off an Ethernet source.
  • Page 31: Boot Process

    Nand Layout The board contains 64MB on Nand. This nand is split into 7 partitions as follows: 0: u-boot size: 256K Read Only 1: u-boot_env size: 128K Read Only 2: recovery_kernel size: 2M Read Only 3: kernel size: 3M Writable 4: flashfs size: ~3.625M Read Only...
  • Page 32 If you are connected to the serial port, you will see the U-Boot prompt shortly after power up. You can view the environment variables for information on how to properly boot Linux on the PhidgetSBC. Be very careful when modifying the u-boot partition. If it is damaged or overwritten, it is difficult to fix. Refer to U-Boot documentation here: http://www.denx.de/wiki/DULG/Manual for more information on using U-Boot. SBC2 Device Specifications Characteristic Value Samsung S3C2440...
  • Page 33: Programming A Phidget

    Programming a Phidget Phidgets’ philosophy is that you do not have to be an electrical engineer in order to do projects that use devices like sensors, motors, motor controllers, and interface boards. All you need to know is how to program. We have developed a complete set of Application Programming Interfaces (API) that are supported for Windows, Mac OS X, and Linux.
  • Page 34 Networking Phidgets The PhidgetWebService is an application written by Phidgets Inc. which acts as a network proxy on a computer. The PhidgetWebService will allow other computers on the network to communicate with the Phidgets connected to that computer.
  • Page 35 Returns the sensed value of a particular Analog Input. SensorValue varies between 0-1000, corresponding to the 0-5V input range of the Analog Input. If you are using an Analog Sensor from Phidgets Inc., it’s manual will specify the formula used to convert SensorValue into the measured property.
  • Page 36 The minimum data rate that can be set for an analog input, in milliseconds. This is usually 1000. bool Ratiometric() [get,set] Sets/returns the state of Ratiometric. Ratiometric = true configures the Analog Inputs to measure w.r.t VCC (nominal 5V). Ratiometric = false configures the Analog Inputs to measure w.r.t an internal precision 5V reference. Ratiometric is not updated from the Phidget. It is recommended to explicitly set Ratiometric when the Interfacekit is opened. After changing the ratiometric state, wait until the ratiometric property matches what was set before reading analog data.
  • Page 37: Analog Inputs

    Analog Inputs are used to measure continuous quantities, such as temperature, humidity, position, pressure, etc. Phidgets offers a wide variety of sensors that can be plugged directly into the board using the cable included with the sensor.
  • Page 38: Changing The Data Rate

    Connecting non-Phidget devices to the Analog Inputs Here are some circuit diagrams that illustrate how to connect various non Phidgets devices to the analog inputs on your Phidget. Sensing the value of a variable resistance sensor...
  • Page 39 Non Phidgets Sensors In addition to Phidgets sensors, any sensor that returns a signal between 0 and 5 volts can be easily interfaced. Here is a list of interesting sensors that can be used with the PhidgetInterfaceKit 8/8/8. Note: these sensors are not “plug &...
  • Page 40: Using The Digital Inputs

    Digital Inputs Digital Input Hardware Filter There is built-in filtering on the digital input, to eliminate false triggering from electrical noise. The digital input is first RC filtered by a 15K/100nF node, which will reject noise of higher frequency than 1Khz. This filter generally eliminates the need to shield the digital input from inductive and capacitive coupling likely to occur in wiring harnesses. Digital Input Hysteresis The digital input has hysteresis - that is, it will hold it’s current state (false or true), unless a large change occurs. To guarantee FALSE, the digital input must be at least 3.75V, and to guarantee TRUE, the digital input must be less than 1.25V.
  • Page 41 W iring a sw itch to a Digital Input Monitoring the position of a Relay switch causes digital input to report TRUE Detail of Digital Input Relay contact causes Digital Input to report TRUE Detail of Digital Input GROUND USER Phidget USER Phidget...
  • Page 42 Drain-Source Current < 67uA guarantees Digital Input to r Drain-Source Current < 67uA guarantees Digital Input to report TRUE The resistor on the Gate is not required f or it to f unction, but is a good idea. Be sure not to exceed VGS of the mosf et. Connecting a 3-wire Capacitive or Inductive Proximity Switch Actual Voltage Required to sw itch is dependent on VGS required to turn on M OSFET...
  • Page 43: Functional Block Diagram

    M OSFET so the +5V Controlling a relay w ith a NPN Transistor. Driving an LED w ith the Digital Output Using a 3051 Dual R Digital Outputs Detail of Digital Output Driving Outputs Can be used Functional Block Diagram Phidget USER Analog Input i...
  • Page 44 The Load can also be sw itched with the SSR on the high side. Digital APPLICATION Digital APPLICATION Output Output OUTPUT OUTPUT Phidget USER Digital APPLICATION Isolating a Digital Output with a MOSFET based Output GROUND GROUND It’s possible to wire up your own Solid State Relay to the OUTPUT digital output.
  • Page 45 GROUND GROUND 12VDC / 2 Amp power supply is provided with the 1072 - more than sufficient. The USB Hub is a full-speed hub with a transfer rate of 12Mbits/second. We chose to go with a full speed implementation since it is fast enough to handle traffic from Phidgets; an added benefit is lower power consumption. Chaining the USB Hubs The 1072 follows USB specifications and can be daisy chained to the maximum hub depth of 4. Using a 3052 S Driving Outpu...
  • Page 46 InterfaceKit 8/8/8 Device Specifications Characteristic Value Board USB Voltage 4.75 to 5.25 V USB-Power Current Specification Max 500 mA Quiescent Current Consumption 13 mA Available External Current (source) 487 mA Operating Temperature 0 - 70°C Analog Inputs Impedance 900K ohms 5V Reference Error Max 0.5% 1000 samples/second max for 4 channels Update Rate...
  • Page 47: Product History

    E-mail us at: support@phidgets.com Legal Information For licensing and warranty information, please see the Phidgets End User License. It is available on our website at: http://www.phidgets.com/documentation/Licenses/Phidgets_End_User_License_Agreement.pdf. By using this product, you are agreeing to be bound by the terms and conditions set forth by this licensing agreement.

This manual is also suitable for:

1072

Table of Contents