![]() ![]() ![]() ![]() Update-alternatives -install /usr/bin/tclsh tclsh /opt/ActiveTcl-8.6/bin/tclsh8.6 90 -slave /usr/bin/wish wish /opt/ActiveTcl-8.6/bin/wish8.6 -slave /usr/bin/tkcon tkcon /opt/ActiveTcl-8.6/bin/tkcon -slave /usr/bin/teacup teacup /opt/ActiveTcl-8.6/bin/teacup Don't forget to change ActiveTcl-8.6 to whatever you have. The app by defaults is installed in /opt/ActiveTcl-X.Y (X.Y is the Tcl version, currently 8.6, therefore it will be /opt/ActiveTcl-8.6 )Īll the above is generic to all Linux systems.Ħ- Now, here is the way to let you use ActiveTcl without breaking the APT packaging system in Debian based distributions, type the following commands. Tar zxvf ActiveTcl8.6.92-linux-x86_ģ- change to the directory of the decompression output:Ĭd ActiveTcl8.6.92-linux-x86_64-threaded/ĥ- run the installer of ActiveTcl and keep things in there by default, the defaults are OK: Please use the file name that *YOU* will download in the next steps according to the current download at the time of you are reading this.Ģ- Using the terminal we decompress the downloaded file: So the file that you will download is named "ActiveTcl8.6.92-linux-x86_". At the time of this writing the current ActiveTcl version is 8.6.4. I have Debian GNU/Linux 8.0 (Jessie) 64bit on my laptop. I expect to solve the problem by cheking the program or changing the sensor.Download the suitable version to your Linux system whether it's 64 bit or 32 bit. Here, using the python i a window enviroment, to which we had to install the next programs:Īctually the task was not entirely successful for the temp board because the temperature records obtained did not agree to real measured temperature. Then we must to write hello.light.45.py /dev/ttyUSB0 to access the visual interface. Here, testing the hello light board also in UBUNTU enviroment. To complete this final step we must write on the shell: hello.temp.45.py /dev/ttyUSB0 For that we must open the terminal, as administrator and typing - ls /dev - we find "ttyUSB0" (port 0) For that we will install the Python TK in UBUNTU enviroment, and use the correct serial port. To display the temperature sensed by the thermistor is necessary to have an interface that translates the sensed signal to represent a graduated scale on the monitor. Sudo make -f hello.light.45.make program-usbtinyĪvrdude -p t45 -c usbtiny -U flash:w:hello.light.45.c.hex Sudo make -f hello.temp.45.make program-usbtinyĪvrdude -p t45 -c usbtiny -U flash:w:hello.temp.45.c.hex We need the archive hello.light.45.c to generate the hex, and the makefile to build the file hello.light.45.hex. Similary the hello light board has a light sensor (phototransistor) that create a different current passing through its terminals. We need the archive hello.temp.45.c to generate the hex, and the makefile to build the file hello.temp.45.hex. Here are the boards (right) ready to be programmed with the FAB ISP board (left) made in a previus taskįirst, I am going to program the Hello Temp Board to convert it on a termistor in which the temperature sensor is a kind of resistor (R5 NTC) that changes the resistance value in according with the sensed temperature. ![]() I wanted to do the input devices task making and using the light and temperature devices. For this task it was very usefull to follow the tutorial from Providence where it is step by step, the procedure to programming the boards. ![]()
0 Comments
Leave a Reply. |