IRNAS / ppk2-api-python

Power Profiling Kit 2 unofficial python api.
http://irnas.eu
GNU General Public License v2.0
145 stars 37 forks source link

Documentation for ppk2 #28

Closed aquil-rodrigues closed 4 months ago

aquil-rodrigues commented 1 year ago

Description

Which document was referred for developing the package

I would like to contribute for this project so it would be helpful

NejcKle commented 1 year ago

@aquil-rodrigues this package has been developed by referring to the official pc-nrfconnect-ppk application and the ppk_api.

cranialhum commented 5 months ago

Hi @NejcKle. I've been checking out your code for converting the raw measurement data to current draw measurements, and was wondering if you could point to, or explain, the derivation of the get_adc_result function - particularly the below lines. Thanks in advance!

        result_without_gain = (adc_value - self.modifiers["O"][current_range]) * (
            self.adc_mult / self.modifiers["R"][current_range])
        adc = self.modifiers["UG"][current_range] * (result_without_gain * (self.modifiers["GS"][current_range] * result_without_gain + self.modifiers["GI"][current_range]) + (
            self.modifiers["S"][current_range] * (self.current_vdd / 1000) + self.modifiers["I"][current_range]))
NejcKle commented 5 months ago

Hello @cranialhum, the API is translated from Typescript into Python and is based on the official pc-nrfconnect-ppk app. The lines you are referring to can be found here.

wlgrd commented 4 months ago

Looks like this has been solved. Closing. Feel free to open up a new issue :)