| |||||||||||||||||||
Graveyard InformationPerimeter Detection IdeasCircuit 1: A single stage AmplifierA single stage classA amplifier with a voltage gain of 10 and an input impedance of at least 100k was lashed up, the input being driven by a parallel LC circuit as in schematic 1
A signal generator output (10v p/p) was fed down a wire and the wire brought near the coil in the circuit and the frequency adjusted for resonance (Q1 collector). The circuit picked up the transmitted frequency but only when within 1cm and the output was very small (10mV). The Q factor of the circuit was not that responsive, being a slow drop-off either side of 50kHz, somewhere in the region of 20kHz bandwidth. This was not unexpected as the circuit only has a low gain, but it is a good place to start. The 5.6k load was then swapped out for an identical LC load tuned to 50kHz. The response was much better, being able to pickup the oscillations up to 4cm away and when close to the wire (<1cm), the response was much larger (100mv+). The Q factor was much higher, the circuit was very peaky with a bandwidth of 4kHz. The active load was changing the gain of the circuit, making it very much higher and with two tuned circuits, the Q factor was also being sharpened. Circuit 2: Two stage AmplificationThe next stage was to have a second amplifier in cascade. This has a higher output current and has a voltage gain of 17. If combined with the original circuit, we would be aiming at a theoretical gain of 10 * 17 = 170.
TODO Results Resonance: Distance from transmission Wire, output Voltage (Q2 collector) adjacent, 500mV 1cm,200mV 5cm, 100mV 10cm, 50mV 1Khz away from Resonance: adjacent, 100mV 1cm, 50mV 5cm, 20mVNow the 5.6k load resistor was again swapped out for a second tuned circuit. Therefore the overall gain will become much higher, and then be multiplied by 17, again with a very peaky response. TODO Results Resonance: Distance from transmission Wire, output Voltage (Q2 collector) adjacent, 1V 1cm,250mV 5cm, 100mV 10cm, 100mV 50cm, 50mV 1Khz away from Resonance: adjacent, 50mVThe two stage amplifier gave very encouraging results although I believe an extra stage of amplification is required in order to bring the level up to a suitable voltage for envelope detection. I think an amplifier with an adjustable gain of between 1 and 10 would do the job nicely. Three transistors is not excessive but it may be more advantageous to use a darlington instead. I have some of these handy so it may be possible to use a high gain darlington tuned amplifier followed by a single adjustable gain transistor. Of course, I could use an op-amp as a 50kHz signal should be within its bandwidth. Circuit 3: Two stage Amplification with Tuned Regenerative FeedbackThis circuit is a simple two stage amplifier but this time the output of the second stage is fed back via a series tuned circuit to the first stage. The circuit will have a gain of 10 * 170 for all frequencies other than the resonant frequency, which will mean positive feedback will ensue. I suspect this circuit may oscillate and will need some damping resistance to be added.
TODO Results This created an oscillator.Circuit 4: Tuned Amplifier with Regenerative FeedbackThis circuit used a tuned load on the first stage and passes the output to the second stage. The first stage gain will become much larger at resonance. This is amplified by the second stage and the output then fed back to the input to amplify it further. Again, I expect this to oscillate as we will have a lot of gain and the circuit will need to provide some form of resistive damping.
This created an oscillator Colpitts Oscillator
Perimeter Detection TestsUsing the copper pipe aerial made the rf detector into a 50kHz oscillator! This manifests itself as constant boundary detection. Reducing the aerial size (with a wire) and normality was restored. Either we need to reduce the rf amplifier gain or find a different aerial. The problem with reducing amplifier gain is that valid detection may not occur. Here is a detection test using a shorter aerial. Options
To move forward, I will initially use a shorter wire aerial although will start to investigate using an analogue multiplexer such as the 4052 or 4051 devices. To use the multiplexer option, we need two extra digital outputs to drive the multiplexer.
Pins available are:
8 - ok
3 - useful for interrupts
13 - has an led connected on arduino. Still an output so should be ok. Check pull-up ?
IdeasTODOs4. we need to consider mounting components. This will cover
- the rf detector
- the main arduino + motor driver
- a voltage regulator (+5v)
- a 50kHz transmitter. This could be a square wave generator although
I might give a Colpits oscillator a punt.
5. We need a central earth point
6. All connections need screened wire.
7. Possibly we need ferrites.
8. The microswitches need mounting.
9. Arial connection to rf detector
10. When we need to make the transmitter!
Earthing and RF PickupI had many headaches with Lawna due to the noisy environment in which the lawnmower operates. All the parts worked individually, but the arduino suffered RF pickup when everything was working together. I aim to take steps to head these issues off from the start which will include:
WeatherproofingThe electronic components and motors/batteries need to be enclosed in a simple form of cover. Options available are:
A metal cover made from thin aluminium may be the easiest option although I will need to master aluminium brazing to achieve it. Otherwise the resin solution may be a better option as I am familiar with it from my Wind Turbine days. LocomotionThe current locomotion motors work well but need to be throttled back to provide more effective mowing as the speed over ground is too fast. This is similar to my findings with Lawna (where the motors were salvaged from). It may be that when the motors are throttled that the mower struggles to move the heavy lead-acid battery around. If this is the case, I have found a source of motors that have more gearing so I could run them at a higher speed and get a slower overall speed. Just something to keep in mind. I need to consider the option of not using a direct-drive for the motors but instead use an external gear-chain or belt/chain drive. This should give much better connection to the wheels. I'll do this only if necessary. A third option is to reduce the diameter of the wheels. Smaller wheels could be a simple solution that solves a few problems here:
Handwritten Original Design Notes
We need to augment this now. We require two extra output pins which we will use to control the aerial multiplexer. Pins available are: 8 - ok 3 - useful for interrupts 13 - has an led connected on arduino. Still an output so should be ok. Check pull-up ? Controlling the Mux
int readPerimeter() {
int val = 0;
for (int i = 0; i < 2; i++) {
switch(i) {
case(0):
digitalWrite(MUX_S0_O, LOW);
digitalWrite(MUX_S1_O, LOW);
val = val + digitalRead(PERIM_I) * 1;
break;
case(1):
digitalWrite(MUX_S0_O, HIGH);
digitalWrite(MUX_S1_O, LOW);
val = val + digitalRead(PERIM_I) * 2;
break;
case(2):
digitalWrite(MUX_S0_O, LOW);
digitalWrite(MUX_S1_O, HIGH);
val = val + digitalRead(PERIM_I) * 4;
break;
}
}
return val;
}
val values:
1 = left bump
2 = centre bump
4 = right bump
Anything else is a combination which we can treat as a centre bump for now.
Wiring
10 input wires. I have chosen a 15 way cable to give some room for expansion. It may be better to make everything active-low switched. The bump sensors are currently active-high. There are a few control outputs from the Arduino:
7 output wires Power CablesThe power cables to the motors should be decoupled and screened. At the bare minimum they should be twisted pairs.
| |||||||||||||||||||
| |||||||||||||||||||