Announcement

Collapse
No announcement yet.

Explorer This PI ...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Hi okantex,

    I must tell I no very know about samples etc...
    I need your and everyone helps to next step...

    Did you think is better I use 2 coil one for Tx another one for RX ... ?

    with best regards... zenit52

    Comment


    • #32
      I do not know anything about use of 2 coils for PIs.

      Comment


      • #33
        metal detector

        Originally posted by zenit52 View Post
        Hi rajesh,

        Yes GPR is better and more better ......... I know too
        But it is difficult and expensive to build by us ... is it?
        If you have a good idea to start building gpr system please share it ...?
        with best regrads...
        zenit52
        hi zenit everything is possible you need a proper link you can consult germny's any technission i have many pi but not able to detect treasure at historical palace....

        Comment


        • #34
          Zenith52 ,

          I would like to program this chip with basic for PI detectors

          would you like to teach us here ,how to write it?

          regards
          Okantex

          Comment


          • #35
            Hi okantex,
            I sorry for my delay,
            I sick these days...
            If i better work on my design on PCB board and test it in real condition,
            For writing program for micro you must learn basic language and then work with BASCOM-AVR sofware and then simulate your program and circuit with proteus software ...
            If you want I have cracked and last version of these software ...!!!
            and can give these software to you...

            With best regards... zenit52

            Comment


            • #36
              Hi Zenith ,
              God bless you .I hope you will recover fast.
              thanks for proteus offer ,I have it.maybe old version bbut I have one to do simulations.
              once a time I did simulations of pıc 16f877 by picpro written software two years ago.
              I am familiar to basic from childhood .just need to learn some new commands.
              problem is that I do not know protocol (procedure ) of starting to program a chip.I do not know what to define at first about chip.
              for example to program a chip again sometimes you need give special commands.
              anyhow can you give me your algoritm written as command at basic for your simulation.

              can you teach me how to program atmega in basics.
              If I read something written in basics for PI , I am sure I can understand how to write others for different programs for same PI.
              regards
              Okan

              Comment


              • #37
                Hi Okan,

                Thanks from you...
                It is good that you are familiar and know basic language ...
                For start programing Atmega micros you must work with
                BASCOM-AVR sofware, I have last version 1.11.9.0 cracked version,
                This software have and almost complete and good HELP for beginners...
                After you learn how to use commands in BASCOM-AVR you ready to
                your code to your idea,
                For one PI we must produce with programming, pulse at a micro's pin, with a frequency and a pulse width that changeable by us... !!!
                You start programming with BASCOM-AVR and I hope you can do, what you want...
                with best regards... zenit52

                Comment


                • #38
                  Okay, I downloaded same version of bascom .but help menu doesnot work.
                  so what to do than.
                  is there any site shows how to use it by pictures.
                  and also with program samples.

                  Comment


                  • #39
                    Hi okantex,
                    If you don't know any programming language, Basic is a wrong start. Start learning C. Programming micros in C is better and I can help you.
                    Selamlar,
                    Mustafa

                    Comment


                    • #40
                      Last week I started to learning AVR assembler.
                      For training I am using the simplest detector with microcontroller, BT1 from böses Tier.
                      This is original assembler code
                      Code:
                      .include "tn12def.inc"
                      .equ      PulsDauer    = 4   ;1..20 ca 10..200 yS 
                      .equ      HalbZyklus    = 80  ;Gesamtzyklus ca 1,7 mS 2 mal 80+ yS 
                      .equ      Delay1    = 5    ;Sample-Delay 1 nach Pulsende 3-15 
                      .equ      Delay2    = 8    ;Sample-Delay 2 nach Delay 1 
                      ;----------------------------------------------------------------------- 
                            rjmp    main  ;$000 Power On Reset handler 
                            reti                 
                            reti                 
                            reti                 
                            reti                 
                            reti                 
                      main:     nop 
                      
                            cbi    DDRB,0    ; PB0 IN OPV comperator 
                            cbi    DDRB,1    ; PB1 IN poti comperator 
                            sbi    DDRB,2    ; PB2 OUT SPEAKER 
                            sbi    DDRB,3    ; PB3 OUT Endstufe 
                            sbi    DDRB,4    ; PB4 OUT LED 
                      ;----------------------------------------------------------------------- 
                      mainloop:    wdr 
                            ldi    r16,HalbZyklus  ;wait ca. 800 yS  
                      wait801:    rcall   wait10 
                            subi    r16,1 
                            brcc    wait801    ;Warteschleife 
                            ldi    r16,0b0001000  ;PB3=1 
                            out    PORTB,r16    ;IMPULS ON  
                            wdr 
                            ldi    r16,PulsDauer  ;wait 150 yS IMPULS 
                      wait150:    rcall   wait10 
                            subi    r16,1     ;Warteschleife 
                            brcc    wait150 
                            ldi    r16,0b0000000  ;PB3=0 
                            out    PORTB,r16    ;IMPULS OFF 
                            wdr 
                            ldi    r16,Delay1    ; 1. sampledelay 
                      wait81:    rcall   wait10 
                            subi    r16,1 
                            brcc    wait81    ;Warteschleife 
                            in    r24,ACSR    ;check COMPERATOR 
                            ldi    r16,0b0000000  ;alles aus oder ... 
                            sbrs    r24,5     ;wenn schwellwert skip next  
                            ldi    r16,0b0000100  ;PB2=1 Speakerimpuls Ton1 
                            out    PORTB,r16 
                            ldi    r16,Delay2    ; 2. sampledelay 
                      wait82:    rcall   wait10 
                            subi    r16,1 
                            brcc    wait82    ;Warteschleife 
                            in    r24,ACSR 
                            ldi    r16,0b0000000  ;alles aus oder ... 
                            sbrs    r24,5     ;wenn schwellwert skip next 
                            ldi    r16,0b0010100 
                            ;breiter Sekundärimpuls PB2=1 PB4=1 LED=ON und Ton2 
                            out    PORTB,r16 
                            wdr 
                            ldi    r16,HalbZyklus  ; HI für LED und SPK 
                      wait802:    rcall   wait10 
                            subi    r16,1 
                            brcc    wait802 
                            ldi    r16,0b0000000  ;alle Lichtel aus ;-) PB2-4 
                            out    PORTB,r16    ;LO für LED und SPK 
                      skip:     rjmp    mainloop 
                      ;------------------------------------------------------------------------- 
                      wait10:    ldi    r25,2     ;warte 10 yS bei 1,2MHz 
                      w10:      subi    r25,1 
                            brcc    w10 
                            ret 
                      ;-------------------------------------------------------------------------
                      Now I am using mikroC for AVR

                      Code:
                      const int PulsDauer    = 4;    // 1..20 ca 10..200 yS
                      const int HalbZyklus = 80;  // Gesamtzyklus ca 1,7 mS 2 mal 80+ yS
                      const int Delay1 = 5;       // Sample-Delay 1 nach Pulsende 3-15
                      const int Delay2 = 8;       // Sample-Delay 2 nach Delay 1
                      
                      void DelayX10(unsigned int count) {
                          do {
                              Delay_10us();
                          } while(--count);
                      }
                      
                      void main() {
                      // PB0 IN OPV comperator
                      // PB1 IN poti comperator
                      // PB2 OUT SPEAKER
                      // PB3 OUT Endstufe
                      // PB4 OUT LED
                          DDRB = 0b00011100;
                          for(;;) {
                              asm wdr;
                              DelayX10(HalbZyklus);   // wait ca. 800 yS
                              PORTB = 0b00001000;     // PB3=1    IMPULS ON
                      
                              asm wdr;
                              DelayX10(PulsDauer);    // wait 150 yS IMPULS
                              PORTB = 0b00000000;     // PB3=0    IMPULS OFF
                      
                              asm wdr;
                              DelayX10(Delay1);       // 1. sampledelay
                      
                              if(ACO_bit)             // check COMPERATOR // ACSR.B5
                                  PORTB = 0b00000000; // alles aus oder ... wenn schwellwert
                              else
                                 PORTB = 0b00000100; // PB2=1 Speakerimpuls Ton1
                      
                              DelayX10(Delay2);       // 2. sampledelay
                      
                              if(ACO_bit)             // check COMPERATOR // ACSR.B5
                                  PORTB = 0b00000000; // alles aus oder ... wenn schwellwert
                              else
                                  PORTB = 0b00010100; // breiter Sekundärimpuls PB2=1 PB4=1 LED=ON und Ton2
                      
                              asm wdr;
                      
                              DelayX10(HalbZyklus);       // HI für LED und SPK
                      
                              PORTB = 0b00000000; // alle Lichtel aus ;-) PB2-4   LO für LED und SPK
                          }
                      }
                      Attached Files

                      Comment


                      • #41
                        This is machine translation from German document:
                        The Pulsdetektor BT-1 (BT stands for evil animal GRINS * *) is for two reasons
                        emerged. First, from the intense preoccupation with the possibilities
                        The fully digital signal processing with AVR processors and the other from the
                        Pulsdetektoren idea into a robust body with standard tube
                        Diameter (eg 40mm KG pipe from the hardware store) for subscription. The installation
                        in a tube is, moreover, for the construction of an underwater detector very
                        useful ;-) This circuit was actually only for experimental purposes
                        but thought I liked so much that it I've built a detector. Planned
                        is the part of me first as a hand digging around the detector and the
                        Digging holes to browse, because this task for a large detector
                        unwieldy, and a large coil for positioning the Fund to play imprecise
                        is. For this task, I have even a rudimentary metal differentiation (LED)
                        installed.

                        The component cost and the size should be limited. That
                        was achieved by the abandonment of the tone and the difference amplifier
                        by the processor over. As the processor was chosen ATtiny12
                        because it has the necessary Comperator a small design (8Pin DIP) and a
                        internal clock, and hence the circuitry required for the
                        Processor clock lapses. In addition, should do everything as cheaply as possible
                        fail? and obtainable at a vendor's (hence also a IRF9640
                        as the MTP is not so good is available).

                        At this point I would like to refer explicitly to www.pulsdetektor.de, there
                        lurks the contagious virus detector. And I have Silent Water and Chris thank.
                        Without the two, I would have a bloody amateur must throw in the towel. If
                        in this document contains errors (which is quite likely), please use this
                        pulsdetektor.de in the forum of discussion.

                        Technical Data

                        Operating voltage: 7 - 15V / DC
                        Operating current: 60 - 120 mA (software / Voltage Dependent)
                        Frequency: 300-500 Hz (software dependent)
                        Pulse duration: 10 - 200 yS (software setting)
                        Battery / Battery: 6-12 Nc / Ni-MH, 9Volt block, 5-10 Alcaline
                        Range: up to 70cm (object-dependent and coils)

                        Functioning
                        Amplifier
                        OPV
                        Drivers
                        Processor
                        Drivers
                        In Pulsdetektor BT-1 is the control of one of the ATtiny12 microcontroller
                        Atmel company over. The whole timing can be adjusted in the program
                        are (pulse duration, HalbZyklus, Delay1, Delay2). The processor generates a
                        Distance of approximately 1.7 - 3.5 mS (2xHalbZyklus + Pulse + Delay1 + Delay2) a
                        Pulse 10 to 200 yS width (pulse duration = 1 .20). The pulse is located on PB3
                        (PIN2 ATtiny12) and is controlled via a driver stage (BC547, CNY17) to the
                        Power transistor IRF9640 given. The driver stage is necessary because the
                        Outputs of the ATtiny12 with max 3mA (active HI) may be charged. The output
                        transistor switches the primary of the pulse from a 4700 to 10,000 YF Elko
                        is fed. The coil creating a electromagnetic pulse. After
                        the disconnection of the pulse occurring secondary signal (for metal coils in close
                        changed the course of the falling edge) is taken from the operational amplifiers
                        (LF357) and reinforces the Comperatoreingang PB1 (PIN6 ATtiny12) of
                        Microcontroller where. The Comperator works continuously and compares the
                        Tension between PB0 and PB1 (PIN5 / 6 ATtiny12). The reference voltage is
                        on the switch with potentiometer (voltage divider on the mass and +5 V, Abgreifpunkt to
                        PIN5) led to PB0. The evaluation of the software is Comperators
                        a break (Delay1) performed. If this Austastzeitpunkt to send a signal to
                        PB1 on the reference voltage at PB0, an impulse to the Speaker (PB2)
                        where. The speaker is powered by a transistor (BC547) driven. After a
                        another break (Delay2), the Comperatorstatus re queried. If the level
                        PB1 to still greater than the reference voltage at PB0, is a very broad
                        Secondary signal as it is only in the case of iron or very large objects occurs, and the
                        Speaker pulse is extended to a different sound to produce then the LED
                        switched on. See the pictures from Oszi. So you can on the LED and
                        the tone of size or metal close. The LED, it is with
                        high probability of iron or a huge lump of gold ;-)

                        Waveform without metal in the search for a euro and in the search.
                        Yellow, the reference voltage from the potentiometer and the two of Austastzeitpunkte
                        Comperators. Red by the operational amplifiers processed signal.

                        Waveform with a small screwdriver (iron) and a larger
                        Brass object.

                        Apparently, the shortening of the sample 1, a delay path to higher
                        Sensitivity but also a shift in the critical area of steep
                        falling curve which is practically not so good results. The timing is in
                        each concrete case to the coil (inductance) and the supply voltage (7-15V)
                        adapt. The brutal Improve the supply voltage to 15V brings less
                        as too is suspect. With a 9V block just to get good results in
                        less space and weight.

                        The Halbzykluszeit the main loop can be changed. It is
                        However, please note that the change in the throughput of a main loop
                        Tonveränderung means.
                        For the driver stage (BC547 max. 100mA load) of the Speakers (8Ohm) where
                        Using a headphone (32Ohm) of 50 ohms resistance at 22 ohms
                        reduced.

                        The power supply may not be less than 7V is because otherwise the voltage
                        78L05 no longer clean 5V power supplies.

                        Special circuitry technical measures for a trouble-free Power On
                        Reset to ensure that are not necessary since the ATtiny12 on a delayed
                        Power On Reset cycle.

                        Handling
                        At startup must be no metal in the search of his coil. On Poti with
                        Switch and turn the knob fully. Then the pot slowly
                        back to regulate LED and speaker are all (here is the art of the most sensitive
                        Area to meet). Ready!

                        Typical behavior:
                        When you find metal speaks first to the Speaker. When iron shortly thereafter, when
                        further approximation, the LED and the tone is changing. At
                        Non-ferrous metals, the LED does not speak or only much later.

                        Very small or very large objects:
                        For very large objects also speaks to the LED. Over the whole
                        Annäherungsweg is but one more time, switching the LED on iron and
                        Connect a rather late to include precious metals.
                        For very small ferrous objects can also be from the LED will remain is the
                        But slow beep when removing the coil quickly away again.

                        Coil (Planarspule)

                        - Cover with foil backing
                        - A form of inner diameter (100mm x 5mm high) fix
                        (screwed here).
                        - Gap between the core document form seal (eg silicone).
                        - Approx. 5cm to the ring around with tough glue evenly prepared.
                        For example, with UHU glue einpinseln Force 3-5 minutes and can be tough.
                        - Coil wire from the inside out with gentle pressure, spirals and closely
                        24 adjacent coils wrap around the nucleus
                        (the tenacious glue holds the wire in position).
                        - In 5mm distance to the coil around a 5 mm high draw bead of silicone.
                        - Coil with epoxy pourout.
                        - In a piece of pipe body about 7-8 cm long connecting piece of
                        Epoxy cast. Thus the coil can fit into the tube to be driven
                        and this close.
                        - After curing both parts with 2 component glue stick.

                        Housing

                        - 0.5 m sewage pipe with diameter 40mm bevelled cut
                        - Electrical 40mm diameter tube as the carrier halved lengthwise
                        - Makers glue flap closure
                        - Battery Holder, Speaker (35mm max), LED and potentiometer with switch
                        wiring and install (see picture)
                        - PCB and connect the carrier lock
                        - Stocked carriers to introduce into the tube
                        - Coil connected with the coil and the other side of the sealed tube
                        - Dismantling in reverse order ;-)

                        Comment


                        • #42
                          attiny12 ---> attiny15

                          Comment

                          Working...
                          X