Posted on — Leave a comment

Wearable Raspberry Pi Part 2 – Power Supply

All Fitted
All Fitted

Progress is finally starting on the power supply unit for the Pi, fitted into the same case style as the Pi itself, this is an 8Ah Li-Poly battery pack with built in voltage regulation.

Regulator Boards
Regulator Boards

Here are the regulators, fixed to the top of the enclosure. These provide the 12v & 5v power rails for the Pi unit, at a max 3A per rail.

Battery Pack
Battery Pack

In the main body of the case the battery pack is fitted. This is made up of 4 3-cell Li-Poly RC battery packs, rated at 2Ah each. All wired in parallel this will provide a total of 8Ah at 12.6v when fully charged.

Powered Up
Powered Up

Here the regulators are powered up from a 13v supply for testing. I have discovered at full load these modules have very bad ripple, so I will be adding extra smoothing capacitors to the power rails to compensate for this.

I/O
I/O

Here are the connectors on the top of the unit, outputting the two power rails to the Pi & the DC barrel jack that will be used to charge the pack.

 

 

 

 

Posted on — Leave a comment

Wearable Raspberry Pi Part 1.75

USB Hub
USB Hub

The hub for the external USB ports has been fitted here, with the two ports hardwired to the pads where once there were USB A sockets. This hub will also accommodate the wireless receiver for the mini keyboard & mouse, in the remaining port that will sit between the external USB ports.

USB Ports
USB Ports

In this gap between the ports is where the wireless receiver will sit for the keyboard & mouse, the pair of screws securing the external ports in the centre have been shortened to make more room.

Posted on — Leave a comment

Wearable Raspberry Pi Part 1.5

USB Ports
USB Ports

For convenience, a pair of USB ports have been fitted to the wearable Pi, which open on the bottom of the unit. These will be hardwired into a 4-port USB hub which will also support the wireless adaptor for the mini-keyboard that is to be used with the device.

USBs
USBs

The two USB ports on the bottom of the casing.

External Connections
External Connections

The external connectors are also complete. The audio jack & second WiFi antenna port are fitted.

The audio is normally routed to the LCD display speaker, until a jack is plugged into the 3.5mm socket.

 

Posted on — 3 Comments

Wearable Raspberry Pi Part 1

Overview
Overview

Here is the project I’m currently working on. A completely wearable computing platform based on the Raspberry Pi & the WiFi Pineapple.

Above can be seen the general overview of the current unit.

On the left:

  • Alfa AWUS036NHA USB High Power WiFi Network Interface
  • 512MB Model B Raspberry Pi, 16GB SD card, running Raspbian & LXDE Desktop. Overclocked to 1GHz.

On the right:

  • WiFi Pineapple router board
  • USB 3G card.

The WiFi, Pineapple & 3G all have external antenna connections for a better signal & the whole unit locks onto the belt with a pair of clips.
The Raspberry Pi is using the composite video output to the 7″ LCD I am using, running at a resolution of 640×480. This gives a decent amount of desktop space while retaining readability of the display.

The case itself is a Pelican 1050 hard case, with it’s rubber lining removed. The belt clips are also a custom addition.

Connections
Connections

Here are the connections to the main unit, on the left is the main power connector, supplying +5v & +12v DC. The plug on the right is an 8-pin connection that carries two channels of video, mono audio & +12v power to the display.
Currently the only antenna fitted is the 3G.

Connectors
Connectors

Closeup of the connections for power, audio & video. The toggle switch is redundant & will soon be replaced with a 3.5mm stereo jack for headphones, as an alternative to the mono audio built into the display.

Test Run
Test Run

Current state of test. Here the unit is running, provided with an internet connection through the Pineapple’s 3G radio, funneled into the Pi via it’s ethernet connection.

Pi Goodness!
Pi Goodness!

Running on a car reversing camera monitor at 640×480 resolution. This works fairly well for the size of the monitor & the text is still large enough to be readable.

 

Stay tuned for Part 2 where I will build the power supply unit.

 

Posted on — Leave a comment

445nm Laser TTL Interface

TTL Interface
TTL Interface

In preparation for my laser scanner project, I have modified my existing 445nm laser to accept a TTL blanking input. The laser driver is already enabled for this & just required an extra connection to interface with my laser scanner showboard. I have used an 8-pin connection to allow the same cable & interface to be used with an RGB laser system, when it arrives. The signals are as follows, from top centre, anti-clockwise:

