Skip to content
This repository has been archived by the owner on May 7, 2020. It is now read-only.

eswww/pi-snap-sensor-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-snap-sensor-driver

Introduction

Project for pi-snap sensor driver

Parts list

  • Ultrasonic sensor
  • Red LED
  • Green LED

Kernel directory path

~/linux-rpi

How to use

1. Build

../pi-snap-sensor-driver/driver/

$ make

../pi-snap-sensor-driver/app/

$ make

2. Load device driver

../pi-snap-sensor-driver/driver/

$ insmod sensor_driver.ko
$ sh mknod.sh

3. Modify IP address

../pi-snap-sensor-driver/app/sensor_lib.h

...
#define IP "127.0.0.1"    // Here!
...

4. Run application

Before running an application, you must ensure that the socket server is running!

$ ./sensor_app.out