Announcement
Collapse
No announcement yet.
ESP32 Metal detector
Collapse
X
-
Originally posted by Marchel View Post
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
-
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
-
Originally posted by Marchel View PostDelete 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
-
I'm glad you were successfulThe 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
-
Originally posted by Marchel View PostI'm glad you were successfulThe 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
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
-
Originally posted by Marchel View PostI'm glad you were successfulThe 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
-
Originally posted by ivconic View PostQuestion 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
http://modtronix.com.au/product/esp-32s/
Comment
-
Originally posted by Marchel View PostMy intention is that the detector after changing the capacitors would work at what frequency ranging from 6 to 20Khz.
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
-
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.
- 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
-
Originally posted by Marchel View PostThe 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
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
-
Originally posted by ivconic View PostYou 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
Comment