Originally posted by algan
View Post
Announcement
Collapse
No announcement yet.
Announcement
Collapse
No announcement yet.
Differential TX driver for TDI?
Collapse
X
-
Originally posted by algan View Post...regarding the AI, if you haven't watched the videos, it has already changed and is trying to fool people, it deliberately confuses you, it can give you the correct code, but you have to write to it for a few days and it repeats its mistakes...
Just try it. I'm not good at programming either, but when I asked him, he always gave me adequate help.
Comment
-
Hi Algan. I don't know. I don't have much experience with bipolar detectors, except for Carl's Bipolar PI. I suppose the other four samples also need to be modified, but I can't say for sure. In the end, I'll stick with unipolar designs because I don't really understand bipolar ones. In the future, I'll build the AF108 circuit, but the original one, not with a microcontroller.
Comment
-
hello Eduardo , may be this can help think of it also you can run the h bridge if you want , if some body can do spic its better , regards to allAttached Files
Comment
-
Hello Algan,Originally posted by algan View PostHi ,Boilcoil, I don't know how to write code, but what you wrote is correct. Can you rewrite the code for example for pic16f18426? Thanks.
I have now reviewed the code posted by Karl in more detail.
It fits perfectly into the data sheet of the pic16f18426 microcontroller.
Just remove :
//#pragma config ZCDDIS = OFF
//#include "AppDSP.h"
from AppMain.c ,
then compile with XC8.
I do not have a simulation model of this processor in any of the installed PROTEUS, so I cannot use Proteus VSM for it and I do not know how it would work. But if you have a real metal detector with this chip, you can do it in live
Comment
-
-
-
Hi Algan,
Carl wrote that he will be away for a while and will not have time, so I will try to help you if I can of course.
I think that digging into someone else's code is like digging into someone else's bag - it is neither pleasant nor honorable, so let Carl accept my apologies.
As far as I understood from the code, the potentiometer sliders are connected to PORTA, 0 and PORTC, 4, and their two ends to Vdd and Vss.
The pulse outputs are:
The pulse for the MOSFET driver - to PORTA,1;
The target sample - to PORTA, 2;
EFE sample for the target signal (subtracted from the target signal) - to PORTC, 0;
The ground balance sample - to PORTC, 1;
EFE sample for the ground balance (subtracted from the GB signal) - PORTC, 2;
PORTC, 5 is used, perhaps, temporarily/testingly in the interrupt procedure, but in the final version it is not used, although it is set when the timings are initialized (you can remove it from the program and use it for something).
It is quite possible that what I am writing to you is absolutely wrong, but these are my capabilities. I have already written that I am not good at programming, so further, when Karl has time, he can give completely correct information.
Comment
-
Hi, Boilcoil, I think Carl would not mind if you changed the code. He gave it to help us, but it is not yet ready to serve what he wanted. Eduardo, to test it on TDI, the code must be changed and there can be two versions, which I have given as an example with pictures. In the first picture, as Carl said, both pulses must be positive, and in the second picture it will also be completely different and one pulse will be negative.
Comment
-
Hello Algan,
From the microcontroller all signals are positive relative to Vss, there are no negative signals, if necessary they are changed in hardware.
Regarding the code for the bipolar pulse induction metal detector, Karl has uploaded everything necessary to the "Bipolar PI design" folder, so there is no need to do anything.
I think there is no need to discuss Karl's publications anymore - his designs are perfect, and the accompanying programs are brilliant.
So let's stop.
Comment

Comment