Add an output device to a microcontroller board you´ve designed and program it to do something.I decided to do desplay thermistor value wiCH i designed for the week Input devices,as first try "LCD"for an output device ,decided to mill Neil's Dispaly
used Neil's c code at first
connected to the computer , open terminal to make hex
sudo make -f hello.LCD.44.make
to program
sudo make -f hello.LCD.44.make program-usbtiny
i got the desplay "hello to world"
used Neil's c code at first, but really wanted to see my own words on lcd desplay(iam great,iam infinity) ,for that first i did edit hello cd c file in gdeit,then deleted already downloaded hex file ,made the hex file to see my own words
sudo make -f hello.LCD.44.make
Redesigned Neil'd LCD boaed to add temperature sensing part from a thermistor,designing steps and all have documented in input devices assignment documetation
link
Thermistor +LCD board
Programming THis part was a hell lot of work,i had to spend almost 2 days to figur it out .First i tried to add code for wheatson brige in to Neil'es code.hese is code for whaeston brigde,
value = adcw
if (value > 511):
value -= 1024
V = 2.5 - value*5.0/(20.0*512.0)
R = 10000.0/(5.0/V-1.0)
# NHQ103B375R5
# R25 10000 (O)
# B (25/85) 3750 (K)
# R(T(C)) = R(25)*exp(B*(1/(T(C)+273.15)-(1/(25+273.15))))
B = 3750.0
R25 = 10000.0
T = 1.0/(log(R/R25)/B+(1/(25.0+273.15))) - 273.15
tok adc from PA6 and adc from PA7,uses these values in Nel's equation...before that i checked what each adc values measures exactly and then took the defference.but i didnt get desired output,i got temperature value but it wasn't correct.