Society of Robots - Robot Forum
Software => Software => Topic started by: karlis on July 31, 2012, 12:40:19 PM
-
Hello folks!
Recently i found this wonderfull project (digital thermometer)http://www.pocketmagic.net/?p=473 (http://www.pocketmagic.net/?p=473).
Recreating the project was super easy, and it works fine. Now i want to add some more thermometers and make some output, problem is, that i`m not a programmer.
Few years back i did some projects, but no coding from scratch, so i looked up the code, and understood that i cannot modiffy it by my self.
Can some one give me an advice, a good tutorial on lcd`s, how to understand them in easy way?
I`m using avr studio 4 and avr isp (chinse rip off)
Thanks in advance.
My best regards.
Karlis
-
If You cannot modify code, then write from scratch :) I find it difficult to modify code myself, so I normally don't. Plus, You learn coding and how hardware works much better when doing it Yourself.
Using HD44780 based LCDs (http://iamsuhasm.wordpress.com/tutsproj/using-lcds/) article explains how LCD works and how to control it. There are already written libraries that You can use, makes everything much easier.
-
Thanks for your input newInRobotics.
The link you gave was interesting, but it doesnt solve my programming issue, everything i have learned from electronics / programming is from modiffying / editing others work, in this case, the code is what i do not understand, and cant find any usefull tutorial how to do it right, google thinks that i want to build a phone and provides lame tutorials about nokia lcds X_X
-
Which part exactly You do not understand?
-
Well, i found place in code where to edit the text string, tried to change the accuracy of reading from 4 digits behind dot, to one, ok i understand that its not directly related to lcd programming but with ds18b20 sensor
I read that partk of code where string output is made, and cannot understand why and what is this last digit in [] brackets, as the nummber changes with increment +1 its some kind of counter, but cant find out for what, lcd refresh rate ?
Other thing what i do not understand is how to add other ds18b20 sensors to the code, should i make another c file, like T1.c t2.c etc and change the ports and variables ? would this work corectly?
-
so there`s no easy way to understanding this ?
-
I do not have time to analyse tutorials code at the moment, having that said, if I were You, I wouldn't try to modify it at all. I would try to understand how each component work and try to write my own code based on tutorial code (no copy paste). That's the best I can advice to You at this time.