Monthly Archives: November 2014

What should my CPU temperature be?

Normally, computer users are not very concerned about what temperature their CPU is running at. Desktop users may feel the hot air coming out of the back and laptop users may be concerned if the heat is too much for their laps. In reality, the temperature of the CPU depends on what the computer is doing, that is, how many programs it is currently running and how the manufacturer has arranged the fans in the cabinet.

Although the exact information of how hot your CPU should be running will be available with the processor manufacturer on their website, most processors used in desktops today do not exceed 90°C and typically operate between 70 and 90°C. However, this is only a general idea of what the processor should be running at, and as said earlier, the actual temperature depends on what programs the computer is concurrently running.

If you notice your computer running much slower than usual, restarting often or randomly crashing or turning off, it is likely that the processor is getting too hot. These effects are usually more noticeable when playing advanced games or when too many programs are running at the same time. If you continue to use your computer when its processor is exceeding its temperature limits, it is likely to reduce the life expectancy of the processor.

As the CPU speed reduces when its temperature goes up, you get more performance when the processor is running cooler. Overclocking a processor may allow you to run the CPU at a higher speed, but there is a likelihood that it will also generate more heat and its temperature will go up. Therefore, paying attention to how to remove excess heat from your computer may help in extracting more performance from it.

It is very important to keep your computer clean. Over time, hair, dirt and dust build-up can clog the ventilation holes and prevent good airflow inside the case. Therefore, make sure all ventilation holes are clean and heat sinks are not covered in grime.

For good air circulation, make sure the computer is placed in a good location, and not in a closed space such as inside a cabinet or a drawer. Unless there is plenty of ventilation, you may remove the back of the cabinet or the drawer. Keeping a space of at least two inches on both sides and the front of the computer is a good practice.

Verify that all the fans mounted inside the case and on the CPU heat sink are operating properly; look for any spinning or noise issues. Operating systems can monitor and display the fan speeds of the major fans in the computer. If you have replaced the processor or its fan lately, make sure you have applied the thermal paste properly, as that helps to transfer the heat away from the processor to the heat sink. You may also want to install more fans or replace those present with ones more efficient in moving air; check the CFM rating – higher is better.

Lastly, for those heavily into gaming or interested in over-clocking, water cooled solutions are available to keep processors cool.

Raspberry Pi add ons

Accessories have been flooding the market ever since the release of the tiny Single Board Computer Raspberry Pi (RBPi). Some of them merit a closer look because they can take your RBPi to the next level.

MotorPiTX board

For people interested in projects that need to run motors such as in robotics, the MotorPiTX board is a great accessory. It fits on top of the SBC and comes packed with some interesting features such as its own power supply (four AA batteries). This is enough to run the RBPi along with attached motors and servos. Full ATX style power controls are available, such as two 5V outputs (for LEDs), two bi-directional DC motor connectors, two servo connectors, two 3.3V inputs, one I2C breakout board and a micro-USB port.

A Smart IO Expansion Card

You can stack this add-on device atop the RBPi. As this is a super IO port, you can connect just about anything to it. There are 13 inputs for analog, pulse and digital signals, two analog outputs, eight digital outputs capable of 1A and ports for AHRS, CAN, RS485 and RS232. Apart from using it as an electronic test platform, the card can also be used for home automation, machine control, UAVs and robotics navigation.

The Pi Crust

This breakout board sits on top of the RBPi like a crust, allowing users to connect a multitude of devices easily. Rising only a scant 2mm above the RBPi base, the crust does not interfere with any other device connected to the RBPi. Pins are clearly labeled together, grouped logically together and include power, UART, SPI, I2C and GPIO. Female headers allow ease of connection along with plenty of GND and 5V pins.

SweetBox, Heat Sinks and ScorPi

SweetBox is a minimalistic approach to an enclosure for the RBPi and the smallest one in the market. It comes with a removable, flexible GPIO cap, allowing access to plug-in components. The SweetBox also has a set of anodized aluminum heat sinks that aid in extra heat dissipation. ScorPi is a flexible mount allowing the user to mount an RBPi camera, with direct plugin into the RBPi’s RCA port.

Power Supply Ignition Switch

