Close

Testing, Testing 123

A project log for £100 Google Glass using Raspberry Pi

DIY Google glass but done properly

danielmcgrawdanielmcgraw 07/08/2014 at 10:430 Comments

The first thing we wanted to test was the battery life when the Raspberry Pi was powered from our 2500mAh battery. The Raspberry Pi is advertised as drawing 700mA so we expected about 3.5 hours. To test this, the Raspberry Pi was powered from the battery and boost converter with the only other thing connected being an Ethernet cable to receive the data. The setup is shown below with the battery on the left, the boost circuit on the breadboard providing power to the Raspberry pi via the GPIO.

I ran this simple python program which sent data to my desktop via SSH. (parts after # indicates an explanation, not the actual code)

import time #time library allowing the RPi to wait a certain length of time

x=0 #set up a value for x

while(1): #forever loop

print int(x) #send x to desktop

x=x+1 #increment x

time.sleep(60) #wait for 60 seconds or 1 minute

This was then left for about 6 hours to run and the last value of x received on my computer was 248. This means the Raspberry Pi was on for 248 minutes since the program was started so the battery lasted about 4 hours. This is more than expected but that is probably due to the fact that this was the only thing being run by the Raspberry Pi so the processor could run on very minimal resources. When the transmitter and Bluetooth are connected and the Pi is running a more complex program, I expect this to reduce to about 2.5 hours.

Our microsurgery on the charger circuit has proved to be unsuccessful as the metal parts came off certain components so we have purchased a Li-Po battery charger from Pimoroni (though they appeared to be Adafruit products) along with the large battery for the Raspberry Pi and 2 boost circuits. Once we have the Raspberry Pi working, I shall try and shrink it down but this will be done in small steps and now exams are over, I will try to update this page much more regularly.

 Test software (Top) Results from the test program (Bottom)

Discussions