480 likes | 605 Views
Do you have control?. Mr. Caudy Systems and Computer Control. Design Brief. Can you find a need for this programmable system? Design a product which uses a PICAXE 08 and four LEDs to perform some function. Design a computer programme for the product. PICAXE PRODUCT.
E N D
Do you have control? Mr. Caudy Systems and Computer Control
Design Brief • Can you find a need for this programmable system? • Design a product which uses a PICAXE 08 and four LEDs to perform some function. • Design a computer programme for the product.
PICAXE PRODUCT
Control • Control is all around you. • The microwave, MP3 player, central heating system, oven, toys, watches, IPODs. All of these devices can be controlled or programmed to do something. At the heart of these products is a control system. Some are complex others quite simple. However they all have one thing in common. • An INPUT, PROCESS and OUTPUT. • The PICAXE chip is a PROCESS device that can be ‘interfaced’ with INPUTs and OUTPUTs on a printed circuit board (PCB) to perform a function. Formula 1 uses control for a variety of things. Can you research and find out how many control systems there may be involved in formula one? connected
Planning the making of my PCB Track view Top View
CLEAN WITH WIRE WOOL and drill 1mm holes Drill square pads 3mm pads when you are waiting Step 1 solder on 4 x 220 ohm resistors. Step 2 solder on 2 x 1k ohm resistors Step 3 solder on the 10k resistor Step 4 solder on the push button Step 5 solder on the 8 pin DIL Step 6 solder on the LEDs (choose your own colours!!!) Step 7 drill square pads 3mm pads Step 8 solder on the battery snap. Planning the making of my PCB
Good soldered joints A B C Which joint is the best soldered joint?
My plan • Step 1 – • Step 2 – • Step 3 – • And so on…
Learning questions • What is a control system? • What is a PIC chip? • How can I programme a PIC chip?
What is a control system? • A system is made up of three parts. • The programmable PIC system is made up of more than this INPUT PROCESS OUTPUT INPUT PROCESS OUTPUT OUTPUT OUTPUT OUTPUT
Uses for the PICAXE PCB • How many different uses can you think of for this programmable PCB? PIC PCB
My design brief • I am going to design my PIC PCB to be a ….. • SPECIFICATION
Homework • SCAMPER 3 ideas for your PIC product • What criteria are important?
Follow your plan • What do you do next? • 1k = brown black red • 10k = brown black orange • 220 = red red brown • 330 = orange orange brown
Stereo Socket LED 0 Resistors LED 1 PIC Chip LED 2 LED 4 Push Button
Stereo Socket LED 0 10K LED 1 22K 330 330 8 Pin DIL 330 LED 2 1K 330 10K LED 4 Push Button
How can I design systems? What particular components are used in this system Push Button Switch PICAXE 08 LED 0 LED 1 LED 2 LED 4
INPUT Push buttons LDR Light dependent Resistors Thermistors Moisture sensors OUTPUT LED Buzzer Motor What are systems components?
Some Programmes • REAR BIKE LIGHT • TIMER • METRONOME • GAME
Some Programmes REAR BIKE LIGHT PRGRAMME
Some Programmes Metronome
Some Programmes Egg Timer
Design Brief • Can you find a need for this programmable system? • Design a product which uses a PICAXE 08 and four LEDs to perform some function. • Design a computer programme for the product.
Analysis Lights go out slowly one after another Programmable night light Bike light Metronome Programmable Product Decoration - christmas Sports Timer Timers Egg, sports, running, activity, training, cake, cooking
Using the assessment sheet decide on your target for the next project with Mr. Banbury My target is ….
Control Board Layout Top View Underside
First I will clean the board with wire wool Next drill 50 holes with PCB drill Check the holes have come all of the way through Solder on the 330, 1K, 10K, 22K resistors .. .. .. .. My PCB making Plan
Lesson questions • What is the date? • Heading PROGRAMMING MY PIC CHIP • How do you programme your chip? • How will you be assessed in this project? • What will your ideas look like?
Homework • Describe how the Bike Light programme works? • What is the diamond box for? • What do the rectangles do? • What do the parallelograms do? • How can you stop the programme?
How does it work? This asks if the button has been pressed after LEDS are all off This is asking if the switch is pressed High 0,1,2,4 switches all LEDS on Low 0, 1, 2, 4 switches off the LEDS One final delay for 1 second to stop the Programme from carrying On a again Describe how the Bike Light programme works. Pause 75 stops the programme running for 75 milliseconds
Two programmes in one Make the variable b0=0 Jump to subroutine 0 Is the variable b1 = 1? If the variable b1 is not equal to 1 jump to subroutine 2 If the variable b1 =1 then jump to subroutine 1
Make the variable b1=0 Is pin3 on? Switch on LED 0 Add 1 to b1 Is pin3 on? This part of the flowchart is a second timer, which gives the user time to decide which programme they want Switch off LED 0 & switch on 1 Add another 1 to b0 Add 1 to b1 (represents programme 2) Is b1 equal to 10? If b0 equal to 10 return back to flowchart?
Last lesson • Task 1 draw your final programme idea – use ruler • Task 2 I will print off your 2D design idea • Task 3 stick in assessment sheet • Task 4 self assess your work • Task 5 peer assess your work
Finish your PCBs By the end of this lesson your PCB must be finished and programmed! HURRY UP!
How does the egg timer work • What is the date? • What is the heading? • How does the egg timer work? • 10minutes
The system will not work until pin3 is a 1. Then all the LEDS light up The system pauses for 60,000 milliseconds which is 1 minute Then LED 0 is switched off Then the system pauses for 1 minute (60,000) Then LED 1 is switched off. Then the system pauses for 1 minute (60,000) Then LED 2 is switched off Then the system pauses for 1 minute (30,000) Then LED 4 is switched off. Then it pauses for 100 milliseconds Then all LEDS are switched on for 100 milliseconds Then all switched off Then is pin3 = 1 is asked if it is a no the LEDS continue to flash If it is a yes the flowchart pauses for 100ms and then back to the start. How does the Egg Timer work?
Writing my programme • Start by writing an IF then Question • For example • If a button is pressed I want all the LEDS to light up and then go out one after another 1 minute apart. Then, finally I want the LEDS to flash after 3.5 minutes until the button is pressed again to turn them off.
If… thens.. • If the button pressed then all lights come on until the button is pressed agin to switch them off • If the button is pressed the lights will flash until the button I pressed • If the button is pressed one LED will come on and then the button is pressed again for the next one to come on and so on until all are pressed.
MY First Idea for my PIC Project • LAST LESSON IF….. Then…. • Now write a flowchart of your idea • Then finish soldering or write and print off your programme