Search found 166 matches

by idahowalker
Fri Nov 08, 2019 2:56 am
Forum: ESP32 Arduino
Topic: ESP Now values not being received properly on receiver side.
Replies: 3
Views: 6574

Re: ESP Now values not being received properly on receiver side.

This is not true // For ESP32 the GPIO pwm pins are: 0,1,2,3,4,6,7,8,9,10,11,12,14,16,17,18,19,21,22,23,25,26,27,32,33,34,35,36,39 All the GPIO pins above 32 are input only // For ESP32 the GPIO pwm pins are: 0,1,2,3,4,6,7,8,9,10,11,12,14,16,17,18,19,21,22,23,25,26,27,32 is correct. Anyway, not used...
by idahowalker
Fri Nov 08, 2019 2:49 am
Forum: ESP32 Arduino
Topic: ESP Now values not being received properly on receiver side.
Replies: 3
Views: 6574

Re: ESP Now values not being received properly on receiver side.

Just courious if you expect these values to go negative uint16_t ACW = total[0] / numReadings; // AzimuthCW uint16_t ACCW = total[1] / numReadings; // AzimuthCCW uint16_t ECW = total[2] / numReadings; // ElevationCW uint16_t ECCW = total[3] / numReadings; // ElevationCCW ? A uint16_t cannot store a ...
by idahowalker
Thu Nov 07, 2019 4:17 pm
Forum: ESP32 Arduino
Topic: [SOLVED] SECOND SPI QUESTION
Replies: 3
Views: 5765

Re: SECOND SPI QUESTION

I use the ESP32 SPI API to do the SPI thing. https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/peripherals/spi_master.html here is the 'main' code #include "sdkconfig.h" // for log_x #include "esp_system.h" //This inclusion configures the peripherals in the ESP system. #include "es...
by idahowalker
Thu Nov 07, 2019 4:04 pm
Forum: ESP32 Arduino
Topic: External ADC Question
Replies: 7
Views: 11208

Re: External ADC Question

I get great results from the built in A:D's and an example of the way I am using the ADC. #include <driver/adc.h> setup() { // https://dl.espressif.com/doc/esp-idf/latest/api-reference/peripherals/adc.html // set up A:D channels adc1_config_width(ADC_WIDTH_12Bit); adc1_config_channel_atten(ADC1_CHAN...
by idahowalker
Thu Nov 07, 2019 6:20 am
Forum: ESP32 Arduino
Topic: Unable to attachinterrupt on core 0
Replies: 2
Views: 3887

Re: Unable to attachinterrupt on core 0

Your interrupt routine is doing way to many things. The ISR should just, in the case of an ESP32 do event triggers and a bit of counting. void IRAM_ATTR onTimer() { BaseType_t xHigherPriorityTaskWoken; iTicCount++; xEventGroupSetBitsFromISR(eg, OneMilliSecondGroupBits, &xHigherPriorityTaskWoken); if...
by idahowalker
Thu Nov 07, 2019 12:04 am
Forum: ESP32 Arduino
Topic: open drain output
Replies: 4
Views: 16476

Re: open drain output

https://docs.espressif.com/projects/esp ... /gpio.html look for gpio pull down and pull up disable.
by idahowalker
Wed Nov 06, 2019 5:03 pm
Forum: ESP32 Arduino
Topic: xTimerCreate with hours/days cycle
Replies: 7
Views: 9435

Re: xTimerCreate with hours/days cycle

Consider using the ULP to have a timer that waits for hours or days or???? Here is some code I got from someplace and changed it a little for my own use: void ULP_BLINK_RUN(uint32_t us); int int_Pin = 2; volatile unsigned int IntCount = 0; const int ULP_WAKE_INTERVAL = 1000; // a microsecond value s...
by idahowalker
Wed Nov 06, 2019 4:47 pm
Forum: ESP32 Arduino
Topic: External ADC Question
Replies: 7
Views: 11208

Re: External ADC Question

How is it better then
The ESP32 integrates two 12-bit SAR (Successive Approximation Register) ADCs supporting a total of 18 measurement channels (analog enabled pins).
https://docs.espressif.com/projects/esp ... s/adc.html
?
by idahowalker
Thu Oct 31, 2019 10:18 pm
Forum: ESP32 Arduino
Topic: [SOLVED] How to check if Serial.write() sent data ?
Replies: 8
Views: 12608

Re: [SOLVED] How to check if Serial.write() sent data ?

Code: Select all

#include <HardwareSerial.h>

HardwareSerial GPSSerial ( 1 );
HardwareSerial LIDARSerial ( 2 );

setup()
{
 LIDARSerial.begin ( SerialDataBits, SERIAL_8N1, 26, 25 );
  GPSSerial.begin ( GPS_DataBits, SERIAL_8N1, 2, 15 ); 
}
With the hardware matrix you can define what pins on an ESP32 do or not do.
by idahowalker
Wed Oct 30, 2019 9:59 pm
Forum: ESP32 Arduino
Topic: [SOLVED] How to check if Serial.write() sent data ?
Replies: 8
Views: 12608

Re: How to check if Serial.write() sent data ?

You could set up another serial port, Serial2, on your ESP32.

Connect a wire from Serial1tx to Serial2rx. Send some data out Serial1, print Serial2 receive data to Serial, did you get sumpting printed on the serial monitor? If you did serial1 sent sumpting, and Serial2 got it.