Parallel port programming

28,064

Circuit Image

The delay timing setting of the program will depend on the CPU speed. The timing delay can be utilized from the C+ library, allowing the standard timing to be set on any computer, with a minimum achievable time delay of 1 ms. This can be improved to less than a millisecond using specific timing techniques. More information on timing techniques can be found in the document: pctim003. There is also extensive information available regarding the parallel port, serial COM port, and other PC peripheral interfacing, along with programming tutorials, source code, and additional information. The cooler has been tested and functions well, although it has not been tested on any CPU yet. The PWM controller and Peltier element can be purchased, with prices for Peltier elements ranging from $12.50 to $15 for each unit (power ratings from 60W to 80W). This Peltier cooler is not only suitable for cooling CPUs but can also serve as a portable battery-operated cold reservoir, laser diode cooler, liquid cooling system, and more. Two 1.8-degree stepper motors are utilized for this project; however, resolution can be increased to 0.9 degrees or 400 steps per resolution through a half-step driving method. The stepper motor driver employs a programmed PIC16F84 or PIC16F627/8 microcontroller as the control chip. The circuit diagram for the stepper controller is available for reference. For more details on this circuit, one may visit the PIC microcontroller page for PIC projects. Several photos of the plotter are included below. The software used to test the X-Y motion (written in Delphi 5) can be downloaded. The mechanical design features a center supporting shaft to achieve smooth movement without requiring careful alignment. The ends of one movement axis are supported by bearings. A small power CO2 laser can be attached to this X-Y table for laser cutting or marking systems. Additionally, a pen can be attached to the X-Y table to function as a simple plotter system. The software for the X-Y table, acting as a plotter, is also available for download. One of the plotting results is shown in the accompanying photo. The RS232 chip is typically used for point-to-point communication. For multi-drop communication circuits, RS422 or RS485 chips are commonly used. However, it is feasible to use the RS232 chip for multi-drop communication with a daisy-chain configuration. The following diagram illustrates the multi-drop communication configuration using the RS232 chip. More than two RS232 devices can be connected (with a maximum tested of six devices). It is also possible to configure a multi-point (multi-master) setup with some modifications to the above circuit. Further references on serial COM port interfacing (RS232, RS485) using Delphi can be found on the website sourceforge.net/projects/comport/. The COM port component created by the author is an excellent serial communication component for Delphi.

The system described involves multiple components and configurations that facilitate various applications in electronics and computing. The delay timing feature is crucial for ensuring that the operations performed by the CPU occur in a timely manner, particularly in applications requiring precision, such as motor control and communication protocols. The Peltier cooler's versatility allows it to be employed in diverse cooling applications beyond just CPU cooling, showcasing its effectiveness in thermal management.

The integration of stepper motors for precise movement control is significant. The ability to enhance resolution through half-stepping techniques allows for finer control in applications such as plotting and laser cutting. The use of a microcontroller for driving the stepper motors enables programmable control, allowing for complex motion patterns and automation in tasks.

The mechanical design of the X-Y table is optimized for smooth operation, which is essential for applications requiring high accuracy. The inclusion of bearings reduces friction, ensuring that the movement is fluid and precise. The ability to attach various tools, such as a CO2 laser or a pen, enables the system to perform multiple functions, making it adaptable to different user needs.

Communication protocols are also a key aspect of the system. The use of RS232 for point-to-point communication and the potential for multi-drop configurations expands the usability of the system in networking and data transfer applications. The availability of resources and software for interfacing and controlling these components enhances the overall functionality and makes the system accessible for further development and experimentation.

In summary, the described system is a comprehensive solution that combines cooling technology, precise motion control, and robust communication capabilities, making it suitable for a wide range of applications in electronics and engineering.The setting of delay timing of program will depend on CPU speed. You can use the timing delay on C+ library so you can set the standard timing at any computer but the minimun time delay can achieved was 1ms. It can be improved at less than milisecond by certain timing technic. You can learn more timing technic with document : pctim003. - a lot of good information about the parallel port, serial com port and other PC peripheral interfacing. - -pc interfecing and a lot of programming tutorial, source code and information This cooler had been tested and working well but not test on any CPU yet. The PWM controller and peltier element can buy from The prices for peltier element between US12. 5 to US15 for each unit (power from 60W to 80W). This pelteir cooler not only use for cooling the CPU, it is also can be use as portable battery-operated cold reservoir, laser diode cooler, liquid cooling and so on.

Two 1. 8 degree stepper motor used for this project. However the resolution can be increased to 0. 9 degree or 400 step per resolution by half step driving method. The stepper motor driver using programmed pic16f84 or pic16f627/8 MCU as controller chip. Click here stepper controller to shown the circuit diagram. For more detail of this circuit, go to the pic microcontroller page pic project. A few photo of plotter shown as bellow The software used to test the X-Y motion (writte under Delphi 5) can download here: X-Y motion test. The mechanical design of center supporting shaft to obtaining smooth movement without needed of carefully aligment.

Two end of one movement axis was supported by bearing. You can attach the small power CO2 laser to this X-Y table as laser cutting or marking system. You can also attach a pen to the X-Y table as simple plotter system. The software for the X-Y table act as plotter download here: X_Y_plotter. One of the plotting results as shown as following photo: RS232 chip normally used for point to point communication. For multi drop communication circuit, the RS422 or RS485 chip are widely used. However, it is possible using the RS232 chip for multi drop communication with the daisy-chain configuration as mentioned at this website: :.

The following diagram shown the multi drop communication configuration using the RS232 chip. You can connect more that two units of RS232 device (maximun not sure, I am only test up to 6 device). It also possible to configure as multi point (multi master) configuration by some modification of above circuit.

Click following picture to veiw the multipoint circuit If you want more reference on serial comport interfacing (RS232, RS485) using delphi, visit this website: sourceforge. net/projects/comport/. The comport component create by the author is very good serial communication component under delphi. 🔗 External reference