RTC-Modul
Mit dem RTC Modul kann die Uhrzeit, auch ohne Stromversorgung, gespeichert werden.
Erste Schritte mit deiner senseBox und der Arduino IDE
Die senseBox MCU Library bietet dir Zugriff auf die folgenden Funktionen/Sensoren:
Die senseBoxMCU Library ist Bestandteil des Board-Support-Package und wird automatisch installiert.
Die senseBoxMCU Library lässt sich einzeln über folgenden Befehl einbinden:
include <senseBoxMCU.h>
Die Library enthält die folgenden Klassen und Funktionen. Erstelle eine neue Instanz einer Klasse um auf ihre Funktionen zugreifen zu können, z.B. bietet dir die Klasse
#include "senseBoxMCU.h"
HDC1080 hdc;
Zugriff auf die folgenden Funktionen:
hdc.getTemperature();
hdc.getHumidity();
public:
Bee();
uint8_t connectToWifi(char* ssid, char* password);
void startAP(char* ssid);
char* getSsid();
char* getPassword();
char* getIpAddress();
Classname: OpenSenseMap
functions public:
OpenSenseMap(const char* boxId, Bee* bee, const char* host);
void uploadMeasurement(float value, char* sensorID);
void uploadMobileMeasurement(float value, char* sensorID, float lat, float lng);
void setUploadInterval(unsigned int);
Classname: SDS011
functions public:
SDS011(Stream& serial);
float getPm10(void);
float getPm25(void);
Classname: HDC1080
functions public:
uint8_t begin(void);
double getTemperature(void);
double getHumidity(void);
Classname: TSL45315
functions public:
uint8_t begin(void);
double getUvIntensity(void);
Classname: TSL45315
functions public:
uint8_t begin(void);
unsigned long getIlluminance(void);
Classname: Ultrasonic
functions public:
Ultrasonic(int rx, int tx);
long getDistance(void);
Classname: BMP280
functions public:
bool begin();
float getTemperature(void);
float getPressure(void);
float getAltitude(float seaLevelhPa = 1013.25);
Classname: GPS
functions public:
void begin();
float getLatitude();
float getLongitude();
float getAltitude();
float getSpeed();
float getHdop();
float getDate();
float getTime();
Classname: Microphone
functions public:
Microphone (int pin);
float getValue();
Classname BMX055
functions public:
uint8_t beginAcc(char range);
uint8_t beginGyro(void);
uint8_t beginMagn(void);
void getAcceleration(float *x, float *y, float *z, float *accTotal);
void getMagnet(int *x, int *y, int *z);
void getRotation(int *x, int *y, int *z);
Classname Button
functions public:
Button(int pin);
void begin();
bool getSwitch();
bool isPressed();
bool wasPressed();