Introduction: Dedicated Automobile Traffic Monitor With Raspberry Pi

Picture of Dedicated Automobile Traffic Monitor With Raspberry Pi

This will help to see the state of roads, in live, just need to load your favorite (urban or not) traffic map.

http://www.f4huy.fr/?p=581

Step 1: The Screen

Picture of The Screen

- The screen
I have found a nice screen on ebay for ~18€, a 3.2″ TFT LCD Touch Screen, cheap and small is ideal.

- Installing raspbian-DVK512-12040725.img
To use the touch screen, we run under a Raspbian distribution, you can download the image file here already configured to work with the XPT2046 LCD Control (most common 3.2 TFT found on ebay) . Extract the image file on a 2Gb mini SD Card, and run the setup config.

- Calibrate the screen
Go to Preferences, Calibration Touchscreen, follow the instructions.

Step 2: The Data Connection

Picture of The Data Connection

I have a Samsung S4 Mini cell phone, the raspberry-pi will use the router
function (Wifi) to download the data through LTE/4G network. Use a cheap USB Wireless Nano Dongle (WiFi Adapter), around 3$ on ebay. Plug the dongle, there is no need additional drivers, run wpa-gui-wireless to reach your network wifi from your phone.

Step 3: Configuring LXDE to Start the Midori Browser on Login (with Your Favorite Road Traffic Map)

Picture of Configuring LXDE to Start the Midori Browser on Login (with Your Favorite Road Traffic Map)

Connect your Raspberry to your local network through Eth link, grab the Ip address, and and log-in using Putty. Then:
Edit the autostart file:

sudo nano /etc/xdg/lxsession/LXDE/autostart

Comment out everything using a ‘#’ at the start of each line and then add the following lines

# Auto run the browser

@xset s off

@xset -dpms

@xset s noblank

@midori -e Fullscreen -a http://m.sytadin.fr

#(i use the mobile version of m.sytadin.fr to load the traffic road of Paris)

Use the configuration tool to enable auto running of the GUI on powerup

sudo raspi-config

- Power supply – Install and configure start/shutdown button (option)
Power supply is provided by a 12v/5v cigarette lighter socket converter, for my test i use a Lenovo 90W Ultraslim AC/DC Combo Power Adapter.

I found a start/shutdown button on mausberrycircuits.com, also you can find many result with google, some interesting links. You need to properly shutdown the Raspberry, otherwise it will corrupt your OS.

- Case and holder
A classic enclosure Raspberry Pi B Acrylique with “GPS” holder to mount in the car, from ebay or dealextrem.

Comments

AyushP2 (author)2015-07-19

How do you get other cities onto the rpi

asdadeel (author)2015-03-12

thank you

asdadeel (author)2015-03-12

thank you

Gerfri (author)2015-03-05

Excelent!!!

akreitlow (author)2015-01-07

Do you have an suggestions on where to get a good pick of various gps programs ? I'm looking for one in monochrome that have lines of latitude and longitude, some what military style.

GarthBock (author)2015-01-07

Nice Job !!!! We need more Pi projects like this. Seems like there are a lot of TP out there and they give enough info to make the video work but not enough to use the TS.

wrsexton (author)2015-01-06

Wow! Excellent!

About This Instructable

14,454views

310favorites

More by j3tstream:Revive an old garden lamp with a solar panelDedicated Automobile Traffic Monitor With Raspberry PiPowering automatically a FM-Radio with a simply ambient light switching system
Add instructable to: