I just finished soldering up the two boards of the kit you sent me and now am beginning to test. I so far have noticed that the transmitter when connected to a 12V car battery and only using the short black wire for the loop that the large 47 ohm resistor gets hot. Will it be cooler when a 75 loop is connected?
Also, I would like to use an ESP32 (3.3V) rather than a 5V Arduino. Will the receiver work with a 3.3V connection and return a proportional signal between 0 and 3V. If not I’ll run the receiver from 5V and use a voltage divider to connect to the analog pin of the ESP32.
@Larry It is normal that the 47 Ohms resistor gets hot. The 47 Ohms resistor that comes with the RobotShop Perimeter Wire Generator and Sensor Soldering Kit is rated for 2 Watts power. Attaching the loop cable will normally get the output resistor hotter as the NE555 output current will increase.
For example, if the NE555 output current is at maximum (200mA) and you are using 75’ of 22AWG cable (16.14 Ohms per 1000’), the resistance of the 75’ 22AWG cable would be around 1.2 Ohms, the power dissipated by the output resistor would be around 1.95 Watts. If you are planning to use longer loop cable and the resistor gets excessively hot (and the power dissipated is beyond the resistor’s rated power), we suggest you to replace the output resistor with a 47 Ohms through hole resistor with higher power rating (for example 3 Watts or 5 Watts).
The supply voltage for the 324N Amplifier could be from 3V to 30V. Therefore, 3.3V on the receiver should work. However, if the receiver detection performances decrease, we suggest you to power it 5V and use a voltage divider on output signal pins to convert the 0-5V signal to 0-3.3V (with, for example, a 10K and 20K resistors).
@John An Arduino board alone won’t be able to drive a strong square wave signal through the loop wire enough for the signal to be detected with the LC circuit. Note that an Arduino digital pin is rated for an absolute maximum current of 40mA (at 5V). A possible solution to use an Arduino board is to interface it with a Motor Driver as amplifier (as explained in this article)
I see several problems with the receiver circuit. The first problem has to do with the limited bandwidth of the LM324N op-amp. At over 30kHz I am pretty sure that setting the gain of the non-inverted amplifier to 101 (1e6/10e3+1) is pretty much useless. I’ll guess from the LM324N’s datasheet that an open loop gain of 20dB is the maximum you can achieve for the used frequency; then the calculation goes as 20dB=20*log10(A), from which the maximum gain A is calculated as just 10 for about 30kHz! The second problem is related to the input offset voltage of the LM324N which could be as much as 9 mV but typically around 2 mV. After the first amplification stage that offset is amplified to say 0.2V (at DC the effective gain is still 101!). After the second stage the 0.2 is then amplified to “20V”; of course that doesn’t happen because the op-amp saturates first. A high pass filter is required between the first and second stage in order to remove any DC coming from the first stage. A simple RC circuit will do. Also, since the amplitude of the detected sine wave is the only thing we are interested in, why not “peak detect” it using a diode (preferably a Schottky diode) together with a resistor and capacitor in parallel? Finally, the LM324N powered with a single power supply doen’s “like” large negative voltages at the non-inverting input at all. But that depends on the kind of output you get from the tank circuit.
@JCF Thank you for your feedback and your thorough analysis of the receiver board. We agree that the receiver circuit could be improved in many ways, adding a “peak detect” circuit with a diode, resistor and capacitor is an option. Our objective with the receiver and generator boards was to keep it really simple and within 34mm x 24mm PCB. Regarding your note about the gain, from Figure 5. Open-Loop Frequency Response at page 8 of the LM324N Op-Amp, the lower curve of the hysteresis corresponds to about 35dB and the higher curve of the hysteresis corresponds to about 40dB, therefore the gain will vary from 56 to 100. Two stages amplification with the LM324N would be sufficient to detect a “signal” from the perimeter wire on the Arduino analog inputs even if the amplifer saturates at the second stage.
OK - so I have this soldered up, but am finding two problems:
- Sometimes it doesn’t give any response on the pin read (either zero, or low numbers, regardless of how near it is to the wire) - I guess this is poor soldering and something loose, but I’m not sure.
- On the times when it does pick up the wire, the numbers are quite erratic, even with the sensor in a constant position relative to the wire.
Can you give me any ideas of how to diagnose / solve these issues? This is my first project like this, and while I’m really comfortable with the coding of the project, the electronics is a leap into the unknown for me!
Thanks a lot
@iain-6 Here is some things you might want to try to resolve/troubleshoot the issue :
- Verify that all the components are correctly soldered with a continuity test using a multimeter.
- Verify the generator output frequency. This frequency can be varied by the potentiometer and should be as close as possible to 34 Khz to match the tank circuit’s resonance frequency. You can monitor the generator’s frequency by using an oscilloscope, probing one end of the perimeter wire cable (while the other end of the cable is connected to the generator circuit output) and connecting the oscilloscope probe’s ground to the generator’s GND. You can keep the coil at a fixed distance from the loop cable while varying the generator frequency potentiometer to obtain the best results.
- Verify that the inductances are oriented correctly on the perimeter cable. The inductors longitudinal axis should be perpendicular to the perimeter wire axis.
- Also, confirm if the generator’s power supply is between 12V-15V with at least 500mA current rating
Why we use C2 and C5 ?!
I have had problems with a faulty receiver board in a Zucchetti Evolution robot mower and needed to investigate the system. The transmitter sends a very complex waveform from the so called harmonic generator which when picked up by the mower’s antenna is being seen as an audio frequency. The audio frequency varies depending on the mowers position along the perimeter wire. At the start its 7.83KHz and at the end 7.81KHz. The system seems to depend on the mower self calibrating itself at the start of the wire. I will enclose my oscilloscope traces (from a 10MHz bandwith PicoScope system) if I am allowed to.
If i used a 22AWG wire with 1000 meter length and its resistance is 52 ohm, can i replace the output resistor from 47 ohm to 10 ohm?!
@Esraa We are not sure that a 22AWG 1000 meters (about 3280’) loop cable will work properly with this generator circuit as the self inductance of a 1000 meters 22AWG cable is relatively important (about 0.00298H), therefore the inductive reactance at 34KHz would be around 636Ohms and this will badly affect the generator’s square wave signal. You can test it and let us know if it works but make sure that the 10Ohms output resistor has an appropriate power rating (at least 3Watts) and be careful where to put it as the resistor will get hot.
Hello bdaouas. well can this theory can be used to get our robot to follow/Track the perimeter wire and get back to its charging station? your help would be appreciated.
@Deva249 Yes, the RobotShop Perimeter Wire Generator and Sensor Soldering Kit can be used by a robot to track the perimeter wire back to a charging station. We currently don’t have an example code for this, however you can probably use the DFRobotShop Rover Line Follower Sensor Arduino sample code and adapt it for this application.
Hi thanks for your project. But i have a question i’m a newbie on Arduino and i want to implement this périmeter wire on my selfmade law robot.
For the moment my robot is 100% electrical ( touch sensor and relays … But i want it tout detect “madame” flowers …
Can someone share a working Arduino code that i could easily adapt to my robot ?
Thanks
@Ptitpuma To confirm, you want your lawn mower robot to avoid cutting flowers while mowing ? If that’s the case, you can use a perimeter wire with the RobotShop Perimeter Wire Generator and Sensor Soldering Kit to delimit the area where the robot should stay in and the flowers would be out of this area. We unfortunately don’t have an Arduino code specifically for the perimeter wire kit but since the sensors are analog, you can adapt the Arduino example code of this analog line follower sensor
Yes it’s exactly what i want😉
thanks for your answer
I might have missed the obvious here, but is there any way to increase sensing distance to for example 30cm?
30cm is too far from the perimeter and you might not get the signal. To test the maximum sensing distance, keep the inductors at a fixed distance (verticale) from the perimeter wire, for example 3 cm, then rotate the potentiometer on the generator board as soon as you get a signal on the sensor board, increase the distance between the inductors and the wire.
Hello,
My group and I are currently in the process of constructing a autonomous weedwacker for our senior design project. We want it to implement line following so it stays close to the wall/structure it’s cutting around. We ordered the sensor and generator kit and soldered all parts together. We also purchased the 12VDC power supply for the generator. Using only about a foot of 22awg wire, we tested to see if the sensors would be able to pick the signal in the wire. The issue was that we needed the sensor no further than 1cm away from wire to get any readings on the serial monitor. The highest value, when the sensor was on the wire, was 778. For our project, we need the vehicle to detect the wall no closer than 6 in. Reading through the comments, you tested this application in a similarly application and was able to detect the wire at 6in. My question is, why are we only able to read values that close to the wire and is there any way to increase the range? Could the generator itself not be getting enough current for the sensor to pick up? Any help is appreciated. Thank you!