Pin 1: +12v Power
Pin 2: Blue TTL
Pin3: GND
Pin 4: Green TTL
Pin 5: GND
Pin 6: Red TTL
Pin 7: GND
Centre: Power GND

 

Custom TTL Cable
Custom TTL Cable

Here is the custom 8 core cable, which connects to the laser scanner show board. This cable allows the laser to be used for projection while still retaining the portable function & the keylock arming switch. When plugged in the cable bypasses the keyswitch & provides 12v DC direct to the laser driver.

Posted on — Leave a comment

He-Ne Laser

He-Ne Laser Mount
He-Ne Laser Mount

Having had a He-Ne laser tube for a while & the required power supply, it was time to mount the tube in a more sturdy manner. Above the tube is mounted with a pair of 32mm Terry Clips, with the power leads passing through the plastic top. The ballast resistor is built into the silicone rubber on the anode end of the tube. (Right).
Output power is about 1mW for this tube, which came from a supermarket barcode scanner from the 90’s. The tube is dated August 1993 & is manufactured by Aerotech.

Internals
Internals

Inside the box is the usual 2.2Ah 12v Li-Po battery pack & the brick type He-Ne laser supply. The small circuit in the centre is a switchmode converter that drops the 12v from the battery pack to the 5v required for the laser supply.

Posted on — Leave a comment

1.5W 445nm Lab Laser

Assembled
Assembled

Here is a followup from the 1.5W laser module post.

The module has been fitted into a housing, with a 2.2Ah Li-Poly battery pack. Charging is accomplished with an external 12.6v DC power supply.

Above can be seen the pair of switches on the top, the keyswitch must be enabled for the laser to fire.

Armed
Armed

When armed, the ring around the push button illuminates blue, as a warning that the unit is armed.

Switch Wiring
Switch Wiring

Inside the unit. The Li-Poly battery pack is at the bottom, with it’s protection & charging circuitry on the top. The switches are wired in series, with the LED connected to illuminate when the keyswitch is turned to the ON position.

Laser Driver
Laser Driver

The push button applies power to the laser driver module, which regulates the input power to safely drive the semiconductor laser in the aluminium heatsink housing.

 

 

Posted on — Leave a comment

DIY Valve Amplifier – Part 1 – Amplifier Section

Components
Components

Here are a few details of a valve amplifier I am building, using the valve related parts from a 1960’s reel to reel tape recorder.

This amplifier is based on an a Mullard ECL82 triode/pentode valve, with an EM84 magic eye tube for level indication.

Beginnings Of The Amplifier
Beginnings Of The Amplifier

Here the first components are being soldered to the tags on the valve holder, there are so few components that a PCB is not required, everything can be rats-nested onto the valve holders.

Progress
Progress

Progressing with the amplifier section componentry, all resistors are either 1/2W or 2W.

Valve Sockets Fitted
Valve Sockets Fitted

Here the valve holders have been fitted, along with the output transformer, DC smoothing capacitor & the filament wiring, into the top of the plastic housing. At this point all the components that complete the amplifier section are soldered to the bottom of the right hand valve holder.

Wiring
Wiring

Starting the wiring between the valves & the power supply components. The volume control pot is fitted between the valve holders.

Valves Test Fit
Valves Test Fit

The valves here are test fitted into their sockets, the aluminium can at the back is a triple 32uF 250v electrolytic capacitor for smoothing the B+ rail.

Amplifier Section First Test
Amplifier Section First Test

First test of the amplifier, with the speaker from the 1960’s tape recorder from which the valves came from. the 200v DC B+ supply & the 6.3v AC filament supply is derived from the mains transformer in the background.

Magic Eye Tube Added
Magic Eye Tube Added

Here the magic eye tube has been fitted & is getting it’s initial tuning to the amplifier section. This requires selecting combinations of anode & grid resistors to set the gap between the bars while at no signal & picking a coupling RC network to give the desired response curve.

Final Test
Final Test

Here both valves are fitted & the unit is sitting on it’s case for final audio testing. the cathodes of the ECL82 can be clearly seen glowing dull red here.

 

In the final section, I will build a SMPS power supply into the unit to allow it to be powered from a single 12v DC power supply.

Posted on — Leave a comment

SEPIC Regulator Test Rig

Regulator Hookup
Regulator Hookup

Here’s the regulator hooked up with test clips, on the right is the supply from the ultracapacitor bank, while on the left is the output, feeding a 2.3A brushless fan as a test load.

