Thursday, April 17, 2008

Progress... Finally!!

Ok finally a good day. I started off today writing a C program to open the Gumstix's serial port and send data to the LCD. Was'nt too bad in the end, thanks for the sample code Steve, and seemed to be running fine but nothing was being displayed on screen? I was testing this on fedora 6 first because you cant compile anything on the Gumstix. Anyway i decided to just try the code on the gumstix but it didnt like it one bit. Before fixing this i decided to make sure data was actually getting to the screen. I went over the circuit again and it turned out i had the transistor the wrong way round. The LCD was still being powered so i didnt realise. Anyway i fixed this and tested it by just echoing strings to the serial port. The screens cursor seemed to react so i figured it was getting data now. Just for the craic i thought i'd try python again because it connects to the serial and sends data in just two lines of code, and also you can set the correct connection bit rate which might have had something to do with echo not really working. Well anyway it worked!! Its also super handy that i can use python because i can edit the python script which processes tag reads to also send data to the screen. Im just not sure yet what actual info im gonna display???? :-/

No comments: