Skip to content

Commit

Permalink
added ST VL53L1X lidar camera
Browse files Browse the repository at this point in the history
  • Loading branch information
mrkcass committed Oct 27, 2018
1 parent e653158 commit 040e7fc
Show file tree
Hide file tree
Showing 18 changed files with 14,809 additions and 0 deletions.
56 changes: 56 additions & 0 deletions lidar_camera/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@


PROJ_NAME=lidar_camera

OBJECT_FILES = lidarcamera_main.o \
lidarcamera.o \
vl53l1x.o \
SparkFun_VL53L1X_Arduino_Library.o \


SRC_DIR = src
OBJ_DIR = build

CC = g++
INCLUDE_PATHS = -I. -I/usr/include -I../libhardware/src
CFLAGS = -Wall -O2

LIB_PATHS = -L/usr/lib -L../libhardware
LIBS = -lpthread -lmraa -lhardware

OBJ = $(patsubst %,$(OBJ_DIR)/%,$(OBJECT_FILES))

all: $(OBJ_DIR) start_build_message $(PROJ_NAME)

$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp
$(CC) -c -o $@ $< $(CFLAGS) $(INCLUDE_PATHS)

$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
$(CC) -c -o $@ $< $(CFLAGS) $(INCLUDE_PATHS)

$(PROJ_NAME): $(OBJ)
$(CC) -o $@ $^ $(CFLAGS) $(LIB_PATHS) $(LIBS)

start_build_message:
$(info #)
$(info #)
$(info #)
$(info #)
$(info #)
$(info Building: $(PROJ_NAME))
$(info #)

start_clean_message:
$(info #)
$(info #)
$(info #)
$(info #)
$(info #)
$(info Cleaning: $(PROJ_NAME))
$(info #)


.PHONY: clean

clean: start_build_message
rm -f $(OBJ_DIR)/*.o $(PROJ_NAME)
Binary file not shown.
Binary file added lidar_camera/build/lidarcamera.o
Binary file not shown.
Binary file added lidar_camera/build/lidarcamera_main.o
Binary file not shown.
Binary file added lidar_camera/build/vl53l1x.o
Binary file not shown.
Binary file added lidar_camera/lidar_camera
Binary file not shown.
58 changes: 58 additions & 0 deletions lidar_camera/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
**LIDARCAM Driver**
#
ST VL53L1X Time of flight lidar camera
#
**Functional Description**

#
**Operation**


#
**Status**
* **October 26, 2018** - Driver is talking to the sensor and is reading values from registers.
However, The device will not respond to write commands and will not bring itself out of the
boot sate. The sensor has funny voltage requirements and so I may have blown an internal component
or perhaps have it stuck in a odd state. order another sensor and will test when it
arrives.
* **October 25, 2018** - Ported the Sparkfun code to the somax base. using this code
to drive the chip as the register space is ennormous and would take to long to write
from scratch.
* **October 20, 2018** - Created initial driver.
#


| Specs | Maker |
| ---------- | ------- |
| Maker | ST |
| Model | VL53L1X |
| Supplier | Pesky Products |
| Range | 4 meters |
| Voltage | 3.3v |
| Current normal | |
| Current standby | |
| Current sleep | |
| Dimensions | 10x18 mm |
| Bus | I2C |
| Frequency | 400 kbits |
| Address | 0x29 |
&nbsp;

**Strapping**

None

&nbsp;


**Pin Map VL53L1X**

|VL53L1X Pin | Edison Mini-Breakout Pin |
|------------- | ------------------------- |
| VIN | 3.3 POWER |
| GND | GND |
| SCL | I2C1 SCL (1v8) |
| SDA | I2C1 SDA (1v8) |
| XSHUT | GP77 |
| INTRUPT | GP82 |

13 changes: 13 additions & 0 deletions lidar_camera/somax-camlidar.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=Somax Thermal Camera
After=somax.service

[Service]
TimeoutStartSec=5
ExecStart=/root/thermal_camera/thermal_camera run-sleep
Environment="HOME=/home/root"
WorkingDirectory=/root/thermal_camera
Restart=always

[Install]
WantedBy=multi-user.target
Loading

0 comments on commit 040e7fc

Please sign in to comment.