Created
February 5, 2011 04:16
-
-
Save laclefyoshi/812188 to your computer and use it in GitHub Desktop.
Monostable mode of 555 timer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mTimeCalculate(info): | |
r1 = info["r1"] | |
c = info["c"] | |
print "R1: %d, C: %f¥n¥tTime: %f(sec)¥n" % (r1, c, r1 * c * math.log(3)) | |
# math.log(3) = 1.1 | |
def mResisterCalculate(info): | |
t = info["time"] | |
c = info["c"] | |
print "Time: %d(sec), C: %f¥n¥tR1: %f" % (t, c, t / (c * math.log(3))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment