Forum >Replies by iisfaq
userhead iisfaq
Replies (6)
  • You Reply:

    Are you asking me why I am doing this?

     

    The ESP32-C6 has multiple Analog to Digital pins.

     

    If I connect my LDR circuit with a 10K LDR and a 10K resister, I expect each pin to return the same values +/- a small variation.

     

    This is not the case - if I block most of the light from getting to the LDR the value I read is

     

    Using Pin 2 - 2200

    Using Pin 3 - 705

    Using Pin 4 - 2750

    Using Pin 5 - 1040

     

    Why are they not all the same value?   Why is there such a variation?

     

     

     

     

  • You Reply:

    Anyone know a place online that might contain a component? 

     

     I am looking at Circuit Maker but since I am new I do not mind what software package.

  • You Reply:

    The problem is I have never done this before. I was hoping that someone had created a component for the FireBeetle2  ESP32-C6 (full size)

     

     

  • You Reply:

    OK I have found out some more and I think there is no problem after all.

     

    void loop() {

      Serial.println("Loop");

       digitalWrite(LED_BUILTIN, HIGH);  // turn the LED on (HIGH is the voltage level)

    delay(1000);

      GoToLightSleep();

        digitalWrite(LED_BUILTIN, LOW);   // turn the LED off by making the voltage LOW

      Serial.println("Loop after sleep");

      delay(1000);

    }

     

    Basically the LED needs a delay before the sleep to actually light up otherwise it is just a very small flicker. The 1000 is just to show this off.

     

    The serial is broken but I believe that is expected as the ESP32-C6 only has a minimal USB setup or something like that. The chip gets disabled during light sleep but it does not reinitialize after light sleep so USB serial is broken after it wakes up and so you never see any more messages.

     

     

  • You Reply:

    From the specs ”Beetle ESP32-C6 provides up to 13 IO ports, alleviating concerns about insufficient IO ports during project development.”

     

    so plenty of ports

     

    Ports

    Digital I/O x13LED PWM 6 ChannelSPI x1UART x3 (LP UART x1)I2C x2 (LP I2C x1)I2S x1IR Transceiver: transmit channel x5, receive channel x51 × 12-bit SAR ADC, 7 ChannelDMA Controller: transmit channel x3, receive channel x3
  • You Reply:

    So I plugged a battery into the ESP32-C6 (I assume it is dead flat as it only arrived in the mail today) and connected the ESP32-C6 via USB to the computer and it now reads 2264.59mV or there abouts.

     

    Will this charge the battery? or does it actually need a solar panel?

     

    Chris