Design and make a pedestrian / cyclist safety light. The safety light must be programmed to flash high brightness LEDs on and off. Research homework: Complete research to enable you to decide what type of product you will design. Areas of investigation should include: Research of pedestrian/cycle safety products already on the market that utilise LEDs or that could be developed to utilise LEDs Research of the situation why would cyclists/pedestrians need a safety light?
Auto-Bi Kerosene Headlamp The E.R. Thomas Motor Company's "Auto-Bi" or "Auto-Bike" began production in 1901, making E.R. Thomas one of the first manufacturers in the United States to mass-produce motor driven cycles.
Design Specification
Points to include: The design will use a PICAXE-08 microcontroller as its controller. The design will include 3 high brightness LEDs. The design will be able to optionally react to changes in light levels. Add further points that are of importance to your target market and research
Track Side
This side contains the circuit (tracks) that joint the components together
Component Side
This side is where the components are (usually) mounted
Fixed resistor This fixed resistor has a fixed resistance which is indicated by a colour code.
330 (ohms)
4700 (4.7k) 2
47000 (47k)
The positive leg of an LED is longer than the negative leg. The negative leg also has a flat edge on the plastic casing of the LED.
A battery (cell) is a self-contained source of electrical energy. It is a portable power supply. Batteries contain chemicals that store energy. When connected into a circuit this chemical energy is converted to electrical energy that can then power the circuit.
Slider Switch
Microcontroller
Microcontrollers are used as the brain in electronic circuits. Microcontrollers are purchased blank and then programmed with a specific control program. Once programmed the microcontroller is built into a product to make the product more intelligent and easier to use. Microcontrollers are used in automatically controlled products and devices, such as automobile engine control systems, remote controls, office machines, appliances, power tools, and toys.
IC Socket
The IC sockets is soldered to the PCB and The microcontroller is plugged into it.
IC sockets provide an advantage over directly attaching microcontrollers to the PCB by making it easier to replace the processor in the event of a failure. The microcontroller is often the most expensive component in the system and the cost of a IC socket is relatively low.
Download Socket
LDRs are used in automatic street lamps to switch them on at night and off during the day. They are also used within many alarm and toys to measure light levels.
Place the three 120 (brown red brown gold) resistors in positions R1, R2 and R3
R1 R2 R3
Place the two 10k (brown black orange gold) resistor in positions R4 & R6.
R4
R6
R5
Push the download socket onto the PCB and make sure it clicks into position (so that it lies flat on the board).
Push the IC socket into position. Make sure the notch at one end points towards the resistors.
Notch
Place the first LED into position marked LED1 Make sure the legs are in the correct positions.
Make sure the bottom of the LED is level with the top of the switch i.e. the LED is about 6mm above the PCB.
6 mm
Bend the LED around the edge of the PCB so the LED is now on the track side of the PCB
Connect the wires from the battery case in the position marked BT Note: Black = negative & Red = positive
Cut 4 wires (2 red, 2 black) 100mm long. Solder one red (+ve) and one black (-ve) wire to LED2 & LED3 Slide on insulating tubing.
Solder the other ends of the wires from the LEDs to the PCB
Solder the Light Dependant Resistor LDR on the TRACK side of the board. It should be left raised on legs approximately 5mm above the board.
5mm
Insert the microcontroller into the socket, ensuring the notch faces the resistors.
Notch
main:
or
start:
BASIC Language
high 0 low 0 wait 1 goto main
English Language
switch on LED number1 switch off LED number1 wait for 1 second before going to next command go back to the beginning of the program
LOGIC commands, such as if then. commands can be used in BASIC We can say; if (something is true) then (do something) LOGIC commands make the brain of our circuit more intelligent
main: if pin3 = 1 then goto LEDon low 0 goto main LEDon: high 0 goto main
means wait 1 second means wait 0.5 seconds means wait 0.1 second means wait 1.5 seconds
Before the let pins = command can be used all LEDs must be switched off So your programme MUST start with low 0, low 1 and low 2
Advanced program
This program uses a number of for...next loop to create a number of different patterns.
start: low 0 low 1 low 2 main: for b1 = 1 to 20 let pins = 7 pause 100 let pins = 0 pause 100 next b1 for b1 = 1 to 20 let pins = 0 pause 200 let pins = 1 pause 200 let pins = 3 pause 200 let pins = 7 pause 500 next b1 for b1 = 1 to 20 let pins = 1 pause 100 let pins = 0 pause 100 let pins = 2 pause 100 let pins =0 pause 100 let pins = 4 pause 100 let pins = 0 pause 100 next b1 goto main