thatoneguy
- Joined Feb 19, 2009
- 6,359
Here are the connections, I'll draw up a diagram later tonight I hope.
1 PICAXE 08M2 microcontroller.
1 PICAXE 08M2 proto board Can be perfboard without programming interface as well.
The potentiometers are 100k each, preferably 10 turn for precision adjustments that won't drift with a bump. Each pot with one leg to +5V, other leg to GND, with wiper going to IC pin 5 (lower right pin if looking at IC from top) for Return delay, and IC pin 6 (2nd to lower right pin if looking at IC from top) for long random delay of target reset.
The reed switch is on IC pin 4 (lower left pin looking at IC with notch at top), 100k resistor from pin 4 to ground, then to reed switch, which is connected to +5V. When reed switch closes, IC pin 4 (C.3 in PICAXE BASIC) goes high (reed switch closes when target is down), the activation plunger is enabled, otherwise, disabled.
The Actuator output is IC Pin 3, looking from top, It will output +5V for ~0.5 to 3 seconds to run the actuator pushing the target back up, then go low, at which time the actuator will return down under spring power.
A 0.1uF Ceramic/MLCC capacitor between pins 1 and 8 (Upper left pin and upper right pin when looking at uC from top, u notch is upper most). This is a must for the ADC to read accurately.
Pin 2 tied to ground via 10k resistor to prevent PICAXE from going into programming mode. Leaving rest of programming circuit out at this time.
1 PICAXE 08M2 microcontroller.
1 PICAXE 08M2 proto board Can be perfboard without programming interface as well.
The potentiometers are 100k each, preferably 10 turn for precision adjustments that won't drift with a bump. Each pot with one leg to +5V, other leg to GND, with wiper going to IC pin 5 (lower right pin if looking at IC from top) for Return delay, and IC pin 6 (2nd to lower right pin if looking at IC from top) for long random delay of target reset.
The reed switch is on IC pin 4 (lower left pin looking at IC with notch at top), 100k resistor from pin 4 to ground, then to reed switch, which is connected to +5V. When reed switch closes, IC pin 4 (C.3 in PICAXE BASIC) goes high (reed switch closes when target is down), the activation plunger is enabled, otherwise, disabled.
The Actuator output is IC Pin 3, looking from top, It will output +5V for ~0.5 to 3 seconds to run the actuator pushing the target back up, then go low, at which time the actuator will return down under spring power.
A 0.1uF Ceramic/MLCC capacitor between pins 1 and 8 (Upper left pin and upper right pin when looking at uC from top, u notch is upper most). This is a must for the ADC to read accurately.
Pin 2 tied to ground via 10k resistor to prevent PICAXE from going into programming mode. Leaving rest of programming circuit out at this time.