
manro
Members-
Content Count
5 -
Joined
-
Last visited
About manro
-
Rank
Noob Class
-
CC1310 / CC1350 (sensortag) VCC (battery) monitor
manro replied to manro's topic in Energia - TivaC/CC3XXX
@Rei Vilo as i wrote, i know about Weather Sensors Library and implementing communication with i2c sensors is straightforward. I was just wondering why I'm getting this error. -
CC1310 / CC1350 (sensortag) VCC (battery) monitor
manro replied to manro's topic in Energia - TivaC/CC3XXX
yes, i forgot convert value to millivolts, whole code is: #include <driverlib/aon_batmon.h> ... void setup() { AONBatMonEnable(); ... } void loop() { int BATstatus = AONBatMonBatteryVoltageGet(); BATstatus = (BATstatus * 125) >> 5; ... } so I started researching libraries in ...\power\hardware\cc13xx\4.9.1\system\source folder. I know that even you @Rei Vilo,are the author of libraries for several sensors, but I tried to import #include <ti/mw/sensors/SensorBmp280.h> and then call SensorBmp280_init() in setup function but something is wrong: undefined -
CC1310 / CC1350 (sensortag) VCC (battery) monitor
manro replied to manro's topic in Energia - TivaC/CC3XXX
just like this? #include <driverlib/aon_batmon.h> ... void setup() { AONBatMonEnable(); ... } void loop() { int BATstatus = AONBatMonBatteryVoltageGet(); ... } -
CC1310 / CC1350 (sensortag) VCC (battery) monitor
manro replied to manro's topic in Energia - TivaC/CC3XXX
Ok, I understand but how can i read BATMON Registers in energia? -
Hi everyone, how can i read VCC on cc1310 launchpad respectively cc1350 sensortag with energia? I tried this, but without success: int getVCC() { analogReference(INTERNAL2V5); int data = (int)map(analogRead(A0), 0, 1023, 0, 5000); return data; } @Rei Vilo what do you think?