Rick's picaxe tasks.

eclectic

Moderator
I've been searching, but to no avail.
I'm looking for a set of exercises / problems posted by Rick Harris last year sometime.

With Rick's permission, I'd like to print them out and give them to my nephew,
who may soon be taking a college course involving microprocessors.

Thanks
e.
 

Rickharris

Senior Member
Is this the list? - If so your welcome to ue it.

The UK GCSE has 2 options - Electronics which has an option for using PIC chips in your project and Systems and Control which is more biased towards Microprocessors but could use PIC, or a PC based control box, or hard electronics in some sort of control project which has - Inputs from sensors, Some kind of processing - And a mechanical or Pneumatic output.

The software is at present only considered at Flow chart level and many schools use Flowol or similiar system to programme in flowcharts - Few actually teach the students to use a programming language.

In electronics even fewer use a "real" programming language and the focus is on the operation of the end product - The PIC aspect is just another electronic component.

Many schools are moving over to a 'Product Design' GCSE approach - I think for many reasons but mainly because you get away from the need for specific detail knowledge and need a more general knowledge of Design and Technology. Perhaps a set of simple projects to make basic products based on picaxe processors could be welcomed by the educational establishment.

Examples:

Decorative LED based light that changes colour.
Games.
Dice.
Communications via - Light, Infra red.
Small robots, line followers, Light seekers, maze solvers (wall followers),

Infrared control of somehing (curtains, a robot)

Emergency beacons for accidents, car breakdown etc.

Home security.- Alarms or detecting security lights.

Dimming or night operating lights for home or garden.

Bearing in mind that at GCSE (16 years old) can only deal with low voltage systems, although they would be able to use a commercial mains power supply.

or

you really should choose your own project - Can your teacher advise you as He/she will know you a lot better than us.
Projects we have covered in the past few years include:
Light seeking robots
Robot kits as toys
<A href='http://www.xs4all.nl/~sbolt/edz.htm' Target=_Blank>External Web Link</a>
Dizzy an aware robot.
Automatic cat flaps
Security lights with sonar
Speed trap for radio controlled cars
Bike speedo
Robot arm
Rev counter for a moped (erratic operation)
Mood lights
Automatic lights - Dawn/Dusk
garden lights
Walking robots
light chasers for discos
LED jewellery
Strobe light
IR control
Automata
rolling ball mazes
Bike indicators
Fluid level indicators
Industrial plant models including tank empty/fill, conveyors to sort package by size/weighing systems/Monitoring systems for various materials/level monitoring by contact and non contact/flow monitoring, Data logging.
Daylight monitor
Remote control vehicles - IR control and radio using Picaxe to give some intelligent activity.


The critical parts:

Make sure you can complete the task.

make sure you can do it well.

make sure you fully understand what the exam board requirements are for your folder work -

Download a copy of the syllabus from the exam board and look up the marking criteria. then make sure you give your teacher something to marl in every section.

Work in a logical manner through the folder.

Your folder is a &quot;story&quot; of the development of your project - It shows your investigation and identification of possible problems to solve.

Your analysis of the problem.

The research you do to support your development of a solution.

The specification for your project.

The ideas you have of possible solutions.

The development of the final solution using the best of your ideas.

The manufacture of the hardware/software prototype.

And the testing of the solution to make sure it performs correctly.

If not - if you can be more specific I might recall what it was (I have over 1300 posts!)
 

eclectic

Moderator
I'm afraid not Rick, but thanks for the effort so far.

It was a list of graded exercises/lesson objectives, along the lines of;

Make an LED light.
Make it switch off after a second.
Make it flash ten times
etc.

e.
 

Rickharris

Senior Member
Problem 1:
a. Write a program, (complete with remarks), that will blink LED on Pin0 on and off (every ½ second), as long
as the switch on Pin2 is pressed. When the switch is not pressed, LED Pin1 is on to show the programme is ready, but goes off when LED Pin0 is flashing.

Problem 2:
Write a program that will blink both LED&#8217;s (every 1.2 seconds) when either input 4 or 5 are high. If no
switches are pressed the LED&#8217;s are off.

Problem 3:
Write a program that will alternately blink two LED&#8217;s on and off (continuously) every ½ second, but
only after switch P2 has been pressed first (and released) , and then switch P3 is pressed.
What would change if you wish to reverse the &#8220;switch press&#8221; order.

Problem 4:
Write a program that will blink the LED&#8217;s (every .2 seconds) whenever switch P2 is pressed. Then if
while switch P2 is still depressed, switch P3 is pressed &#8211; will put the LED&#8217;s off.


Problem 5:
A set of traffic lights, (2 lights), is used to control a road works. The lights change in the sequence RED &#8211; RED & AMBER &#8211; GREEN &#8211; AMBER &#8211; RED.

The lights sequence changes every 50 seconds, each light is on for 10 seconds during the change. When one end shows RED the other end shows GREEN. The lights must control the flow of traffic safely.

Problem 6:
A remote robot needs to be able to find the way out of a room. It has 2 touch sensors, left and right that can sense when a wall is reached and two motors to provide drive and direction. The motors can be run forwards or backwards. Turning is done by stopping either motor or by reversing one motor whilst the other goes forward. The turn will be towards the stopped or reversed motor. When a wall is reached backup slightly and turn away from the sensor that has been activated.

Problem 7:
A delivery system uses a rotary valve. This valve is driven by a motor and will allow 40 gms of material through every full rotation. The motor is started by pressing a switch. We need to design a programme that will deliver 1000 gms when the start switch is pressed. The motor shaft has a cam and switch on it that gives an input once every turn of the motor.

Problem 8:

A robot has two light sensors connected to Pin0 and Pin1. These light sensors give a high signal when they are over a white line. Write a programme to control the robot using two motors, left and right to steer the robot and keep it over the line. Your programme might lose the line, if this happens make the robot circle until the line is found again and then follow it. If it has not seen the line after a reasonable time limit, say 30 seconds, it should stop.


ALL PROGRAMME LINES SHOULD BE COMMENTED WITH WHAT THEY DO. See above.
  • A sensor connected to input 3 is switched on when a person is detected. A low level alarm connected to pin 4 is sounded for 12 seconds, this switched on and off every 2 seconds in this time. If the reset on pin 1 is switched on in this time the system will reset. If not the main alarm on pin 0 is sounded until the reset &#8211; Pin 1 - is turned on.
  • A cat is fed every 4 hours. The cat is fed when output 4 is turned on. For 10 seconds.
  • A car park is controlled by a barrier. When a car arrives input 3 will be turned on. The barrier is lifted by switching on output 0. When the barrier reached the top input 1 is turned on the barrier stops. Waits for 30 seconds and then lowers by turning on output 4. When the barrier reaches the bottom input 2 is turned on. The barrier stops. The car park holds 100 cars and the barrier will not lift if the car park is full.
  • A fan is turned on if the temperature of a thermistor connected to input 1 is reading more than 100. When the temperature falls below 50 the fan is turned off.
  • A bell connected to output 0 is rung every hour. It rings however many times the hour is so at 11 o clock it will ring 11 times.
  • An LED is connected to output 2. A sensor is connected to input 3. Input 3 will be on if the sensor detects light. If the sensor detects light the LED should be switched on and stay on even if the light is removed. The LED can be reset by setting input 1 on.
 
Last edited:

eclectic

Moderator
Great stuff.

Excellent.
Many thanks Rick, for your time and effort.

The post deserves to go into "Finished Projects" under a new heading;

Picaxe Improvers Course.


e.
 
Top