These regulators do get warm, even with no load, with a 2.3A load on the output, the temperature stays warm to the touch.

Posted on — Leave a comment

Site Hosting

Original Rack
Original Rack

There have been quite a few updates to the hosting solution for this site, which is hosted locally in my house, from the above setup, in a small comms rack, to a new 22U half rack, with some hardware upgrades to come.

Core Switch Disconnected
Core Switch Disconnected

Core switch here has been removed, with the rest of the core network equipment. The site was kept online by a direct connection into the gateway to the intertubes.

Switching Gear Installed
Switching Gear Installed

New 22U rack, with the core switch, FC switch & management & monitoring server installed.

Router Going In
Router Going In

As I had no rack rails to start with, the servers were placed on the top of the rack to start off, here is the Dell PowerEdge 860 pfSense core router installed, with the initial switch wiring to get the internal core network back online. This machine load balances two connections for an aggregated bandwidth of 140MB/s downstream & 15MB/s upstream.
The tower server behind is the NAS unit that runs the backups of the main & auxiliary webservers.

Almost Done
Almost Done

Still with no rack kits, all the servers are placed on top of the rack, before final installation. This allows running of the network before the rest of the equipment was installed.

The main server & aux server are HP ProLiant DL380 G3 servers, with redundant network connections.

Still to arrive are the final rack kits for the servers & a set of HP BL20p Blade servers, which will be running the sites in the future.

Stay tuned for more updates as they happen!

Posted on — Leave a comment

Media PC Build Log

Front
Front

This will be the record of building a new Media PC, above you can see the finished system.

It’s Mini-ITX based, with on-board HDMI output, specifically to run XBMC via Fedora for media purposes.

CiC MTX001B Mini-ITX Case
CiC MTX001B Mini-ITX Case

This is the case that is being used, around the size of a Shuttle PC. It has a single 3.5″ & 5 1/4″ bay, for a HDD & ODD, front panel USB, Firewire & Audio.

Intel BLKDH57JG Mini-ITX Motherboard
Intel BLKDH57JG Mini-ITX Motherboard

Motherboard to fit the case. Supports Intel Core i5 series CPUs, with up to 8GB of DDR3 RAM.
Other features are on-board full surround audio, HDMI, eSATA, & a single 16x PCIe slot.

Corsair 4GB DDR3 DIMMs
Corsair 4GB DDR3 DIMMs

Matching memory for the motherboard, a pair of 4GB DDR3 units.

Akasa K25 Low Profile CPU Cooler
Akasa K25 Low Profile CPU Cooler

Having never been impressed by bundled coolers with CPUs, here is an aftermarket low-profile unit, with solid copper core for enhanced cooling. This cooler is specially designed for Mini-ITX uses.

Intel Core i5 650 Dual Core 3.2GHz CPU
Intel Core i5 650 Dual Core 3.2GHz CPU

The brains of the operation, Core i5 650 CPU, should handle HD video well.

Posted on — Leave a comment

New Feature – Geiger Counter

Here’s something new, an internet connected Geiger counter! The graph in the sidebar is updated once every 60 seconds, and can be clicked on for a larger version. Measurements are in Counts Per Minute, the graph logs 1 hour of data.

 

The counter itself is a Sparkfun Geiger counter, with the end cap removed from the tube so it can also detect alpha radiation.

Connected through USB, a Perl script queries the emulated serial port for the random 1 or 0 outputted by the counter when it detects a particle. The graph is pretty basic, but it gets the point across. Anybody who wishes to contribute to improve the graphing is welcome to comment!

Geiger Counter
Geiger Counter
Posted on — Leave a comment

Ultracapacitor Voltage Regulation

MuRata Switching Regulator
MuRata Switching Regulator

As an ultracapacitor has a pretty linear discharge curve, some electronics are required to make them behave more like batteries, such as as SEPIC converter.
On the right is a MuRata Power Solutions UQQ-12/8-Q12P-C switching regulator, which will accept a 9-36v input source & output a constant 12v at 8A (96W).

 

Posted on — Leave a comment

Raspberry Pi GPIO Experiment Board Improvements

First Mods
First Mods

Here are the first set of mods & improvements to the RasPi Experiment board. Instead of the solder-point experiment space, I have added a standard mini-breadboard, even though it’s a little too long to fit on the board properly.

