Skip to content

Instantly share code, notes, and snippets.

View johnkonstantine's full-sized avatar

johnkonstantine

View GitHub Profile
class Bussiere_1_01(object):
def __init__(self):
self.name = "bussiere"
self.age = 27
self.age_affectif = 10
self.signe_chinois = "coq"
self.defauts = ["Obsede","Vantard","Besoin constant de se montrer","\"lourd\"","Toujours envie d'aider les gens parfois un peu trop","Trop bavards parfois"]
self.qualites = ["Calin","Attentionne","Protecteur","Tendance a aider les gens","gentil"]
@johnkonstantine
johnkonstantine / reponse et conseil au sparkfun day
Created January 13, 2011 14:36
reponse et conseils pour le sparkfun day
If the ADC Value on a 10-bit ADC in a 3.3V system is 362, what is the voltage on the pin?
1.166 Volts <- celle la: 362 * 330 / 1024
1166 Volts
112.3296 Volts
1.767 Volts
Your system runs on a 12V battery. You'd like to monitor the battery voltage, but the range of your analog inputs is only 0 to 5V. What would be the best resistor choice for this task? (Since you're probably in a hurry, we've calculated the ratio R2/(R1+R2) for you.)
R1 = 1K Ohms, R2 = 1K Ohms