Himanshu Kaushik
/
voltagemeter
for 0-3 v battey pack module
main.cpp
- Committer:
- himanshukaushik
- Date:
- 2021-03-02
- Revision:
- 0:0b26aa1c549c
File content as of revision 0:0b26aa1c549c:
#include "mbed.h" Serial pc(USBTX, USBRX); AnalogIn Ain(p18); float ADCdata=0; float b=0.3050313; int main() { pc.printf("ADC Data Values... \n\r"); while (1) { ADCdata=Ain/b; pc.printf("%f \n\r",ADCdata); wait(0.5); } }