In the DIP breakout, is a MAX232 TTL-RS232 interface IC, useful for interfacing directly to the Pi’s UART, made available on the GPIO breakout. I will be hardwiring the MAX232 IC into the GPIO port, & fitting headers to the relevant pins on the IC breakout to make interfacing to the Pi easier.

All the MAX232 requires to operate are a 5v supply & 4 1µF capacitors.

The new TO220 device next to the breadboard is a TIP121 darlington power transistor.This is rated at 80v 5A continuous. Useful for driving large loads from a GPIO output.

 

More to come soon!

Posted on — Leave a comment

Raspberry Pi GPIO Breakout

Board Built
Board Built

After seeing these on eBay for £8.99 I thought it might be a good deal – interfacing with the RasPi’s GPIO & it has built in power supplies.

As a kit, it was very easy to assemble, the PCB quality is high, and is a fairly good design. It worked first time, the regulators hold the rails at the right voltages.
However there are some issues with this board that bug me.

The documentation for the kit is *AWFUL*. No mention of the regulators on the parts list & which goes where – I had to carefully examine the schematics to find out those details.
The 4x 1N1007 diodes required weren’t even included in the kit! Luckily I had some 1N4148 high speed diodes lying around & even though they’re rated for 200mA continuous rather than the specified part’s 1A rating, the lack of heatsinking on the regulators wouldn’t allow use anywhere near 1A, so this isn’t much of a problem.

Component numbering on the silkscreen isn’t consistent – it jumps from R3 straight to R6! These issues could be slightly confusing for the novice builder, and considering the demographic of the RasPi, could be seen as big issues.

On the far left of the board are the 5v & 3.3v regulators, well placed on the edge of the board in case a heatsink may be required in the future. However the LM317 adjustable regulator is stuck right in the middle of the PCB – no chance of being able to fit a heatsink, & the device itself seems incredibly cheap – the heatsink tab on the back of the TO-220 is the thinnest I have ever seen. Not the usual 2-3mm thick copper of the 5v & 3.3v parts – but barely more than a mm thick, so it’s not going to be able to cope with much power dissipation without overheating quickly.

As the adjustable rail can go between ~2.5v – 10v, at the low end of the range the power dissipation is going to shoot through the roof.

The GPIO connector – this could have been done the other way, at the moment the ribbon cable has to be twisted to get both the Pi & the GPIO board the same way up. Just a slight fail there. See the image below

Plugged In
Plugged In

The power rails are not isolated out of the box – there is no connection between the 5v & 3.3v rails & the Pi’s GPIO, but the GND connections are linked together on the board.

Getting the ribbon cable through the  hole in the ModMyPi case was a bit of a faff – the connector is too big! I had to squeeze the connector through at a 45° angle. The case is also remarkably tight around the connector once it’s fitted to the board – clearly the designers of the case didn’t test the an IDC connector in the case before making them!
Everything does fit though, after a little modification.

All Cased Up
All Cased Up

Here is the unit all built up with the case. The top cover just about fits with the IDC connector on the GPIO header.

More to come once I get some time to do some interfacing!

 

Posted on — Leave a comment

2600 Farad Ultra Capacitors

Ultracap Bank
Ultracap Bank

Just a quickie to note down the current progress of another project – Ultracapacitors.
Pictured right is a bank of 6 2.5v 2600F Maxwell Boostcaps, for a total of 15v at 433.333F. A total energy storage of  48.7kJ.

Coming soon will be the inclusion of charge balancing, using Zener diodes & integrating a DC-DC converter on the output to hold the bank voltage at 12v when being used.

Posted on — 4 Comments

OMXPlayer Series Play

This is a little script to make OMXPlayer on the Raspberry Pi cycle through every file in a specified folder, useful for playing sequential movies or series of episodes.

 

#!/bin/bash
if [ x"$1" = x"help" -o x"$1" = x"--help" -o x"$1" = x"-help" ];then
 echo "Usage: omxseries  [folder path]"
 echo "Audio Mode can be either 'hdmi' or 'local'."
 echo "Folder Path is the full path to the video files on your system."
 echo "This script will attempt to play every file in the target folder, with any file extension,"
 echo "so ensure that only valid video files are present in the target folder to avoid errors."
