A mbed RTOS based multimeter application that sends results to a phone over the Bluetooth module.

Dependencies:   LCD_DISCO_F429ZI mbed mbed-rtos BSP_DISCO_F429ZI

Revision:
18:545a94c4a5b2
Parent:
17:09bea038e7c0
--- a/main.cpp	Mon Jan 18 23:28:52 2021 +0000
+++ b/main.cpp	Sun Jan 24 01:11:19 2021 +0000
@@ -44,7 +44,7 @@
     //Thread-1 reads the ADC Data
     results *message = mpool.alloc();           //allocating fixed size memory        
     message->voltage = ain.read()*3;           //reference voltage = 3v
-    message->current = (ain.read()*3)/100;
+    message->current = (ain.read()*3)/100;     // voltage/resistance (100 ohm)
     queue.put(message);                        //Adding data to the queue
     Thread::wait(2000);   
 }