This attachment allows using the RBPi with vehicles. It allows powering the RBPi through the electrical system of the vehicle. As you engage the vehicle’s ignition or turn it off, the attachment senses and powers the RBPi on or off safely. The built-in converter takes in 12/14V from the vehicle and provides 5V to the RBPi. Its ignition sensing talks to the SBC through two of its GPIO pins. The attachment retains power for the RBPi for 20 minutes after switch off. That means frequent stops will not repeatedly boot your RBPi. Additionally, if you left the RBPi running in the vehicle, the automatic shutdown feature will shut it off after four-hours to no-user activity.

HDMIPi HD Screen Prototypes

These are 1290×800 displays, which are not too expensive, portable and only 9-inch in size. You can watch movies comfortably, or incorporate into whatever project that needs a display. The cost-to-size ratio is perfect, competing successfully with the other portable screens in the market.

Novena – an open source laptop computer

You may be aware of open-source software and you may already be using some. Now, an almost open-source laptop is available for sale. Sean “xobs” Cross and Andrew “bunnie” Huang have fashioned a laptop that users can trust.

These two engineers from Singapore have assembled a laptop that uses almost entirely open-source hardware; designs freely available to the world. They have named the project Novena and anyone can review the designs in theory, look for bugs and security flaws. Therefore, users can be confident of the total security of the machine, which has become more desirable than ever after some governments were exposed of snooping.

Originally, the duo wanted simply to encourage others to build their own laptops at home. However, the project is now moving further. Anyone wanting their pre-built Novena laptop can place orders through the crowd-funding site of Crowd Supply, with the product shipping out in the coming months. This is very much like Kickstarter, and Crowd Supply also allows you to put up your money to help fund a company; only, you get a product in the process.

Just as open-source software is very popular across users, businesses and countries, so is open-source hardware now beginning to be a larger project, of which project Novena is a part. Not only is this helping to improve security among hobbyists, it is spurring innovation within large companies such as Facebook. The idea is to share your design and allow others to make them better. Of course, you cannot expect each part to be open-source, for example, the processor, but Cross and Huang try to minimize that as far as possible.

Novena is available either with a handcrafted wooden bezel or with an aluminum case. Kurt Mottweiler, an Oregon-based designer from Portland, has handcrafted the “heirloom” wood bezel. Both designs are capable of readily expanding the internal hardware, since the machine is half-empty. Moreover, the shipment comes with extra bezels as it is expected that you will break one when you add to the hardware. The system does not need any special bending tools when you modify it.

Although the heirloom version of Novena is a whopping $5,000, the aluminum case version comes with a motherboard and a high-definition display for $1,195. For another $800, you can add a battery and a 240GB solid-state hard drive. Alternately, just buy the motherboard for $500 and house it in your own case.

You may find the aluminum version of the machine to be unusual since the display sits on its outside. As you lift the lid of the case, you can see the innards of the machine instead of the keyboard. Attaching an external keyboard is simple, as is adding new components. Although that does make it harder for the laptop to be used on the lap, most people usually prefer not to.

Powered by an ARM processor, all versions of Novena run the open-source operating system – Linux. Although that does make the laptop somewhat more expensive and underpowered compared to an Apple MacBook Pro, this project is more about open-source, security, privacy and the ability for explore.

Different uses for USB flash drives

Almost everyone uses USB flash drives nowadays and the amount of data that these drives can store has increased tremendously. Typically, they can hold millions of pictures, thousands of songs and several HD movies. Although data storage is the primary function, flash drives have more to do beyond that. You may find the roles to be quite unusual:

Expanding SBC Storage

There are several Single Board Computers on the market today, with Raspberry Pi and BeagleBone being the most popular. Most come with limited amounts of storage in the form of SD, MMC and SDIO cards. Large capacity flash drives are a good substitute for expanding the memory.

A Secure Wallet for Holding Bitcoins

Nowadays, people financially endeavor to mine for Bitcoins and similar coins. Unless the data is securely held, this digital currency can be easily lost or stolen. If you are trading every day, an online wallet is fine, but if it is a savings account, it is preferable to secure the data offline in a flash drive, set up as a secure digital wallet.

Data Collection from an Embedded Host Controller

