Applied Control Systems Connection of variable resistor / potentiometer Analogue pin connections Input 0 – Pin 17 Input 1 – Pin 18 Input 2 – Pin 1
Applied Control Systems Analogue to Digital conversion PICAXE 18 X: Internal 8 bit analogue to digital converter (28 = 256) Possible Voltage input range: - 0 v – 5 v Possible conversion : - 0 – 255 Examples: - 0 v = 0, 5 v = 255, 3 v = 153 Conversion formula: Conversion = Input voltage *255 Supply voltage
Applied Control Systems Connection of Light Dependant Resistor
Applied Control Systems
Applied Control Systems
Applied Control Systems Voltage Regulator
Applied Control Systems Voltage Regulator with Diode
Applied Control Systems 0 V to pin 5 5 V to pin 14
Applied Control Systems
Applied Control Systems
Measure the input voltage.
Measure the output voltage from the 7805
Applied Control Systems Adding Capacitors
Applied Control Systems Reset Switch
Applied Control Systems Reset Switch
Applied Control Systems Reset Switch – pin 4
What happens when the reset is pressed and released?
Applied Control Systems Resonator
Applied Control Systems Generic components 1. Power supply 2. Download cable 3. Reset connection 4. Available Inputs 5. Available Outputs
Applied Control Systems Generic components 1. Power supply 2. Download cable 3. Reset connection 4. Available Inputs 5. Available Outputs
Applied Control Systems Using Outputs
Applied Control Systems Transistor driver output
What happens when input 7 is pressed and released?
Set output 7 high for 2 sec- low for 2 sec – loop continually
Applied Control Systems PICAXE 18 X Project Board (5 inputs, 8 outputs) Inputs Outputs 4 Terminal blocks 6 LED outputs 1 Digital thermometer Two transistor driven terminal blocks
Applied Control Systems Use circuit No. 8 to help complete the diagram Outputs Inputs (a) (b)
Applied Control Systems Green Yellow w Red Green Yellow Red
Applied Control Systems
Applied Control Systems
Applied Control Systems Inputs Outputs
Applied Control Systems Inputs Outputs Identify your input and output needs