Intellecta Technologies Pty Ltd

for PICAXE education, Roland CAM, Techsoft CAD, Intellecta control, Atmel, Arm and Microchip education

Task 9

Motors are very common mechatronics components. The rotary motion can be easily converted to oscillations, linear motion and other paths.

This task introduces the speed control of the buggy. The plan is to ramp up the forward speed and then ramp it down.

You have used the motor in many buggy examples with direction control applied to the upper stub connection on the motor icon. The lower stub controls the motor speed but you need a number from 0 to 100 to set the speed.

Most of the motor speed strategies revolve around the conversion of sensor values (from 0 to 5)or switch values (from 0 to 1) to speed control numbers from 0 to 100.

prop02
Description_motor_control02

How To-Using sensors to control speed

A voltage sensor produces a number between 0 and 5V and therefore some extra mathematics must be performed to get the desired speed value from 0 to 100. The easiest way is to use the amplifier icon.

The adjoining strategy shows the amplifier icon multiplying the input by 20.0 and applying an offset of 0.0. The icon label is used to convey this information in a simple and reliable manner.

The amplifier property allows input on:

Units for the final output

Amplification

Offset

Icon Name

Strategy_speed control for Task 9
Property_Amplifier for motor

How to -Using switches to control speed

Now here is a real challenge. The switch icon can only produce a 0 and 1 output so the motor can only be set to these two values. However, it would be useful to set two speeds, say between 50 and 100%.

This is done with the offset option in the amplifier.

The output is 50% when the switch is OFF and 100 when the switch is ON ( 1X50.0 + 50.0 = 100).

 

Strategy_switch speed control Task 9 buggy
Property_Amplifier for switches

Motor speed ramping

In this stategy you want the motor to ramp up, proceed at top speed for several seconds and then ramp down in speed. Obvious need fo worksheets.

1. Put down the three work sheets. Make sure the icon labels convey useful information. In this case we show that the run time of two icons is 999 seconds because we will exit the sheets with an internal sheet stop.

Task 9 _ ramp up of motors

Task 9_ strategy motor speed control04

2. Enter strategy for speed up icon

Set-Point:

This is set to generate a forward output and is applied to motor 1.

Decision ON to REVERSE

This changes the ON to REVERSE and is a simpler way than using another set point. ( Can you see the easy way to set the buggy motion to reverse?)

Generator 1/s

This creates a pulse every second

Pulse Counter

This counts the pulses and this produces an increasing number.

Amplifier X10

This multiplies the count by 10.

Comparator

This generates an ON value when the input reaches 11.


Buggy _task 9 internal work sheet for top speed

3. Enter strategy for top speed worksheet

This worksheet uses the same motor control icons as the previous sheet but the speed control has been removed. This means the motors are set to the 100% default value.

 


Buggy _task 9 internal work sheet for ramp down speed

4. Enter strategy for ramp down worksheet

This worksheet is the same as the ramp up worksheet except that now the motor speed should start at 100 and come down in steps of 10.

This is achieved changes to the Amplifier icon.

The incrementing counter value is multiplied by -10.0 and added to 100.0.

The values decrease as required.

 


[Home] [About] [News] [Events] [Products] [CAD] [CAM] [Control] [Mechatronics] [Science] [Materials] [Support] [Map] [Contact]

PICMicro & Microchip logo are registered trademarks of Microchip Technology Inc. AZ. Atmel AVR & Atmel logo are registered trademarks of Atmel Corporation. CA. Philips Logo is a registered trademark of Philips Semiconductor Inc & Philips SA, Netherlands. Picaxe is a registered Trade mark of Revolution Education. Intellecta is a registered trademark of Intellecta Technologies. All other logos and trademarks are the property of their respective owners.

© 1997- 2005 Intellecta Technologies - All rights reserved - email: support@intellecta.net