Nowadays, micro-controllers are available with host controllers that can use USB flash drives. Therefore, data logging and recording with such micro-controller based embedded host systems becomes simple as USB flash drives can be used to store data instead of a PC. That makes data recorders portable and simple.

Run a Website from A Flash Drive

Using automated templates and software, it is very simple to set up a website or a server running on a PC. However, if you want the site to be portable while allowing for changes and updates to it, put it on a USB flash drive. Of course, you may need some additional packages such as Server2Go, WAMPP and PHP 5.x.

Enhancing a PCs Virtual Memory

That one can boost the capabilities of aging PC systems by adding more RAM, is common knowledge. However, in most cases, RAM has already been added to the maximum possible capacity and no further addition is possible. Adding a USB flash drive and using it as extra virtual RAM is very simple for Windows users.

Carry Your OS and Apps with You

With the dramatic increase in the capacity of flash drives, you can conveniently carry your OS of choice and your apps wherever you travel. Along with the OS, you can carry diagnostic tools, virus scanners and different games for testing and repairing computers without installing anything on them.

Lock and Unlock A PC

If you have sensitive data on your networked PC, there are many ways perpetrators can access the system physically and bypass the system password. However, security software such as USB secure or Predator combined with a USB flash drive can keep your system from being hacked into.

Users need to attach the USB flash drive and enter the password when starting the system. The PC checks the presence of the drive every 30-seconds, and if it does not find the drive, it simply goes into lockdown.

BrickPi to Turn Your Raspberry Pi Into a Robot

It is easy to turn your tiny Single Board Computer, the Raspberry Pi (RBPi), into a robot. All that you need is a BrickPi board and a case that will fit onto your credit card size computer and make it capable of accepting inputs from sensors, to running motors and other parts. With the BrickPi, you can drive up to four EV3 or NXT motors and five sensors. A 9V battery powers the board and drives the motors and sensors, including the RBPi. While the sturdy case that holds the RBPi, has holes that can snap in LEGO parts, the LEGO Mindstorms’ BrickPi board untethers your RBPi from the wall outlet.

For programming the BrickPi, you have a choice from among three languages – Python, C and Scratch. If you need information on using these languages, visit the github site. It includes examples and drivers as well, including several projects that setup the BrickPi and demonstrate its use. The projects involve demonstrations of controlling the robot with web services such as Twitter, SSH and other web pages. Apart from the program listing for running these projects, the site includes Bill of Materials for the LEGO parts that the robots will need to use.

While the BrickPi controls the sensors, the LEGO motors and the new EV3 motors, the RBPi, in turn, controls the BrickPi. You can power the BrickPi with an on-board 9-12V battery pack, which will also supply the RBPi, the sensors and the motors. The design of the BrickPi is entirely open-source, so anyone can see the design and other details of the firmware design.

Creating a robot with the RBPi and BrickPi is indeed challenging, but not too difficult, since there are plenty of examples and drivers available. Once you have mastered the basics, you can progress to the more advanced creations. Using the LEGO elements makes the job even simpler and you can simply watch your computer come alive.

The BrickPi, controlling the four servomotors, offers precise control over the robot, ensuring that the robot moves with precision. The built-in rotation sensors can measure steps with on-degree accuracy. Among the other sensors is an ultrasonic sensor, to allow the robot measure distances and avoid obstacles. Two additional vision sensors allow the robot to sense and detect movement.

The BrickPi even has two touch sensors, with which your robot can pick things up on command, since they can detect when they are releasing or pressing something. For example, the touch sensor, when pressed, can allow your robot to talk, walk, turn off your TV or close a door. In addition, the included color sensor can be used either as a color lamp, distinguish light settings, detect black and white or distinguish a range of bright and paste colors.

Overall, the clever design elements in the BrickPi score an excellent rating. Users will enjoy the way it brings a new level of interaction to their experience of using LEGO parts and will appreciate the easy way of creating their first robot. The simplicity of building any robot from the cool hardware encourages inventive play.

VPN Server with Raspberry Pi

In almost all airports, hotels, libraries, schools and restaurants, there is a proliferation of free unencrypted wireless access points, which are easily accessible to all. Additionally, with the spread of mobile devices, getting on the internet is no longer confined to the office or the home. Usually, a high number of users share the same open access point. Although this arrangement is very convenient for the users, it is also favorable for the snooper with the skills and intent to invade into others’ privacy and collect internet traffic for nefarious purposes.

