Skip to main content

Samples

In the SDK subfolder samples\, you find many samples explaining working with different sensors and subsystems. Each sample is a separate project, which you can compile and flash to CHESTER.

SampleComment
accelAccelerometer example
adcAnalog to digital converter
blinkyLED blinking
chester_c2CHESTER-C2
chester_kCHESTER-K1 4-ch diff input
chester_s1CHESTER-S1 temperature, humidity, pressure, CO2, PIR sensor, button
chester_x0CHESTER-X0 (4-ch input/output)
chester_x2CHESTER-X2 (serial communication RS-485 and TTL UART)
chester_x2_loopCHESTER-X2 TX/RX loop example
chester_x3CHESTER-X3 (Precision ADC, RTD, PT1000, strain gauge)
chester_x4CHESTER-X4 Step-down DC/DC with ADC and 4 power outputs
chester_x7CHESTER-X7 Single channel diff input
chester_zCHESTER-Z1 Rechargeable battery backup module with DC/DC converter and charger
ctr_barometer_tagBarometer Tag support from TOWER Kit
ctr_battMeasure CHESTER-M battery voltage at a rest or load
ctr_bleBLE advertising
ctr_ble_scanBLE scanner
ctr_bufUsing ctr_buf to pack numbers, strings and data to a binary structure
ctr_edgePin interrupts
ctr_edge_x0Pin interrupts on CHESTER-X0
ctr_infoRead device information from PIB block (serial number, variant,...)
ctr_lte_if_v2Example of using LTE_v2 library
ctr_machine_probeRead Machine Probe temperature, humidity, illuminance, magnetometer and accelerometer
ctr_meteoRead wind speed, direction and rainfall from meteo station
ctr_soil_sensorRead moisture and temperature from Soil Sensor
ds18b20Read temperature from multiple 1-Wire DS18B20 temperature sensors
ds2484
expanderTCA9534A GPIO expander example
gnssGNSS example to get location data
gpioWrite to GPIO pins
hygroReading temperature and humidity from CHESTER-S2 hygro sensor
i2c_masterI2C master communication example
i2c_slaveI2C slave communication example
lrwLoRaWAN example
lteLTE example
lte_cborLTE example with CBOR to JSON encoding
modbusRS-485 Modbus reading example
opt3001OPT3001 luxmeter example reading illuminance
people_counter
pt1000RTD temperature reading with CHESTER-X3 and PT1000 sensor
rfmuxSwitching RFMUX between LTE/LoRaWAN and internal/external antenna
sensor_pnp_npnCHESTER-X0 input pin change detection using ctr_edge
sleepLow-power example to test idle current consumption
sleep_chester_x2Low-power example to test idle current consumption with CHESTER-X2
thermReading temperature from CHESTER-M on-board temperature sensor
wdogWatchdog example
weight_scale