Hello,
I'm still relatively new to programming with the ESP's and I'm just wondering about a strange phenomenon that I didn't know from the Arduino.
As described above, I have the ESP32-S2-Saola-1 here.
But I can't find any documentation where it is described which PIN's only output 1.69V when and where.
Problem:
According to the data sheet, I can manage 8 PWM channels with the ESP.
For this I could not use any GPIO pin except 0, 45 and 46.
Also GPIO26 should probably not be used.
I would also like to use the ESP purely for flashing with Wifi and, in addition to the PWMs, there should also be a 1-wire bus, I2C, an analog multiplexer, 2 5V relays (I also have a level shifter here) and an additional 16-channel PWM mux being controlled.
If I now use a few PWM channels as a test run, the ESP32-S2-Saola bitches, because it sometimes outputs on the GPIO14, 16 or 17 instead of the 3.3 (3.29V) I need, but only 1.69V (are probably those 1.8V) .
This is deadly for my project as I need to control mosfets.
Why does the ESP regulate down some GPIO ports independently?
The phenomenon is that these ports are not FIXED. If I rearrange the test setup and use other ports, the problem then occurs from my e.g. 4, 5 or 6 PWM pins to any other PIN
What is wrong there or what do you have to pay attention to and where can you read exactly this?
Greetings and thanks in advance
Achim
ESP32-S2-Saola-1r voltage, here and there, not 3.29V, but 1.69V
-
- Posts: 4
- Joined: Wed May 31, 2023 12:04 pm
-
- Posts: 1708
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: ESP32-S2-Saola-1r voltage, here and there, not 3.29V, but 1.69V
Peak or average signal voltage?it sometimes outputs on the GPIO14, 16 or 17 instead of the 3.3 (3.29V) I need, but only 1.69V
-
- Posts: 4
- Joined: Wed May 31, 2023 12:04 pm
Re: ESP32-S2-Saola-1r voltage, here and there, not 3.29V, but 1.69V
Overage Voltage, peak on my Multimeter is 3.29 if is normal.
That i get if i send a signal to and GPIO normaly and also if i send 255 on my PWM-GPIO.
I use 8 PWM Ports. and only on some i get jumping voltage between 1.4x and 1.6x Voltage.
The LED's like a flicker then,
I read any about the ESP32 Boards share the channels and share also sometimes the frequency and i'm sure i make her any bg misstake
but i don't find any answere and describe more in detail what is happen with that channels and depend on any frequency
That i get if i send a signal to and GPIO normaly and also if i send 255 on my PWM-GPIO.
I use 8 PWM Ports. and only on some i get jumping voltage between 1.4x and 1.6x Voltage.
The LED's like a flicker then,
I read any about the ESP32 Boards share the channels and share also sometimes the frequency and i'm sure i make her any bg misstake
but i don't find any answere and describe more in detail what is happen with that channels and depend on any frequency
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2-Saola-1r voltage, here and there, not 3.29V, but 1.69V
Can you share your code?
-
- Posts: 4
- Joined: Wed May 31, 2023 12:04 pm
Re: ESP32-S2-Saola-1r voltage, here and there, not 3.29V, but 1.69V
of course... thank you for check...
there is my code
if you check.
if i dimm the 4000K Led's like 4000K P1 and 4000K P2 then flicker 4000K P2 total crazy i have to set both on 255 thats run nearly a little normal
on the GPIO then i get also not 3.28V i get maybe 1.48 and he jump from 1.2x to 1.4x Voltage
with 660nm P1 and 660nm P2 is same effect
i dimm the 4000K, 660nm, 730nm all over PWM directly to a meanwell LDD 700H or 1000H LED-Driver
the 3000K LED's i dimm over N-Mosfet a Meanwell-hlg185h-700b 1-10 voltage... that looks fine
her is the code
there is my code
if you check.
if i dimm the 4000K Led's like 4000K P1 and 4000K P2 then flicker 4000K P2 total crazy i have to set both on 255 thats run nearly a little normal
on the GPIO then i get also not 3.28V i get maybe 1.48 and he jump from 1.2x to 1.4x Voltage
with 660nm P1 and 660nm P2 is same effect
i dimm the 4000K, 660nm, 730nm all over PWM directly to a meanwell LDD 700H or 1000H LED-Driver
the 3000K LED's i dimm over N-Mosfet a Meanwell-hlg185h-700b 1-10 voltage... that looks fine
her is the code
Code: Select all
substitutions:
devicename: bigbox-lightcontroller
board: esp32-s2-saola-1
upper_devicename: ESP32_S2_BigBox_LightController
device_location: Kueche
device_description: BigBox Lichtsteuerung platform using ESPhome firmware
ipaddress: 192.168.2.102
last_update: "2023-06-04 22:54:12"
esphome:
name: bigbox-lightcontroller
comment: lightcontroller
includes: []
libraries: []
build_path: bigbox-lightcontroller
platformio_options: {}
esp32:
board: esp32-s2-saola-1
framework:
type: arduino
logger:
#level: VERY_VERBOSE
#tx_buffer_size: 1024
api:
encryption:
key: !secret ESPHOME_API_KEY
ota:
safe_mode: true
password: !secret HA_OTA_PASSWORD
# none... wurde auf light.... geändert 04.06.2023
wifi:
power_save_mode: light # none (default for esp8266), light (default for esp32), high
ssid: !secret WLAN_ASUS_SSID
password: !secret WLAN_ASUS_PASSWORD
manual_ip:
static_ip: !secret ESP32_S2_BIGBOX_LIGHT_IP
gateway: !secret WLAN_ASUS_GATEWAY_IP
subnet: !secret WLAN_ASUS_SUBNET
dns1: !secret WLAN_ASUS_DNS1
ap:
ssid: "Bigbox-Lightcontrol"
password: !secret WIFI_AP_PASSWORD
web_server:
port: 80
auth:
username: admin
password: admin
# Sensoren am I2C Bus
i2c:
sda: GPIO8
scl: GPIO9
scan: true
id: bus_a
# Analog cd74hc4067 16 Channel Mux
cd74hc4067:
- id: cd74hc4067_1
pin_s0: GPIO12
pin_s1: GPIO13
pin_s2: GPIO14
pin_s3: GPIO15
dallas:
- pin: GPIO16
id: hub_1
update_interval: 120s
- pin: GPIO17
id: hub_2
update_interval: 120s
# pin-out
#
# GPIO1 PWM1 led_panel1_GPIO1 3000K
# GPIO2 PWM2 led_panel2_GPIO2 3000K
# GPIO3 PWM3 LED_4000K1_GPIO3
# GPIO4 PWM4 LED_4000K2_GPIO4
# GPIO5 PWM5 LED_660nm_1_GPIO5
# GPIO6 PWM6 LED_660nm_2_GPIO6
# GPIO7 PWM7 LED_730nm_GPIO7
# GPIO8 SDA I2C
# GPIO9 SCL I2C
# GPIO10 adc Aanalog_mux-sig-pin
# GPIO11 PWM8 PANEL_12V_FAN_GPIO11
# GPIO12 Aanalog Mux Address S0
# GPIO13 Analog Mux Address S1
# GPIO14 Aanalog Mux Address S2
# GPIO15 Aanalog Mux Address S3
# GPIO16 1-wire hub_1
# GPIO17 1-wire hub_2
# GPIO33 LED-Panel_1 3000K Switch N-Fet
# GPIO34 LED-Panel_2 3000K Switch N-Fet
# GPIO35 Fan LedPanel Switch N-Fet
# GPIO36 Fan Controller Box Switch N-Fet
output:
- platform: ledc
pin: GPIO1
channel: 0 # ist ok
inverted: True # 0 = volllast 255= aus
frequency: 1000 Hz # default 490Hz
id: led_panel1_GPIO1
- platform: ledc
pin: GPIO2
channel: 1 # ist ok
inverted: True # 0 = volllast 255= aus
frequency: 1000 Hz
id: led_panel2_GPIO2
- platform: ledc
pin: GPIO3
channel: 2 # ist ok
frequency: 1000 Hz
id: led_4000k_p1_gpio3
- platform: ledc
pin: GPIO4
channel: 3 # ist nicht ok. flackert wenn auf Channel 1 oder 2
frequency: 1000 Hz
id: led_4000k_p2_gpio4
- platform: ledc
pin: GPIO5
channel: 4 # ist nicht ok, flackert wenn on und lässt sogar noch die LED's an led_4000k_p1_gpio3 leicht mit flackern
frequency: 1000 Hz
id: led_660nm_p1_gpio5
- platform: ledc
pin: GPIO6
channel: 4 # ist ok
frequency: 1000 Hz
id: farred_730nm_gpio6
- platform: ledc
pin: GPIO7
channel: 6
frequency: 1000 Hz
id: led_660nm_p2_gpio7 # ist ok flackert nicht und stört keine anderen Kanäle
#- platform: ledc
# pin: GPIO11
# channel: 7
# frequency: "4096Hz"
# id: PANEL_12V_FAN_GPIO11
# hub_2 0x1b00000df723ec28
#[21:46:43][D][dallas.sensor:084]: hub_1 0x3f00000df6546028
#[21:46:43][D][dallas.sensor:084]: hub_1 0x3100000df746fa28
sensor:
- platform: internal_temperature
name: "ESP32-S2-Saola_1R Temperatur"
- platform: dallas
address: 0x3100000df746fa28
dallas_id: hub_1
name: "Uc Box StepDown"
id: uc_box_stepdown_ds18b20_temp
- platform: dallas
address: 0x3f00000df6546028
dallas_id: hub_1
id: uc_box_ds18b20_temp
name: "Uc Box"
- platform: dallas
address: 0x1b00000df723ec28
dallas_id: hub_2
name: "LED-Panel Temperatur"
id: led_panel_temp
- platform: sht4x
temperature:
name: "Temperatur am Kronendach"
humidity:
name: "Luftfeuchtigkeit"
address: 0x44
update_interval: 30s
# Pimoroni BME60 Sensor
#- platform: bme680
# temperature:
# name: "Temperatur an Kronendach"
# oversampling: 16x
# filters:
# offset: -0.65
# update_interval: 12s
# pressure:
# name: " Luftdruck"
# humidity:
# name: " Luftfeuchtigkeit"
# filters:
# offset: -0.65
# gas_resistance:
# name: "Gas Luft-Gemische"
# i2c_id: bus_a
# ##iir_filter: 7x
# address: 0x77 #address: 0x77 #address: 0x76 # BME688 Piomoroni/BME680/Adafruit/BME680 Piomoroni
# BH1750 Lux/Lumen sensor
- platform: bh1750
name: "LED Lichtstärkein Lux Mitte der Pflanze:"
i2c_id: bus_a
address: 0x5C
update_interval: 30s
- platform: bh1750
name: "LED Lichtstärke in LuX am Kronendach:"
i2c_id: bus_a
address: 0x23
update_interval: 30s
- platform: adc
id: adc_sensor
pin: GPIO10
- platform: cd74hc4067
id: panel_1_3000k
name: "BigBox Panel-1 3000K Power"
number: 5
sensor: adc_sensor
update_interval: 300s
unit_of_measurement: "W"
accuracy_decimals: 2
device_class: "power"
filters:
- lambda: return (x * 10);
- platform: cd74hc4067
id: panel_2_3000k
name: "BigBox Panel-2 3000K Power"
number: 4
sensor: adc_sensor
update_interval: 60s
unit_of_measurement: "W"
device_class: "power"
filters:
- lambda: return (x * 10);
- platform: cd74hc4067
id: panel_1_4000k
name: "BigBox Panel-1 4000K Power"
number: 3
sensor: adc_sensor
update_interval: 60s
unit_of_measurement: "W"
device_class: "power"
filters:
- lambda: return (x * 10);
- platform: cd74hc4067
id: panel_2_4000k
name: "BigBox Panel-2 4000K Power"
number: 2
sensor: adc_sensor
update_interval: 60s
unit_of_measurement: "W"
device_class: "power"
filters:
# - lambda: "return x > 0.001 ? x * 56221 : 0;"
- lambda: return (x * 10);
- platform: cd74hc4067
id: Panel_1_660nm
name: "BigBox Panel-1 660nm Power"
number: 1
sensor: adc_sensor
update_interval: 60s
unit_of_measurement: "W"
device_class: "power"
filters:
#- lambda: "return x > 0.001 ? x * 56221 : 0;"
- lambda: return (x * 10);
- platform: cd74hc4067
id: Panel_2_660nm
name: "BigBox Panel-2 660nm Power"
number: 0
sensor: adc_sensor
update_interval: 60s
unit_of_measurement: "W"
device_class: "power"
filters:
#- lambda: "return x > 0.001 ? x * 56221 : 0;"
- lambda: return (x * 10);
# - platform: cd74hc4067
# id: Panel_1und2_730nm
# name: "BigBox Panel-1und2 730 Power"
# number: 6
# sensor: adc_sensor
# update_interval: 60s
# unit_of_measurement: "W"
# device_class: "power"
# filters:
# #- lambda: "return x > 0.001 ? x * 56221 : 0;"
# - lambda: return (x * 10);
# - platform: cd74hc4067
# id: Panel_1und2_840nm
# name: "BigBox Panel-1und2840 Power"
# number: 6
# sensor: adc_sensor
# update_interval: 60s
# unit_of_measurement: "W"
# device_class: "power"
# filters:
# #- lambda: "return x > 0.001 ? x * 56221 : 0;"
# - lambda: return (x * 10);
light:
- platform: monochromatic
name: "LED Panel 1 3000K 1000Hz"
output: led_panel1_GPIO1
gamma_correct: 1.0
- platform: monochromatic
name: "LED Panel 2 3000K 1000Hz"
output: led_panel2_GPIO2
gamma_correct: 1.0
- platform: monochromatic
name: "LED 4000K P1"
output: led_4000k_p1_gpio3
#gamma_correct: 1.0
- platform: monochromatic
name: "LED 4000K P2"
output: led_4000k_p2_gpio4
#gamma_correct: 1.0
- platform: monochromatic
name: "LED 660nm P1"
output: led_660nm_p1_gpio5
#gamma_correct: 1.0
- platform: monochromatic
name: "LED FarRed 730nm"
output: farred_730nm_gpio6
#gamma_correct: 1.0
- platform: monochromatic
name: "LED 660nm P2"
output: led_660nm_p2_gpio7
#gamma_correct: 1.0
#- platform: monochromatic
# name: "Panel 12V Fan 33600Hz"
# output: PANEL_12V_FAN_GPIO11
switch:
- platform: gpio
pin: GPIO33
inverted: true
name: "Led Panel 1 3000K GPIO33"
- platform: gpio
pin: GPIO34
inverted: true
name: "Led Panel 2 3000K GPIO34"
- platform: gpio
pin: GPIO35
name: "Fan LedPanel GPIO35"
- platform: gpio
pin: GPIO37 # 36 only 1.34V
name: "Fan Controller Box GPIO37"
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-S2-Saola-1r voltage, here and there, not 3.29V, but 1.69V
Ah, that's not code, that's configuration. Suggest you file this as an issue with esphome as you're using their firmware.
Who is online
Users browsing this forum: Bing [Bot] and 121 guests