Security professionals cry themselves hoarse while preaching restraint when it comes to using free/public wireless access points. However, for users wanting to access their office via the Internet, other than waiting to get back home, very few alternatives are available that are practical, free to use or at least almost free. However, the situation can be easily rectified with an inexpensive Single Board Computer, the Raspberry Pi (RBPi) in conjunction with the freely distributed OpenVPN software.

Offices/homes (SOHO) usually have a private network, which remote devices such as tablets and mobiles access through a typical Remote-Access Virtual Private Network (VPN) configuration. The mobile (the client) must authenticate itself successfully and the VPN server then establishes an encrypted tunnel. Now all traffic between the server and the client via the Internet will be securely routed to the private network through this tunnel, simply as if the mobile (client) had connected directly into the network itself. As the traffic is encrypted, anyone listening in will not be able to decipher the content, and the communication remains safe.

Such an arrangement as described above is very easily implemented with OpenVPN, which is an open source VPN implementation that was developed by James Yonan. OpenVPN is a highly customizable solution and supports a huge range of capabilities and options, including the most relevant five:

• Authentication and encryption ensures privacy
• Protection against Denial of Service and zero-day vulnerabilities
• Protection and privacy through proxy
• SOHO network access
• Broad device supports

OpenVPN was created for ensuring privacy, authentication and encryption, which it does via implementation of SSL/TLS concepts. Two encryption modes are used: Pre-Shared Key and TLS. Pre-shared key concept uses static keys that must be generated and shared with all devices for authentication, to establish and encrypt the secure VPN channel. This arrangement is more like a single lock with multiple users, each holding a key. TLS is a more secure arrangement with private/public key pairs.

To defend against Denial of Service or DoS attacks and Zero-day vulnerabilities, OpenVPN implements a variant of the HMAC key protection. Use of proxy disallows sites such as Amazon, Google or Facebook to establish the VPN client location since they are solely based on the IP address. This provides additional protection for the mobile device, since the Internet traffic is routed through the SOHO network. SOHO networks usually deploy additional boundary security, such as IPS, and this protection is extended to the mobile device when it connects through the VPN.

The OpenVPN service provides secure access to the resources available on the SOHO network without opening extra ports through the firewall. The device support is broad and covers Windows, Mac OSX, Linux and Android. For implementation on RBPi, more information is available here.

Linear Position Sensor for Embedded Use

The launch of ME-7 Series Linear Position Sensors by the Alliance Sensors Group (Moorestown, NJ) facilitates a wide range of multiple applications. These sensors have been designed for embedded use suitable for measuring the ram position in hydraulic and pneumatic cylinders, in subsea, mobile or industrial applications. The ME-7 series is designed to be a functional replacement for embedded type magnetostrictive sensors with a drop-in form and fit for use. They can also be used as a replacement for embedded resistive potentiometers. Not only does the ME-7 series provide optimum accuracy, there is no wear-out involved. The design offers a number of unique features.

The ME-7 Series offers measurements ranging from four to 36 inches, which translates as 100 to 900 mm while operating at pressures of 5000 psi as well as at depths of 10,000 feet or 3,000 meters. The sensors are available with aluminum or stainless steel housing, both of which are categorized under IEC IP-67. The operating temperature is typically 85°C, but the series is also being offered with an operational temperature of 105°C as an optional feature. The analog output is in DC volts or current and these inductive sensors have been designed with the requirements of multiple applications in mind.

Although the Alliance Sensors Group has designed the ME-7 series to be highly robust, at the same time they have maintained the cost to a level that makes it affordable to the user. The technology used for ME-7 series is proprietary and known as contactless inductive sensing technology. It uses a 7 mm diameter solid probe requiring only a simple conductive tube target. This can be a simple gun drill ID of the cylinder rod that the operation is utilizing. This is considered better than a magnet or a special target type typically used by other sensors. The ME-7 series can replace an existing magnetostrictive sensor.

