You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Jamie Munro b60f542093 Test page for test data and clean up 2 years ago
arduino Fixed bug in arduino code where a negative loop duration would result in a long delay. Traffic map implemented with just position indicator needed 2 years ago
config Fixed bug in arduino code where a negative loop duration would result in a long delay. Traffic map implemented with just position indicator needed 2 years ago
routes Fixed bug where time would display as 00:4 when it should be 00:04 2 years ago
static Test page for test data and clean up 2 years ago
.gitignore removed pdf 2 years ago
README.md Arduino roadside code complete 2 years ago
index.html Arduino communication infrastructure setup and temperature sensor implemented 2 years ago
package-lock.json Arduino communication infrastructure setup and temperature sensor implemented 2 years ago
package.json Arduino communication infrastructure setup and temperature sensor implemented 2 years ago
server.js Final cleanup and added test page where data can be manually specified 2 years ago
test.html Test page for test data and clean up 2 years ago

README.md

CS5041 - Interactive Hardware and Software Practical 2

Practical 2 - Smart highway billboard

Jamie Munro

Install

Requires node.js and npm (node package manager)

npm install

Run

Run in development mode (automatically refreshes everytime a file is saved):

npm run dev

Run in (pseudo) production mode:

npm start

Notes

  • Transport font - https://www.roads.org.uk/fonts. Orginally developed by department of transport, editied by me to add exclamation mark, degree symbol and minus sign (fontforge)
  • Color pallete following department of transport guidlines - https://www.gov.uk/guidance/traffic-sign-images
  • weather icons by RNS from https://iconstore.co/icons/rns-weather-icons
  • weather retreived from OpenWeatherMap API
  • Blue fakeduino needs to be treated as Board:arduino nano, Processor: Atmega 168
  • Traffic sensor only gives amount of time taken to clear sensor and cannot be directly converted to speed. In order to calculate speed either the length of the vehicle must be known, or two sensors should be used where the distance between them is known. We will assume that all vehicles are the average vehicle length.

Licence

2022 Jamie Munro, All rights reserved.