Scientific task box V1

Dependencies:   HX711 DS1820

Dependents:   Scientific_RTOS Scientific_RTOS

Revision:
4:d9c5d93963a8
Parent:
3:442e7d2ab496
--- a/BOX.h	Mon Jun 10 13:11:22 2019 +0000
+++ b/BOX.h	Thu Sep 05 20:55:56 2019 +0000
@@ -13,7 +13,9 @@
   BOX (PinName pinCLK_HX711, PinName pinDAT_HX711,PinName pin_temp, PinName pin_cond,int HX711_coefficent,PinName pin_servo);
   float get_temp();    //return temperature from DS18B20
   int get_weight();    //return weight in g from hx711
-  int get_resistance();//return soil resistance
+  int get_resistance();//return voltage on resistor then :
+                       //current = (1 - meas_v) / (2000000); kvl and V/R to get current
+                       //resist = (meas_v / current);    Ohm law gives us the soil resistence 
   void move_servo(float ang);
   void tare(unsigned char times=20);         //sets tare on HX711 library
   void initialize();