Skip to content

Commit

Permalink
Add instructions for LD2410
Browse files Browse the repository at this point in the history
  • Loading branch information
disq committed Feb 17, 2023
1 parent 7f17758 commit 3d5239f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ add_compile_options(-Wall

if ((PICO_CYW43_SUPPORTED) AND (TARGET pico_cyw43_arch))
add_executable(${NAME}
main.cpp ledcontrol.cpp ledcontrol.h util.h config.h encoder.cpp encoder.h iot.cpp iot.h presence.cpp presence.h config_iot.h mbedtls_util.c cJSON/cJSON.c cJSON/cJSON.h DFRobot_mmWave_Radar.cpp DFRobot_mmWave_Radar.h
main.cpp ledcontrol.cpp ledcontrol.h util.h config.h encoder.cpp encoder.h iot.cpp iot.h presence.cpp presence.h config_iot.h cJSON/cJSON.c cJSON/cJSON.h DFRobot_mmWave_Radar.cpp DFRobot_mmWave_Radar.h
)
else()
add_executable(${NAME}
Expand Down
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ Only a single (right) side of the Pico is used for connections to allow for crea

Pinout diagram is [here](./doc/pinout.png) or [from the back](./doc/pinout-back.png) (courtesy of [pinout.xyz](https://pico.pinout.xyz/))

#### Using LD2410 sensor instead of DFRobot mmWave Radar

Set `PRESENCE_UART_RX_PIN` and `PRESENCE_UART_TX_PIN` to `0` in `config.h` and connect the [LD2410](https://www.aliexpress.com/item/1005004351593073.html) sensor as such:
- `VCC` to `VSYS` (Pin 39)
- `GND` to any `GND` pin
- `OUT` to Pin 22 (see `PRESENCE_PIN`)

## Usage

### TL;DR
Expand Down Expand Up @@ -108,7 +115,6 @@ And the Pico SDK:
```bash
git clone https://github.com/raspberrypi/pico-sdk
cd pico-sdk
git checkout develop # Switch to develop branch
git submodule update --init
export PICO_SDK_PATH=`pwd`
cd ../
Expand Down
22 changes: 0 additions & 22 deletions mbedtls_util.c

This file was deleted.

0 comments on commit 3d5239f

Please sign in to comment.