Contiki-NG
Loading...
Searching...
No Matches

The RE-Mote was designed jointly with universities and industry partners in RERUM European project, to ease the development of private and secure applications for IoT and Smart City applications. More...

Topics

 RE-Mote power management driver
 The power management module is composed by a nano-watt (gating) timer and an ultra-low power MCU, driving the RE-Mote power supply when connected to an external battery, and allowing an application to enter a so-called "shutdown mode".

Files

file  arch/platform/zoul/remote-reva/board.c
 Board-initialisation for the Zolertia's RE-Mote revision A platform.
file  arch/platform/zoul/remote-reva/board.h
 Header file with definitions related to the I/O connections on the Zolertia's RE-Mote platform (revision A), cc2538-based.

Functions

void board_init ()
 Board specific iniatialisation.

ADC configuration

These values configure which CC2538 pins and ADC channels to use for the ADC inputs.

By default the RE-Mote allows two out-of-the-box ADC ports with a phidget-like 3-pin connector (GND/VDD/ADC)

The RE-Mote allows both 3.3V and 5V analogue sensors as follow:

  • ADC1: up to 3.3V.
  • ADC2: up to 3.3V, shared with RTC_INT
  • ADC3: up to 5V, by means of a 2/3 voltage divider.

Also there are other ADC channels shared by default with Micro SD card and user button implementations:

  • ADC4: up to 3.3V.
  • ADC5: up to 3.3V.
  • ADC6: up to 3.3V.

ADC inputs can only be on port A. All ADCx are exposed in JP5 connector, but only ADC1 and ADC3 have GND and VDD (3/5V) pins next to it, so these can be exposed into a 3-pin phidget-like connector, for ADC2 either solder a wire to connect, or use a 4-pin connector to expose both ADC1 and ADC2 in a single connector, but this will leave no space for a ADC3 connector. The internal ADC reference is 1190mV, use either a voltage divider as input, or a different voltage reference, like AVDD5 or other externally (AIN7), but note the PA7 is shared with the Micro-SD CSn pin, likewise for PA6 (AIN6) shared witht the Micro-SD select pin To use the ADC2 pin, remove the resistor on the Zoul's PA4 pin (JP1, pin 10) and enable below (replace -1 with 4).

#define ADC_SENSORS_PORT   GPIO_A_NUM
 ADC GPIO control port.
#define ADC_SENSORS_ADC1_PIN   5
 ADC1 to PA5, 3V3.
#define ADC_SENSORS_ADC3_PIN   2
 ADC3 to PA2, 5V.
#define ADC_SENSORS_ADC2_PIN   (-1)
 ADC2 no declared.
#define ADC_SENSORS_ADC4_PIN   (-1)
 ADC4 not declared.
#define ADC_SENSORS_ADC5_PIN   (-1)
 ADC5 not declared.
#define ADC_SENSORS_ADC6_PIN   (-1)
 ADC6 not declared.
#define ADC_SENSORS_MAX   2
 Maximum sensors.

RE-Mote Button configuration

Buttons on the RE-Mote are connected as follows:

  • BUTTON_USER -> PA3, S1 user button, shared with bootloader and RTC_INT1
  • BUTTON_RESET -> RESET_N line, S2 reset both CC2538 and CoP
  • BUTTON_PIC1W -> shared with SHUTDOWN_ENABLE, not mounted.
#define BUTTON_USER_PORT   GPIO_A_NUM
 BUTTON_USER -> PA3.

Detailed Description

The RE-Mote was designed jointly with universities and industry partners in RERUM European project, to ease the development of private and secure applications for IoT and Smart City applications.

The RE-Mote packs several on-board resources, like a RTC, external WDT, Micro-SD, RF switch and a Shutdown mode to reduce its power consumption down to 300nA.

This file provides connectivity information on LEDs, Buttons, UART and other RE-Mote revision A peripherals

This file can be used as the basis to configure other platforms using the cc2538 SoC.