Assignment
Measure something. Add a sensor to a microcontroller board and read it
For the assignment of this week I used a negative temperature coefficient (NTC) thermistor.
Thermistors are commonly used for sensing air and liquid temperatures in pipes and ducts, and as room temperature sensors.
First I have milling the board in the modela and solder the components.
To program the board with the FabISP we need to download the hello.temp.45.c and hello.temp.45.make files and the hello.temp.45.py file to visualize the results
I've altered Python file by entering this formula:
T = (B/(log(R/R25)+(B/(25.0+273.15))))-273.15
To replace this
one
T = 1.0/(log(R/R25)/B+(1/(25.0+273.15))) - 273.15
Final files:
- hello.temp.45new.py
|