Search found 10 matches
- Wed Jul 03, 2019 3:58 pm
- Forum: Hardware
- Topic: Using LEDC for generating two pulses
- Replies: 11
- Views: 14629
Re: Using LEDC for generating two pulses
Nevercast, Thanks for your comments. I did so and used almost the same method to generate the pulses. By the way, I am using these six pulses to turn on 6 switches in different periods to measure 3 sensors differently with the same hardware and also discharge the output during three different switch...
- Mon Jun 24, 2019 10:29 pm
- Forum: General Discussion
- Topic: ADC Calibrated Value still not correct?
- Replies: 4
- Views: 11834
Re: ADC Calibrated Value still not correct?
Hi, I am measuring a voltage of a resistor ladder using ESPWROOM32 Dev Kit. The measurement of the ADC with the calibrated code mentioned above is 364mV but the actual voltage measured by the multimeter is 422mV. Without the calibration is terrible and showing 100mV. Any idea how can I fix it? Regar...
- Fri Jun 21, 2019 2:34 pm
- Forum: Hardware
- Topic: Using LEDC for generating two pulses
- Replies: 11
- Views: 14629
Re: Using LEDC for generating two pulses
Great. Creating them by the software you mean just giving some delays and create those pulses from delay function?
How can we give delays to the channels when we are using LEDC?
How can we give delays to the channels when we are using LEDC?
- Thu Jun 20, 2019 4:21 pm
- Forum: Hardware
- Topic: Using LEDC for generating two pulses
- Replies: 11
- Views: 14629
Re: Using LEDC for generating two pulses
Thanks a lot for your comments and I could fix the frequency and the duty cycle. I have another concern, can we go below 1Hz? I have tried 0.125 Hz but it shows 1Hz, it seems the minimum is 1Hz, is there anyway to decrease the frequency below 1Hz? In general, I am trying to generate the pulses like ...
- Wed Jun 19, 2019 1:27 pm
- Forum: Hardware
- Topic: Using LEDC for generating two pulses
- Replies: 11
- Views: 14629
Re: Using LEDC for generating two pulses
How it refers to the same channel when the name is different?
Regards,
MEhdi
Regards,
MEhdi
- Tue Jun 18, 2019 3:11 pm
- Forum: Hardware
- Topic: Using LEDC for generating two pulses
- Replies: 11
- Views: 14629
Re: Using LEDC for generating two pulses
Hi, Thanks for your reply. I should mention that It should be fine to have the same frequency but I should be definitely able to have different duty cycles since I am going to run 6 switches. Here is my code: // the number of the LED pin const int ledPin = 16; // 16 corresponds to GPIO16 const int l...
- Tue Jun 18, 2019 3:07 pm
- Forum: Hardware
- Topic: ADC Voltage measurement is not right!!!
- Replies: 2
- Views: 5328
Re: ADC Voltage measurement is not right!!!
Thanks for your reply. I have used 0 value as the initial point and the value that I am reading is in the linear region and also tried different regions but got the same issue. Here is my code: /*Program to control LED (ON/OFF) from ESP32 using Serial Bluetooth * Thanks to Neil Kolbans for his efoor...
- Mon Jun 17, 2019 5:56 pm
- Forum: Hardware
- Topic: Using LEDC for generating two pulses
- Replies: 11
- Views: 14629
Using LEDC for generating two pulses
Hi,
I am using LEDC to generate two pulses one 1kHz and the other one 5kHz on the 16 and 17 output pins, respectively. But when I check the outputs, both the frequencies are the same and the interesting point is here that sometimes is 1kHz and after sometime it changes to 5 kHz. How can I fix it?
I am using LEDC to generate two pulses one 1kHz and the other one 5kHz on the 16 and 17 output pins, respectively. But when I check the outputs, both the frequencies are the same and the interesting point is here that sometimes is 1kHz and after sometime it changes to 5 kHz. How can I fix it?
- Mon Jun 17, 2019 5:52 pm
- Forum: Hardware
- Topic: ADC Voltage measurement is not right!!!
- Replies: 2
- Views: 5328
ADC Voltage measurement is not right!!!
Hi, I am using a simple resistor ladder to measure the voltage accross one resistor with the ADC. But, the measured voltage has 100mV offset from the real measured voltage accross the resistor with the multimeter. I thoght that it might take some current to the ADC and added a large resistor in seri...
- Mon Jun 17, 2019 4:16 pm
- Forum: Hardware
- Topic: Creating two different Clocks with different Frequencies and Different Duty Cycles with LEDC
- Replies: 0
- Views: 2248
Creating two different Clocks with different Frequencies and Different Duty Cycles with LEDC
Hi Everyone, I am trying to use LEDC command to create two different clock signals to switch two sensors at different times to measure them the voltage. To make it simple I am just writing a code to turn on the LED at two different ports with different frequencies and duty cycles. Unfortunately I ca...