Skip to content

Instantly share code, notes, and snippets.

@laclefyoshi
Created February 5, 2011 04:16
Show Gist options
  • Save laclefyoshi/812188 to your computer and use it in GitHub Desktop.
Save laclefyoshi/812188 to your computer and use it in GitHub Desktop.
Monostable mode of 555 timer
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