Announcement

Collapse
No announcement yet.

ESP32 Metal detector

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

  • #16
    You have to do this will then be all right.

    https://github.com/espressif/arduino...ide/windows.md

    Comment


    • #17
      Originally posted by Marchel View Post
      You have to do this will then be all right.

      https://github.com/espressif/arduino...ide/windows.md

      Ok, i got somewhere... to deep mist.

      Here is the error log:


      Arduino: 1.8.5 (Windows 7), Board: "ESP32 Dev Module, Default, QIO, 80MHz, 4MB (32Mb), 921600, None"

      C:\Users\userIC\Documents\Arduino\libraries\ESP32_ BLE_Arduino\src\BLEClient.cpp: In member function 'bool BLEClient::connect(BLEAddress)':

      C:\Users\userIC\Documents\Arduino\libraries\ESP32_ BLE_Arduino\src\BLEClient.cpp:97:2: error: invalid conversion from 'int' to 'esp_ble_addr_type_t' [-fpermissive]

      );

      ^

      C:\Users\userIC\Documents\Arduino\libraries\ESP32_ BLE_Arduino\src\BLEClient.cpp:97:2: error: too few arguments to function 'esp_err_t esp_ble_gattc_open(esp_gatt_if_t, uint8_t*, esp_ble_addr_type_t, bool)'

      In file included from C:\Users\userIC\Documents\Arduino\libraries\ESP32_ BLE_Arduino\src\BLEClient.cpp:13:0:

      C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32/tools/sdk/include/bluedroid/esp_gattc_api.h:294:11: note: declared here

      esp_err_t esp_ble_gattc_open(esp_gatt_if_t gattc_if, esp_bd_addr_t remote_bda, esp_ble_addr_type_t remote_addr_type, bool is_direct);

      ^

      Multiple libraries were found for "BLEDevice.h"
      Used: C:\Users\userIC\Documents\Arduino\libraries\ESP32_ BLE_Arduino
      Not used: C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32\libraries\BLE
      Not used: C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32\libraries\BLE
      Not used: C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32\libraries\BLE
      Not used: C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32\libraries\BLE
      Multiple libraries were found for "WiFi.h"
      Used: C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32\libraries\WiFi
      Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
      exit status 1
      Error compiling for board ESP32 Dev Module.

      This report would have more information with
      "Show verbose output during compilation"
      option enabled in File -> Preferences.

      Comment


      • #18
        Ok, i finally give up.
        I have other important things to do.
        Thanks anyway.
        Cheers!

        Comment


        • #19
          Delete C:\Users\userIC\Documents\Arduino\libraries\ESP32_ BLE_Arduino directory and coppy https://github.com/nkolban/ESP32_BLE...ive/master.zip to C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32\libraries\

          Comment


          • #20
            Originally posted by Marchel View Post
            Delete C:\Users\userIC\Documents\Arduino\libraries\ESP32_ BLE_Arduino directory and coppy https://github.com/nkolban/ESP32_BLE...ive/master.zip to C:\Users\userIC\Documents\Arduino\hardware\espress if\esp32\libraries\

            Yes those are leftovers from yesterday attempts. I completely disregarded that!
            On second look at log file (after i posted that i give up); i realized what was the problem!
            Thank You very much for your patience with me! How can i not respect that!
            This time it is compiling with no problems.
            This small torture will be very beneficial for other members too, hopefully.
            It is actually very easy and straightforward when someone is willing to explain and help.
            Thanks again!
            Screenshots:
            Attached Files

            Comment


            • #21
              I'm glad you were successful The project is still working because it's just a prototype and it's not working as if it would be great if somebody knows how to sort out the phase shift at the outputs pin 26,32,33 and set coil frequency 6-20Khz because I already I'm trying to solve this problem for a long time

              Comment


              • #22
                Originally posted by Marchel View Post
                I'm glad you were successful The project is still working because it's just a prototype and it's not working as if it would be great if somebody knows how to sort out the phase shift at the outputs pin 26,32,33 (6-20Khz) because I already I'm trying to solve this problem for a long time
                Question on module.
                I have certain limited choice here on local market.
                Can you see this list and suggest the choice:

                https://www.kupujemprodajem.com/sear...l=aW5kZXgucGhw

                Comment


                • #23
                  Originally posted by Marchel View Post
                  I'm glad you were successful The project is still working because it's just a prototype and it's not working as if it would be great if somebody knows how to sort out the phase shift at the outputs pin 26,32,33 and set coil frequency 6-20Khz because I already I'm trying to solve this problem for a long time

                  It is maybe because of the coil?
                  Aka relation coil specs / working frequency.
                  I can't find any specs on coil you used.
                  Fastest check you can do is to change TX frequency and see the phase behavior than.

                  Comment


                  • #24
                    On such wide frequency change range; you will need adequate capacitors to add or subtract too.
                    Otherwise phase will go wild, as you describe it.

                    Comment


                    • #25
                      My intention is that the detector after changing the capacitors would work at what frequency ranging from 6 to 20Khz.

                      Comment


                      • #26
                        Originally posted by ivconic View Post
                        Question on module.
                        I have certain limited choice here on local market.
                        Can you see this list and suggest the choice:

                        https://www.kupujemprodajem.com/sear...l=aW5kZXgucGhw
                        This module is used.

                        http://modtronix.com.au/product/esp-32s/

                        Comment


                        • #27
                          Originally posted by Marchel View Post
                          My intention is that the detector after changing the capacitors would work at what frequency ranging from 6 to 20Khz.
                          You have 2x33nF at RX.
                          But i don't see any capacitor at TX (looking only schematic in PDF).
                          You'll have to divide 6-20kHz range to several sub-ranges and calculate capacitance for each one.
                          Let's say 4 sub-ranges. Least 4 capacitors you'll need to switch on frequency change.

                          Comment


                          • #28
                            Originally posted by ivconic View Post

                            It is maybe because of the coil?
                            Aka relation coil specs / working frequency.
                            I can't find any specs on coil you used.
                            Fastest check you can do is to change TX frequency and see the phase behavior than.
                            The coil is from the IDX Pro Detector.


                            - tx winding diameter 240mm ! wire 0.72mm, -29 winding 1,6 ohm, 0,555 mH, capacitor 1.048nF, 6.59kHz


                            - rx winding diameter 120mm! wire 0.2mm,- 370 winding 80,2 ohm, 35,2 mH capacitor 33nF


                            - feedback loop , diameter 113mm ,10-12 winding 0,6 ohm, 0,021 mH
                            wire 0.72mm

                            Comment


                            • #29
                              Originally posted by Marchel View Post
                              The coil is from the IDX Pro Detector.


                              - tx winding diameter 240mm ! wire 0.72mm, -29 winding 1,6 ohm, 0,555 mH, capacitor 1.048nF, 6.59kHz


                              - rx winding diameter 120mm! wire 0.2mm,- 370 winding 80,2 ohm, 35,2 mH capacitor 33nF


                              - feedback loop , diameter 113mm ,10-12 winding 0,6 ohm, 0,021 mH
                              wire 0.72mm
                              "... tx winding diameter 240mm ! wire 0.72mm, -29 winding 1,6 ohm, 0,555 mH, capacitor 1.048nF, 6.59kHz..."

                              Precisely.
                              1.048nF is for 6.59kHz.
                              If you rise the frequency and not change the capacitance; phase will shift more than you want.
                              Also 2x33nF at RX will probably need adjustment on higher frequencies too.


                              Comment


                              • #30
                                Originally posted by ivconic View Post
                                You have 2x33nF at RX.
                                But i don't see any capacitor at TX (looking only schematic in PDF).
                                You'll have to divide 6-20kHz range to several sub-ranges and calculate capacitance for each one.
                                Let's say 4 sub-ranges. Least 4 capacitors you'll need to switch on frequency change.
                                Look at schematic TX capacitors are on IC7 pin 8

                                Comment

                                Working...