These sensors can be embedded at the same location that is configured for accepting magnetostrictive sensors. It is vital to note that the magnet from the magnetostrictive sensor need not be removed from its current place. The performance of ME-7 is not affected due to the presence of the magnet. Additionally, since the ME-7 series sensors are contactless, there is no wear and tear and the output signal is free from any deterioration. With the use of inductive coil in place of wires and the use of “time of flight” technology, the ME-7 series sensors are able to withstand shocks and vibrations in a more sustained manner.

The Alliance Sensors Group can justifiably claim that ME-7 series sensors have a very robust construction, are able to adapt to existing cylinder designs, offer higher resolutions as well as offer options for multiple analog outputs. There is no need for a target rod or magnet and the sensors have an infinite life, as they are free from any contact. It is expected that almost all users will be able to benefit from the ME-7 series in more than one way.

A water cooler for the Raspberry Pi

Although the tiny Single Board Computer called the Raspberry Pi (RBPi) is mainly to teach the young kids how to code, several people are now hooked onto it and are executing extraordinary projects with it. Like other CPUs in regular computers, the RBPi can as well be overclocked and run in a turbo mode. Last year, the Pi Foundation, originators of the SBC, added the turbo mode and clarified that this will not void the warranty. Therefore, you can safely apply turbo mode when the RBPi is busy, limit turbo when the core of the RBPi (the BCM2835) reaches 85°C. By doing so, you will not be reducing the lifetime of your SBC.

Phame, from London, wanted to use more of the turbo mode without limiting the RBPi in any way. His immediate concern was to keep the BCM2835 cool. His motivation came in the form of a competition for building a new case for RBPi. That set him on the path of water-cooling the RBPi using a carefully designed case suitable for the purpose.

Phame went on to make a water block that sits on top of the RBPi’s CPU, LAN controller and some of the other components. Two pipes lead from the water block to a radiator filled with a coolant, circulated with a tiny British micropump. The radiator is a large aluminum tank, roughly 98x70x17 mm, containing more of the coolant. The entire rig sits in a frame and the pump draws its power from the RBPi. Phame custom made the frame, water block and the radiator, including the custom etching of the Pi logo on its interior.

The contraption works via convection, the process by which hot liquid rises to the top, to be replaced by colder parts of the liquid. As the CPU and other parts of the RBPi start to get hotter when run in turbo mode, the temperature of the coolant inside the water block that is in contact with the chips also rises. The hot liquid moves towards the upper part of the water block, and colder liquid flows in from the radiator below. By itself, this process would have sufficed to keep the temperature of the hot parts in check, but Phame added a pump to accelerate the coolant flow.

The micropump circulates the coolant between the radiator and the water block. Therefore, hot coolant from the water block moves on and colder liquid replaces it, thereby effectively removing the heat from the CPU and other parts. The hot liquid passes into the radiator, where it transfers the heat it is carrying into the aluminum. As a large surface of the aluminum radiator is in contact with the air outside, the heat is radiated into the ambient. Phame has gold-plated the internal surface of the aluminum radiator, so that the coolant in contact cannot corrode the surface.

You can see the rig in operation in this video. The only thing that Phame has not declared is whether he has operated the RBPi with the water cooler in place. It would be nice to have some temperature readings.

How does temperature affect component life?

Change in temperature affects the speed, power and reliability of electronic components and systems. Variation of temperature affects the speed performance, because material characteristics depend on temperature. These dependencies may be normal or reversed based on the type of the semiconductor material. Additionally, these dependencies change with technology scaling, and manufacturers counteract by introducing new processing materials, using metal gates and high-K dielectrics.

For example, temperature influences various performance functions in a MOSFET. These include the carrier density, energy band gap, carrier diffusion, mobility, current density, velocity saturation, leakage current, threshold voltage, electro-migration and interconnect resistance.

Temperature dependence of carrier density for a doped material occurs in three distinct regions. The material has just enough latent energy in the ionization region to push a few of the dopant carriers into the conduction band. When the material is in the extrinsic region, which is the desired region of operation, the carrier concentration remains flat over a wide range of temperatures.

This region has all the dopant carriers energized into the conduction band, and there is minimum generation of additional thermal carriers. However, as the temperature increases, the extrinsic region converts into the intrinsic region, with the number of thermally generated carriers exceeding the number of donor carriers. Typically, the intrinsic carrier concentration in a material is generally much smaller than the concentration of dopant carriers at room temperatures. However, intrinsic carrier concentration is highly temperature dependent and once the number of thermally generated carriers exceeds the number of dopant-generated carriers, the potential for thermal variation problems increases substantially.

