I am trying to use the mmWave lite with a ESP32 board.
programmed with arduino ide, following this post. mmWave Human Static Presence Module Lite | Seeed Studio Wiki
i believe i have the ide setup right with the right board because im able to other programs fine
This a diagram of my setup.
Serial output is this, for serial 1 and 2.
22:16:18.081 → rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
22:16:18.081 → configsip: 0, SPIWP:0xee
22:16:18.081 → clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
22:16:18.127 → mode:DIO, clock div:1
22:16:18.127 → load:0x3fff0030,len:1344
22:16:18.127 → load:0x40078000,len:13924
22:16:18.127 → ho 0 tail 12 room 4
22:16:18.127 → load:0x40080400,len:3600
22:16:18.127 → entry 0x400805f0
22:16:19.131 → ets Jul 29 2019 12:21:46
22:16:19.131 →
22:16:19.131 → rst:0x8 (TG1WDT_SYS_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
22:16:19.131 → configsip: 0, SPIWP:0xee
22:16:19.131 → clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
22:16:19.131 → mode:DIO, clock div:1
22:16:19.131 → load:0x3fff0030,len:1344
22:16:19.131 → load:0x40078000,len:13924
22:16:19.131 → ho 0 tail 12 room 4
22:16:19.131 → load:0x40080400,len:3600
22:16:19.131 → entry 0x400805f0
The Code is this right from the sensor page.
#include “Arduino.h”
#include <humanstaticLite.h>
//#include <SoftwareSerial.h>
// Choose any two pins that can be used with SoftwareSerial to RX & TX
//#define RX_Pin A2
//#define TX_Pin A3
//SoftwareSerial mySerial = SoftwareSerial(RX_Pin, TX_Pin);
// we’ll be using software serial
//HumanStaticLite radar = HumanStaticLite(&mySerial);
// can also try hardware serial with
HumanStaticLite radar = HumanStaticLite(&Serial1);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial1.begin(115200);
// mySerial.begin(115200);
while(!Serial); //When the serial port is opened, the program starts to execute.
Serial.println(“Readly”);
}
void loop() {
// put your main code here, to run repeatedly:
radar.HumanStatic_func(true); //Turn on printing of human movement sign parameters
if(radar.radarStatus != 0x00){
switch(radar.radarStatus){
Serial.println(radar.radarStatus);
case SOMEONE:
Serial.println(“Someone is here.”);
Serial.println("---------------------------------");
break;
case NOONE:
Serial.println(“Nobody here.”);
Serial.println("---------------------------------");
break;
case NOTHING:
Serial.println(“No human activity messages.”);
Serial.println("---------------------------------");
break;
case SOMEONE_STOP:
Serial.println(“Someone stop”);
Serial.println("---------------------------------");
break;
case SOMEONE_MOVE:
Serial.println(“Someone moving”);
Serial.println("---------------------------------");
break;
case HUMANPARA:
Serial.print(“The parameters of human body signs are: “);
Serial.println(radar.bodysign_val, DEC);
Serial.println(”---------------------------------”);
break;
case SOMEONE_CLOSE:
Serial.println(“Someone is closing”);
Serial.println("---------------------------------");
break;
case SOMEONE_AWAY:
Serial.println(“Someone is staying away”);
Serial.println("---------------------------------");
break;
case DETAILMESSAGE:
Serial.print("Spatial static values: ");
Serial.println(radar.static_val, DEC);
Serial.print("Distance to stationary object: ");
Serial.println(radar.dynamic_val, DEC);
Serial.print("Spatial dynamic values: ");
Serial.println(radar.dis_static, DEC);
Serial.print("Distance from the movement object: ");
Serial.println(radar.dis_move, DEC);
Serial.print(“Speed of moving object: “);
Serial.println(radar.speed, DEC);
Serial.println(”---------------------------------”);
break;
}
}
delay(200);
}
Thanks for the Help.