iData Truck: an Internet of Things lorry
Andy Proctor drives a container delivery truck. He’s embedded a Raspberry Pi in the dashboard and turned the truck into an IoT device – saving time on updating his office on his movements, and learning Python and some electronics at the same time.
Andy says on his blog:
When we have the container loaded at the customer’s address we have to phone in and when it’s been unloaded do the same. We also let the office know when we have our shipping container lowered on the trailer or lifted off at the port. This normally means going through the switchboard to an operator and passing him simple information 4-5 times a day (with 50 trucks). They then update the software and then book the container with the next location, so I’ve automated it and learned how to use Python Programming.
Andy explains how everything works in this video.
We asked him on Twitter whether code and schematics are available: he said not yet, but he is planning on building a new website soon to host them.
Andy, if you’re ever in Cambridge with your truck, please let us know. We’d love to have a closer look! In the meantime, we’re going to be watching Andy’s truck’s progress via its Twitter feed, which publicly tweets every event that it logs.
25 comments
George Witherspoon
He doesn’t mention what the Pi is connected to; presumably some sort of phone.
Darrell Mullen
I am sure he connected to his mobile hotspot. I think that would be the easiest way, especially for common folks. There are, of course, many ways to do it…
Darrell Mullen
Yea, that sure looks like a wifi transceiver in one of the USB ports.
GottZ
or presumably a bluetooth stick to communicate wirelessly to a can bus transmitter
Gosub90
I think he mentions it quite quickly. From what I gather there’s a wifi dongle which connects to a wifi hotspot on his phone
vypuc
yes just here 3.25
brigo
This is great, thanks for sharing it with us Andy!
Dave W
A good idea, that! Worth keeping an eye on history, though… The London Ambulance Service tried a similar system in 1992 for their Computer Aided Dispatch, with disastrous results.
Having four identical buttons with no “undo” feature is asking for trouble, in my opinion, and was one of the design decisions that sank the Ambulance Service system.
It might be worth considering a slight redesign to allow for human error/finger trouble. Maybe a pre-select and confirm?
Peter
I’d agree – if this were to be rolled out accross the fleet, definitely. Maybe a dot matrix display?
Matt
Or use the military-style “fire” buttons – you have to flip a security cap in order to press the button :-)
simon
Good idea in principle, but needs cleaning.
a) LCD display to show what it’s doing. Having physical buttons is good, cos they give better tactile feedback than a featureless touch-screen and can be used with gloves. The buttons can be multi-function, like with older mobile phones.
So it offers the message to send, you press that button, then it offers “Send?”, “go back” before actually sending. This would be even more essential if you were barcoding from your job tickets.
b) the wiring here is a bit of a mess. Put all the wiring on a bit of veroboard and run to a head. Then use an unadulterated ribbon cable to do the joins. Makes assembly/testing/repair much easier.
Gareth
I think this is brilliant – a Pi used for education, and practical benefits as well. And (no offence Andy) not your typical Geek :-)
Bill Stewart
From what Andy has described, he only needs 1 button and a perhaps a reset.
Andy starts with an empty wagon and signals 4 things in order to arrive back at an empty wagon.
The python need only remember where in the process Andy and his container are.
The buttons could be red and green.
The indicators for the process could be LEDs
“press red to reset” I am empty for sure!
“press green to advance” container on board…
“hold red and tap green” to reset to a particular part of the process – if red hit by mistake.
Or simply make RED hard to hit (recessed)
here to invoke thought!
HansH
very nice job… really practical..
I would put all the resistors on a prototypeboard and connect the pushbuttons and leds to that with a separate small connector.
Probably you then can put everything in one panel.
guppster01
Wonderful example. I’m curious to see what he does with bar code scanning.
We use ServiceMax/Salesforce as a Field Service application for our Technicians. It has with it an iPad app the techs use to clock in and out of Work Orders, apply parts to a job, create Service reports, etc.
The app has its ups and downs. This has inspired me to think about how I could use a Raspberry Pi to have the techs clock in and out, and possible send Rest call to Salesforce to input data (basically bypass the iPad app).
Thanks for the inspiration!
jaypl
If you’re willing to learn some nodejs, a lot of the heavy lifting has already been done through the nforce package:
https://github.com/kevinohara80/nforce
You’ll need to register an app in Salesforce and get some keys/tokens to connect up. Here are some screenshots of where to make the setup and find keys (you don’t need the Hue lightbulb specific NPM/salesforce package):
http://reidcarlberg.com/2014/02/21/philips-hue-raspberry-pi-node-js-salesforce-and-you/
You can start out in your own free developer org if you want:
https://developer.salesforce.com/signup
The nforce library will take care of the authentication and you can listen to record changes using the streaming API or issue an upsert to create a record:
https://github.com/kevinohara80/nforce/blob/master/examples/upsert.js
Enjoy!
Kuruvilla Mathew
This is really impressive. If your primary job is in trucking but you moonlight as a Internet of Things maker. Wow! Tip my hat to you.
Danny S
If your connected to your phone via wifi for your data xfer purposes could you not SSH to the PI to do any programming modifications? I have android phone and use JuiceSSH https://juicessh.com/ to get in and sudo nano my python files for editing. Works great!
Nicolas Raoul
Very cool!
I am sure most trucks will soon use such open source-based systems, cheaper and more extensible than existing proprietary blackboxes.
As an improvement over email, I would suggest using CmisSync, my open source tool that syncs directly to your company’s document server (Alfresco/SharePoint/etc).
It runs on Raspberry Pi:
http://aegif-labo.blogspot.com/2014/12/cmissync-on-raspberry-pi-document.html
Another advantage of CmisSync is that your data will be sent as soon as network is available, so you don’t have to worry about having no cell coverage right now.
Looking forward to the barcode scanning extension!
Andy Proctor
Hi and thanks for your support, comments and improvements. I am just configuring a new Pi to do the next project. I have already printed the bar code labels for this. I also had the BBC with me for the day Monday and it will be edited before Christmas and I shall publish a link then. Thanks again, I have made a website at http://www.idatatruck.co.uk @proctorandy
Liz Upton
Brilliant – and congratulations on the BBC thing! Thanks ever so much, Andy; please let us know when you’re done with your next project.
awesome.coder()
What is a lorry? (Sorry, I am a kid from the US.)
Horia
A lorry is a large, heavy motor vehicle for transporting goods or troops; a truck :).
Donald Miller
Andy, Really liked what you did. You might want to use VNC Server so that you can use a VNC client on your laptop to connect to your Pi. That way you won’t need to hook and unhook the keyboard/monitor all the time.
Christopher Surplice
Brilliant Andy – well done.
I program things for a living, PLC’s and other embedded devices and used to work in telematics/M2M. Nice to see someone using their idea to help out in a practical situation.
Keep going i am sure you will soon be selling your system to others that see the benefits.
Cheers
Chris
Comments are closed