1 / 48

Do you have control?

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.

akira
Télécharger la présentation

Do you have control?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Do you have control? Mr. Caudy Systems and Computer Control

  2. 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.

  3. PICAXE PRODUCT

  4. DO YOU HAVE CONTROL?

  5. 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

  6. Planning the making of my PCB Track view Top View

  7. 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

  8. Good soldered joints A B C Which joint is the best soldered joint?

  9. My plan • Step 1 – • Step 2 – • Step 3 – • And so on…

  10. Learning questions • What is a control system? • What is a PIC chip? • How can I programme a PIC chip?

  11. 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

  12. Uses for the PICAXE PCB • How many different uses can you think of for this programmable PCB? PIC PCB

  13. My design brief • I am going to design my PIC PCB to be a ….. • SPECIFICATION

  14. Homework • SCAMPER 3 ideas for your PIC product • What criteria are important?

  15. Follow your plan • What do you do next? • 1k = brown black red • 10k = brown black orange • 220 = red red brown • 330 = orange orange brown

  16. Stereo Socket LED 0 Resistors LED 1 PIC Chip LED 2 LED 4 Push Button

  17. Stereo Socket LED 0 10K LED 1 22K 330 330 8 Pin DIL 330 LED 2 1K 330 10K LED 4 Push Button

  18. 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

  19. INPUT Push buttons LDR Light dependent Resistors Thermistors Moisture sensors OUTPUT LED Buzzer Motor What are systems components?

  20. Some Programmes • REAR BIKE LIGHT • TIMER • METRONOME • GAME

  21. Some Programmes REAR BIKE LIGHT PRGRAMME

  22. Some Programmes Metronome

  23. Some Programmes Egg Timer

  24. 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.

  25. 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

  26. How far up the pencil are you?

  27. Using the assessment sheet decide on your target for the next project with Mr. Banbury My target is ….

  28. Control Board Layout Top View Underside

  29. Control Board Layout

  30. 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

  31. 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?

  32. 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?

  33. 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

  34. How does KIT work?

  35. 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

  36. 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?

  37. 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

  38. Finish your PCBs By the end of this lesson your PCB must be finished and programmed! HURRY UP!

  39. How does the egg timer work • What is the date? • What is the heading? • How does the egg timer work? • 10minutes

  40. How does the Egg Timer work?

  41. 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?

  42. 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.

  43. 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.

  44. 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

More Related