At low temperatures, lattice vibrations in the material are small and electrons move more slowly. Thus, ion impurity forces dominate the limit to mobility. As temperature decreases, it takes less time for an electron to pass an impurity ion, which means the mobility decreases. The reverse is true when temperature rises; the carrier’s thermal velocity increases, consequently decreasing the impact of interface charges.

With an increase in temperature, the kinetic energy of particles within the material also increases, effectively increasing the diffusion component of the total current. Two parameters, mobility and carrier density affect the total current through the material. While the carrier density remains nearly fixed with temperature over the extrinsic range or the intended range of operation, the mobility term or the drift component of the total current actually decreases with an increase in temperature.

Since the temperature dependencies of diffusion and drift currents are of opposing nature, the net current change depends on the applied electric field and affects the threshold voltage and leakage current of the MOSFET. Manufacturers typically design the MOSFET such that its threshold voltage decreases linearly with increasing temperature. However, the leakage current doubles for every 10°C rise on temperature.

The resulting change in device current based on temperature can have devastating effects leading to timing failures, systems exceeding power or energy budgets and errors in communication between cores. This is more commonly known as reverse temperature dependence, which is the increase of electrical conduction with increase in temperature, first discovered by C. Park of Motorola, in 1995.

MCUs: Interesting things happen within smart phones and tablets

Cell phones and tablets have several interesting things within them such as touch-screens, cameras, gesture sensors, USB interfacing, battery charge monitoring, and many others. Most of these individual functions need tiny components called micro-controller units or MCUs. Of course, additional components are also required such as ADC or Analog to Digital Converters, PWM or Pulse Width Modulators, LCDs or Liquid Crystal Displays and capacitive touch screen interfaces.

The role of MCUs in modern cell phones and tablets can be appreciated by the different functions they handle. MCUs communicate with several analog sensors that in turn, take in analog signals and convert these into digital values. For example, high-end products may have temperature sensors such as RTDs, thermistors and humidity sensors. Others may have accelerometers for measuring 2- or 3-axis movement and convert this input into a digital signal for the MCU to handle.

Smartphones use several types of sensors that require handling by MCUs. ALS or Ambient Light Sensors allow automatic control of the display backlight brightness. This happens over a wide range of illumination conditions ranging from a dark room to direct sunlight. Magnetic sensors gauge the magnetic field intensity for indicating the North. Cameras and proximity sensors offer face and hand movement detection. This is useful for the MCU to switch on the keypad when the user’s hand comes near. IR proximity sensors in conjunction with the camera allow the MCU to switch on the touch screen by detecting the closeness of the user’s face, ear or head. Not only does this eliminate false touches on the touch screen, it reduced battery drain by shutting down unnecessary functions.

MCUs in smartphones dynamically regulate the transmission power when a human is near. In tablets, this is dependent on the Specific Absorption Rate or SAR. SAR is the rate at which the human body absorbs electromagnetic energy when exposed to radio frequencies.

Low-cost cell phones use a mechanical keypad, and an MCU decodes the user inputs. Another MCU handles the Lithium-ion battery charging and its optimal charge life. High-end cell phones have a touch screen and an MCU provides the interface. It uses Haptics or tactile feedback technology for detecting touch, force, vibration or motion of the human body parts near the screen.

USB interface is another very useful function provided by an MCU. It connects several external peripherals to the application processor within the smartphone in a host and slave mode for transferring data from the peripherals at high speeds.

Designers and manufacturers are now combining MCUs with programmable logic and high-performance analog-to-digital conversion capabilities. These are called the programmable system on chip or PSoC. They also have memory integrated into them.

By design, PSoC devices consume negligible amounts of power when in standby mode, making them eminently suitable for use in cellphones. Further design and operation complexity is reduced by having internal op-amps, comparators and ADCs within the PSoC. Sample and hold capability allows sensing and monitoring of slowly varying inputs such as from the battery or a temperature-measuring device. With the use of PSoC, manufacturers have been able to minimize PCB size for cell phone applications largely.