Advertisement

01.19.2005 at 09:08AM PST, ID: 21280524
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

7.4

Using 8051 family - Microcontroller

Asked by ghuloom in Processor Programming for Specific Platforms

Tags: , ,

Hi,

I've written a solution for the below problem, I would like you to tell me is my solution correct and provide me with feedback on any issue.

Your consultancy has been called in to make proposals for a control system to be used to control a hydraulic bearing press. When a bearing is to be inserted in position, the work is mounted in a jig and the press is required to operate at a closely-controlled pressure in order to successfully insert the bearing into its boss without damage to the boss. The operating pressure is defined by the machine’s operator through the use of a numeric keypad, in response to prompts displayed on a simple tow line-line LCD.  In order to ensure that the operator keys in a plausible pressure, each jig is fitted with one of six coding pegs. Each peg, which interacts with one of six microswitches mounted on the press, relates to a particular pressure range and, effectively, sets the minimum pressure for correct bearing seating and maximum pressure to which parts in a given jig may be subjected. The process of pressing the bearing into its boss relies upon the application of the programmed pressure for a pre-programmed time.

The operator is able to “program” the press whilst a two-position switch is in the “Enter” position and the machine runs only when the switch is turned to the second “Run” position. Before bearing seating pressure is applied, the jig is clamped in position by a hydraulic clamp, operated by a solenoid under software control. Hydraulic pressures for the clamp and for the main press are derived from separate pumps, each under software control. Both pumps are required to run throughout the press cycle, but should be switched off when the press is in “Enter” mode. Simple pressure switches on the two pumps indicate when the respective systems at operating pressure. The operator is protected from injury by a simple guard, whose correct positioning is detected by a microswitch. The press cycle is started by the operator pressing the “Start” button and may be stopped before the expiry of the selected time by means of the “Stop” button. Note that neither the “Start” nor “Stop” button is on the keypad, but rather on the control panel. Whilst the press is in operation, the controlling software lights a “Run” lamp and provides feedback on operator’s display of target pressure, actual pressure and time to run.

During the press cycle, the controlling software is expected to cycle on and off a solenoid valve controlling the main hydraulic ram’s feed in order to maintain the desired pressure. At the end of the cycle, the pressure must be relieved by a further solenoid valve that unloads the press head.

Your prospective client hopes to sell this machine into a number of industries. As a result, various parameters concerned with operating pressure and the tuning of the machine’s performance are not known at this stage. As a result such parameters will need to be transferred into the press controller down a serial line and stored in some non-volatile memory.

The client has cooperated with your consultancy on projects in the past and is quite comfortable with the use of the 8051 family of microcontrollers. Provide a detailed specification of your system, showing a block-diagram of the hardware that you would propose. Give an account of the operation of the controlling software.

Solution:

The system will use a three-position main switch. Switch position one will disconnect all power via a hard-wired relay in the power supply of the entire station. This is a safety matter and will allow the safe repair of the system. Position two will power the control electronics only, this is for programming of parameters into the flash memory of the Atmel AT89C51AC3. The AT89C5AC3 will allow for head room in the program and A/D structure should expansion to a different clamping structure be desired at a later date.
Switch position three will run the machine at its automated settings.

      The System consists of three main sections the pumps for pressuring the hydraulics, the clamps for holding the part in place, and the main cylinder for pressing the bearing into place. We well be adding pressure sensors to each pump hose to monitor output pressure and change the setting on the pressure control valves on each hose should an over or under pressure event occur. A pair of load cells on the clamping structure will detect the pressure used to clamp the item under work in place, and also to detect the pressure applied during insertion of the bearing.

Hydraulic source: each hose will have inserted at the pump a valve that is electronically controlled by an 8051. This 8051 will receive information from three sources, valve position digitally from the valve, and pressure in the line digitally from an inline pressure sensor and operator set point from the AT89C51AC3.

Clamping Structure: the jaws of this device will close on the part under operation. The clamping pressure will be detected using a small load cell placed in each jaw; these analog signals will be transmitted to the AT89C51AC3. The AT89C51AC3 will use it’s internal A/D block to shift this into a digital signal and will compare it to the operator set point for it’s pressure settings. When the pressure is at the correct level it will lock the pressure at a steady state. When the bearing insertion is complete the AT89C51AC3 will reverse the operation of clamp using the 8051 and pressure control valves.

Main Cylinder: this hydraulic cylinder will be used to press the bearing into place it’s pressure will be detected by the same load cells as the clamping pressure. The signal from the load cells will be analyzed by the AT89C51AC3 . When the pressure is at the correct level it will reverse the operation of the main cylinder by using the 8051 and pressure control valves.

AT89C51AC3:
Analog inputs:
       2 inputs from load cells, using internal A/D and multiplexing –2 pins.
Analog outputs: None.      
Digital inputs:
       Control signals from the 8051s – 8 pins.
       Parallel data in for Keyboard reading – 4 pins.
Digital outputs:
Control signals to 8051s – 8pins.
      Serial out to LCD unit 2pins.

8051:
Digital inputs
      1 valve position, parallel 4 pins
      1 pressure senor, parallel 4 pins
Digital outputs:
      1 control signal for valve, parallel 4 pins

Software: On start up the AT89C51AC will pole both 8051s and send a zero to each for initial valve settings, the 8051s will then run the pumps and valves to a line pressure of  zero. Once the initial setting are done the operator will be queried via the LCD display for each of the pressure setting for the clamp and main cylinder. The main processor will then send appropriate signals to the 8051s to activate the clamp and main cylinder. Each pump will be controlled by it’s 8051 until the set pressure is arrived at. Each 8051 will send control signals to the valves to open them and then check pressure on the hoses every millisecond. In case of an over pressure the valves will be closed. The load cells on the clamp will be poled every millisecond by the main processor when clamping pressure is reached this value will be used as base for the insertion of the bearing using the main cylinder. When the main processor shows correct insertion pressure it will send a end signal to the 8051s and they will return the hydraulics to rest and zero the pressures.
Start Free Trial
[+][-]01.29.2005 at 06:24AM PST, ID: 13171572

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]01.29.2005 at 09:33AM PST, ID: 13172277

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Processor Programming for Specific Platforms
Tags: 8051, using, microcontroller
Sign Up Now!
Solution Provided By: grg99
Participating Experts: 3
Solution Grade: A
 
 
[+][-]01.29.2005 at 07:14PM PST, ID: 13174318

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.28.2005 at 09:55AM PDT, ID: 14320477

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]07.02.2005 at 05:50AM PDT, ID: 14353870

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32