mnfmnfm / Parking-IoT-Physical

A parking lot hardware interface application, for the automated management of parking spaces.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DMD Banner

DMD Physical

Parking-IoT-Physical

Our team name: DMD-Code-Fellows

⭐ Star us on GitHub!

Code base and resource repository use for raspberry pi interaction with Parking-Iot-Server

Documentation:

Javadoc-Server

Javadoc-Physical

System requirements

  • Raspberry Pi Device
    • jumper cables, breadboard, resistors
  • Raspbian OS
  • Clone project from Github
  • Library (Wiring Pi, Pi4J)

Features

In your Raspberry Pi :

  • Follow Environment-setup
  • Clone project from Github
  • Run ./gradlew build in console to compile code
  • Run ./gradlew bootrun to run application

Environment Setup

Prerequsites

NOOBS (New Out of Box Software)

The latest official release of NOOBS can be downloaded from : http://downloads.raspberrypi.org/NOOBS_latest

On first boot NOOBS will format your SD card and allow you to select which OSes you want. For the purpose of this project, ensure Raspian OS is selected to install.

New to Rasperry?

Follow any of these tutorials to make your first basic circuit connection project!

Basic - First Circuit

Java - Lighting an LED with GPIO pin

Python - Lighting an LED with GPIO pin

Java Runtime (JRE/JDK)

If you are using a recent build of Raspian, then an Oracle Java runtime environment is pre-installed. Nothing more to do.

To check if you have Java installed run:

java -version

If you are using an older Raspian build that does not already include a Java runtime environment, then you need to follow these steps to setup the environment:

  • Install and boot the Raspberry Pi using Rasbian

  • run:

    apt-get update
    apt-get install oracle-java8-installer`
    
WiringPi Native Library

The library Pi4j is dependent on the use of an updated version of the library WiringPi. Even though it is native to Raspian, the most current dependency is using a deprecated version of WiringPi.

To install WiringPi in your local RaspberryPi follow these instructions:

  • download: Wiring Pi 2.46
  • note the unique identifier number and letters after wiringPi
    • for example download file name: wiringPi-8d188fcf20.tar.gz
    • unique identifier number: 8d188fcf20
  • then run this code:
    $ cd
    $ tar xfz wiringPi-98bcb20.tar.gz
    $ cd wiringPi-98bcb20
    $ ./build
    
  • testing wiringPi's Connection
    • $ gpio -v
      $ gpio readall
      
    • A version result should display
Installing Source Code
  • got the directory in which you want to install Physical application, for example: /var/www:
cd /var/www
  • Clone this repository for code to run your Raspberry Pi

To run client view locally with your database, clone: Parking-Iot-Server

RaspberryPi Setup

Refer to the schematic and connect your circuit in the proper pins. If you need a tutorial on how to setup your Raspberry Pi device refer back to Device Setup

Schematics

schematic

Configuring your device with a cobbler

Please note the number of pins that comes with your ribbon cable and cobbler needs to be compatible the model 3B header for the purpose of this tutorial

DMD Physical

DMD Physical

About

A parking lot hardware interface application, for the automated management of parking spaces.

License:Apache License 2.0


Languages

Language:Java 100.0%