Appiko
Macros
Appiko SensePi revision 4

Board definitions for the 4th revision of the passive motion sensor by Appiko. More...

Macros

#define BATT_VOLTAGE_SENSE   31
 Battery voltage level sensing pin.
 
#define DC_DC_CIRCUITRY   true
 Bool define if the circuitry is present for the internal DC-DC of nRF52.
 
#define NFC_CIRCUITRY   false
 Bool define if a NFC Antenna circuitry is present.
 
#define LFCLK_XTAL_PRESENT   true
 Bool define if the 32 kHz crystal is present for the LFCLK.
 
#define HFCLK_XTAL_PRESENT   true
 Bool define if a crystal is present for the HFCLK.
 
#define BOARD_LFCLKSRC_STRUCT
 

LED definitions for Sense rev4

Note
LED_1 and LED_2 are defines of the LED for compatibility with existing examples
#define LED_RED   26
 
#define LED_GREEN   27
 
#define LED_1   26
 
#define LED_2   27
 
#define LEDS_ACTIVE_STATE   1
 
#define LED_LIGHT_SENSE   28
 

Definition of configuration mode enable button pin

#define BUTTON_PIN   25
 
#define BUTTON_ACTIVE_STATE   0
 

Definitions of the pin of the audio jack to trigger camera

#define JACK_AUDIO_JACK_IO_PIN   11
 
#define JACK_FOCUS_PIN   12
 
#define JACK_TRIGGER_PIN   13
 

Serial port definitions for Sense rev4

#define RX_PIN_NUMBER   17
 
#define TX_PIN_NUMBER   20
 
#define HWFC   false
 
#define RTS_PIN_NUMBER   23
 
#define CTS_PIN_NUMBER   24
 

Pins for the amplified and filtered PIR signal

#define PIR_AMP_SIGNAL_PIN   4
 
#define PIR_AMP_OFFSET_PIN   5
 

Pins for driving MCP4012

#define MCP4012T_CS_PIN   6
 
#define MCP4012T_UD_PIN   7
 
#define SPI_SCK_PIN   8
 

Pins for testing and debugging

#define GPIO1_PIN   19
 
#define GPIO2_PIN   18
 

Detailed Description

Macro Definition Documentation

◆ BOARD_LFCLKSRC_STRUCT

#define BOARD_LFCLKSRC_STRUCT
Value:
{.source = NRF_CLOCK_LF_SRC_XTAL, \
.rc_ctiv = 0, \
.rc_temp_ctiv = 0, \
.accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM}

Low frequency clock source used when initializing the SoftDevice

Definition at line 119 of file sensepi_rev4.h.

◆ BUTTON_ACTIVE_STATE

#define BUTTON_ACTIVE_STATE   0

The logic level at which the Button will set value

Definition at line 54 of file sensepi_rev4.h.

◆ LED_LIGHT_SENSE

#define LED_LIGHT_SENSE   28

The light sensing

Definition at line 45 of file sensepi_rev4.h.

◆ LEDS_ACTIVE_STATE

#define LEDS_ACTIVE_STATE   1

The output level at which the LEDs shine

Definition at line 43 of file sensepi_rev4.h.

◆ MCP4012T_CS_PIN

#define MCP4012T_CS_PIN   6

Chip Select Pin for MCP4012

Definition at line 92 of file sensepi_rev4.h.

◆ MCP4012T_UD_PIN

#define MCP4012T_UD_PIN   7

U/D pin to set wiper value for MCP4012

Definition at line 94 of file sensepi_rev4.h.

◆ PIR_AMP_OFFSET_PIN

#define PIR_AMP_OFFSET_PIN   5

The DC offset of the amplified PIR sensor output

Definition at line 85 of file sensepi_rev4.h.

◆ PIR_AMP_SIGNAL_PIN

#define PIR_AMP_SIGNAL_PIN   4

The amplified and filtered output of the PIR sensor

Definition at line 83 of file sensepi_rev4.h.

◆ SPI_SCK_PIN

#define SPI_SCK_PIN   8

SCK pin required for SPI communication

Definition at line 96 of file sensepi_rev4.h.