exit
fi
for file in $2/*
do
 omxplayer -o $1 $file
done

Example:
[root@raspbian ~]# omxseries hdmi /media/stuff/videos
would play everything in /media/stuff/videos and send the audio over the HDMI port.

Download the script to your Pi with this code:

wget -O /usr/bin/playseries https://www.experimental-engineering.co.uk/wp-content/plugins/download-monitor/download.php?id=1 && chmod +x /usr/bin/playseries
Posted on — Leave a comment

ModMyPi Raspberry Pi Case

Fitted Pi
Fitted Pi

Finally, some protection for my Raspberry Pi! The PCB fit is slightly loose, but that was quickly sorted with the application of a couple of spots of hot glue in the corners.

Unfortunately, the case is a couple of mm too small to fit the main board from the Pico Projector inside, so I won’t be butchering that into the case with the Pi as yet. What is required is an interface to the display engine from the Pi’s DSI interface.

 

Pi Cased Up
Pi Cased Up

The pi all boxed. up. The only thing that this case would now require is a lightpipe to direct the LED’s light to the openings in the case, as they are very difficult to see at present.

 

Posted on — Leave a comment

AutoFace HID Ballast & Bulb

Ballast
Ballast

I bought one of these cheap HID kits from eBay to build a high-brightness work light that I could run from my central 12v supply.

At £14.99 I certainly wasn’t expecting anything more than the usual cheap Chinese construction. And that’s definitely what I got 😀

Potted PCB
Potted PCB

The casing is screwed together with the cheapest of screws, with heads that are deformed enough to present a problem with removal.

As can be seen here, the inside of the unit is potted in rubber compound, mostly to provide moisture resistance, as these are for automotive use.
The ballast generates a 23kV pulse to strike the arc in the bulb, then supplies a steady 85v AC at 3A, 400Hz to maintain the discharge.
This module could quite easily be depotted as the silicone material used is fairly soft & can be removed with a pointed tool.

 

Hi-Lo Bulb Assembly
Hi-Lo Bulb Assembly

Here is the bulb removed from it’s mount. Under the bulb itself is a solenoid, which tilts the bulb by a few degrees, presumably to provide dim/dip operation for a headlight. This functionality is superfluous to my requirements.

Bulb
Bulb

Closeup of the arc chamber of the bulb.

 

 

Posted on — Leave a comment

ShowWX+ Pico Projector First Light

Projection
Projection

Above is the image projected from the Pi, on the default login screen. Distance from the projector is approx 10 feet.

Projector
Projector

State of the art projector mount, fashioned from several cable ties. HDMI cable is plugged into the right hand side of the projector.

Unfortunately the projector cannot handle audio on the HDMI connector, the 3.5mm headphone jack on the projector is for splitting audio out of the iDevice connection only, and does not make the HDMI audio stream available.

 

 

 

Pi
Pi

The Raspberry Pi, hosting a USB keyboard, & USB powered speakers. Running the standard Debian release, on a 16GB card, with omxplayer installed for media functions.

Posted on — Leave a comment

The Perfect Companion To The Raspberry Pi

As I’m building a portable “media center” with my first Pi, I was looking for a suitable screen. I remembered the existence of these:

ShowWX+ HDMI Pico Projector
ShowWX+ HDMI Pico Projector

A laser pico projector combined with a Pi, in a small enough package would make a fantastic
little portable media player. So £220 was shelled out 🙂

Along with the case for my Pi coming from Mod My Pi, I am aiming for a device as small as possible. At some point I will fit the Pi into the same package as the projector, if it can be cannibalised in such a way 🙂

Check back for an update with running images of the projector, powered from the Pi’s HDMI output.

I will also be doing the standard teardown of the projector when time allows 🙂

Bootnote:
Micro HDMI Connections: These are CRAP. They don’t stand up to any form of day-to-day use, and the projector began displaying a blue screen with “INVALID VIDEO MODE” as soon as anything was plugged into the Micro HDMI port. A quick attack with a jeweller’s screwdriver fixed the port, as it had become loose.

Posted on — Leave a comment

RasPi Terminal Customisations


As seen in the previous post, the SSH terminal of my Pi gives some useful stats. This is done using GNU Screen, with a custom config file.

This file is .screenrc in your user’s home folder. My personal code is posted below:



~/.screenrc
startup_message off
backtick 1 30 30 $HOME/bin/disk.sh
backtick 2 30 30 $HOME/bin/mem.sh
hardstatus alwayslastline
hardstatus string '%{gk}[ %{G}%H %{g}][Disk: %1` RAM: %2`M][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}'
nonblock 1
defnonblock 1

I have uploaded the pair of scripts for the backticks, and they can be found here:

mem.sh
disk.sh

More to come once my new 16GB Class 10 SD Card arrives!