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

Files at this revision

API Documentation at this revision

Comitter:
hunter64288
Date:
Sun Jan 24 01:11:19 2021 +0000
Parent:
17:09bea038e7c0
Commit message:
Published.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);   
 }