Learning লেবেলটি সহ পোস্টগুলি দেখানো হচ্ছে৷ সকল পোস্ট দেখান
Learning লেবেলটি সহ পোস্টগুলি দেখানো হচ্ছে৷ সকল পোস্ট দেখান

বৃহস্পতিবার, ৯ মার্চ, ২০১৭

Android Remote Power Monitor

The power profiling is necessary to make  estimation about charging and discharging profile. There few ways to get a accurate measurement. I know two methods to do it,

1) Directly measure battery voltage and current using a very small (10-30mohm) sense resistor.
2) Directly measure battery voltage and current from charging IC using I2C interface.
3) Reading battery voltage and current from android
Method 1 is the most reliable and accurate way, however requires some hardware modification. Method 2 is time consuming and limited by the manufacturer support. Most of the battery charger IC support  I2C interface and has user access to the necessary registers. You need to go through in the datasheet to find the necessary registers. This might take sometime to write a workable script. 

Method 3 is a quick and easiest way to make a Android power profile. However, I am not sure how accurate it is. Android system has a power_supply directory where it store all the power information. I wrote a small batch script to read those android files and redirect them to a text file. During discharging, ADB using USB will not work as the same usb cable charge the unit. I use adb over tcp to over come this problem. I also read CPU temperature in this script. Here is the code,
 

বৃহস্পতিবার, ২৯ অক্টোবর, ২০১৫

Agilent E3633A as Step Voltage Source using RS-232

Here is very small and simple program to use Agilent E3633A as step voltage source. I used LabView to get the same functionality before. But it took almost a week to complete it. With serial command it only took me only 2 hours. I didn't know it can be that easy. Here I started with 8V and 0.5mA. The voltage is then step down at 0.004V after every 50 seconds. To run this,

  1. Copy the following code in a text file and save the test file with ttl extension.
  2. Connect the Agilent E3633A with DB-9 cable or serial cable and power it on.
  3. open Tera Term in serial connection.
  4. Click Control-> Macro and load the file you saved.
You show see that the output voltage of E3633A is changed to 8V and after every 50s the voltage is falling 0.004V.


এই ব্লগটি সন্ধান করুন