28.02.2015 Views

MagPi31-single

MagPi31-single

MagPi31-single

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

iDATA TRUCK<br />

Projects<br />

HOW TO<br />

REPORT IN<br />

WITH iDATA<br />

TRUCK<br />

> STEP 01<br />

Press the button<br />

When Andy loads or unloads,<br />

he presses one of the four<br />

preselected buttons on the iData<br />

Truck so he can let his company<br />

know what he’s up to.<br />

Not only did the buttons tweet his<br />

current status, it emailed his office<br />

then I’ll be able to scan them. If it’s<br />

just scanning to say ‘start of day’,<br />

‘end of day’ or ‘on a break’, it will<br />

tweet that but not email it. If it’s<br />

‘running 30 minutes later’ or ‘box<br />

on’/‘box off’, it will still email it to<br />

the office. So there will be a split of<br />

what data gets sent where.”<br />

What’s next?<br />

Next on the list for Andy is a<br />

camera – Pi-powered, of course<br />

– in a blind spot of his lorry that<br />

will display on his dashboard<br />

and hopefully make it easier to<br />

manoeuvre while reducing the risk<br />

of accidents. He also has further<br />

plans for the iData Truck beyond<br />

his personal use of it.<br />

“I’ve approached the people that<br />

make the software that everybody<br />

uses in the industry and they said<br />

if one of their customers wanted to<br />

use that, then that’s fine, they’d<br />

support it... one person’s been in<br />

touch that can make the hardware,<br />

a box to put it in, the switches in<br />

the panel and the software, should<br />

I want to develop it further.”<br />

So next time you pass a container<br />

lorry on the M3, give it a wave and<br />

you might end up on iData Truck TV.<br />

> STEP 02<br />

Wait for the beep<br />

You need to hold the button down<br />

for half a second: “It kept getting<br />

really hot, so I had to put a delay in<br />

to stop the processor working so<br />

hard from all the loops!”<br />

> STEP 03<br />

Email and tweet sent<br />

An email is sent off to Andy’s<br />

company to let them know of<br />

his status, and a tweet is sent to<br />

the @idatatruck Twitter feed for<br />

everyone to see what he’s up to.<br />

Left The<br />

information on<br />

the iData Truck<br />

stream is always<br />

expanding.<br />

Andy initially<br />

had trouble with<br />

duplicate tweets<br />

until he started<br />

using timestamps<br />

raspberrypi.org/magpi March 2015 25

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!