-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
14,809 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | | ||
| ||
|
||
**Strapping** | ||
|
||
None | ||
|
||
| ||
|
||
|
||
**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 | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.