7. Conclusion

A combination of C and Tcl/Tk is an easy and powerful way to make graphical controls for your devices. Tcl/Tk gives you a flexible set of commands for creating the graphical interface, while C lets you execute the low-level commands necessary to get at the serial port. This technique is good for making a wide variety of computer programs, for robotics and other things. Personally, we have been using four variations of it: the one you saw in this demo, programs for interfacing with a stepper motor controller and a nanometer-precision piezo controller, and even a jukebox for playing music from our mp3 collection! We hope you find it as useful as we have.

New Products

6V, 500mA Step-Down Voltage Regulator D45V5F6
Pololu Basic 2-Channel SPDT Relay Carrier for "Sugar Cube" Relays with JST SH-Style Top-Entry Connector
Magnetic Encoder Pair Kit with Side-Entry Connector for 20D mm Metal Gearmotors, 20 CPR, 2.7-18V
TPS2116 Power Multiplexer Carrier with USB Type-C Connector (non-USB priority)
Pololu Ideal Diode Reverse Voltage Protector, 4-60V, 20A
ACS37800KMACTR-030B3-I2C Power Monitor Carrier with Secondary I²C Isolation
JST SH-Style Cable, 4-Pin, Female-Female, 40cm
0.100″ (2.54 mm) Breakaway Male Header: 1×4-Pin, Right Angle, Black, 50-Pack
TB67S581FNG Stepper Motor Driver Carrier
MP6603 Stepper Motor Driver Carrier (Soldered Header Pins)
Log In
Pololu Robotics & Electronics
Shopping cart
(702) 262-6648
Same-day shipping, worldwide
Menu
Shop Blog Forum Support
My account Comments or questions? About Pololu Contact Ordering information Distributors