Get the values from LM35 in binary to control a 7 segment display


hello

what need values lm35 , turn them bcd equivalent. have code turn values decimal numbers, need msb , lsb converted binary value , them output. example:
if sensor displays value "27", msb, need following pins output value.

1 low
2 low
3 high
4 low

and lsb

5 low
6 high
7 high
8 high

according have researched, need separate them arrays, i've never used arduino before in life.
thanks in advance

would help
code: [select]

byte bcdfromint(int input)
{
byte byteval= (input/10) * 16;
byteval += input %10;
return byteval;
}


Arduino Forum > Using Arduino > Project Guidance > Get the values from LM35 in binary to control a 7 segment display


arduino

Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code