Salta al contenuto
0
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
  • Categorie
  • Recenti
  • Tag
  • Popolare
  • Mondo
  • Utenti
  • Gruppi
Collassa

Forum Federato

Di Piero Bosio
  1. Home
  2. Categorie
  3. Senza categoria
  4. Hey #electronics folks!

Hey #electronics folks!

Pianificato Fissato Bloccato Spostato Senza categoria
electronics
42 Post 1 Autori 107 Visualizzazioni
  • Da Vecchi a Nuovi
  • Da Nuovi a Vecchi
  • Più Voti
Rispondi
  • Topic risposta
Effettua l'accesso per rispondere
Questa discussione è stata eliminata. Solo gli utenti con diritti di gestione possono vederla.
  • blinryundefined blinry

    I *was* using a wrong "busy" pin! When I changed the pins in the firmware, I looked them up in an old version of the datasheet! 🤦 Now it refreshes like it should! Also, I can power it using a LiPo! \o/

    Next problem: The battery level indicator chip isn't reacting – when I speak to it using I2C, I get no response. I'll try to double-check the data sheet, to see if I wired it up correctly?

    blinryundefined Questo utente è esterno a questo forum
    blinryundefined Questo utente è esterno a questo forum
    blinry
    scritto su ultima modifica di
    #33

    I was too curious about whether the CO2 sensor itself would work, and wired it up temporarily.

    And it immediately did what it should, which makes me really happy! \o/ It really is a tiny CO2 sensor now! 🐣

    (Yes, I breathed on it for testing in this photo! :P)

    blinryundefined 1 Risposta Ultima Risposta
    • blinryundefined blinry

      I was too curious about whether the CO2 sensor itself would work, and wired it up temporarily.

      And it immediately did what it should, which makes me really happy! \o/ It really is a tiny CO2 sensor now! 🐣

      (Yes, I breathed on it for testing in this photo! :P)

      blinryundefined Questo utente è esterno a questo forum
      blinryundefined Questo utente è esterno a questo forum
      blinry
      scritto su ultima modifica di
      #34

      Yep, my mistake: I didn't number the pins of the chip correctly! SDA and SCL are pins 8 + 7, not 5 and 6! Not sure how I got that wrong, but it teaches me to double-check next time!

      Luckily, the fuel gauge is the one component that's a bit optional – just nice to have!

      Resoldering it on the board seems difficult, as it's so tiny! How would you approach that? I mean, I could try to cut the wrong traces, and solder teeny tiny wires to the chip? #electronics

      blinryundefined 1 Risposta Ultima Risposta
      • blinryundefined blinry

        Yep, my mistake: I didn't number the pins of the chip correctly! SDA and SCL are pins 8 + 7, not 5 and 6! Not sure how I got that wrong, but it teaches me to double-check next time!

        Luckily, the fuel gauge is the one component that's a bit optional – just nice to have!

        Resoldering it on the board seems difficult, as it's so tiny! How would you approach that? I mean, I could try to cut the wrong traces, and solder teeny tiny wires to the chip? #electronics

        blinryundefined Questo utente è esterno a questo forum
        blinryundefined Questo utente è esterno a questo forum
        blinry
        scritto su ultima modifica di
        #35

        Glued and soldered everything together. Now it feels like a real device! I'm super happy! Thanks again to everyone who has helped me to get this far! ❤

        The CO2 Canary is open hardware, you can find all source files here:

        https://github.com/blinry/co2-canary

        I'm planning to write detailed instructions on how to order the required parts, so that you can get one yourself!

        #electronics

        blinryundefined 1 Risposta Ultima Risposta
        • blinryundefined blinry

          Glued and soldered everything together. Now it feels like a real device! I'm super happy! Thanks again to everyone who has helped me to get this far! ❤

          The CO2 Canary is open hardware, you can find all source files here:

          https://github.com/blinry/co2-canary

          I'm planning to write detailed instructions on how to order the required parts, so that you can get one yourself!

          #electronics

          blinryundefined Questo utente è esterno a questo forum
          blinryundefined Questo utente è esterno a questo forum
          blinry
          scritto su ultima modifica di
          #36

          Spotted another hardware bug!

          I put three buttons at the top of the device, but they didn't work correctly when I tried to assign software functions today…

          Looked closer, and it turned out: Pads 1 and 2 in my footprint are always connected – I should've used pads 3 and 4!

          So instead of buttons, I have… three things that click when you press them! 😐

          blinryundefined 1 Risposta Ultima Risposta
          • blinryundefined blinry

            Spotted another hardware bug!

            I put three buttons at the top of the device, but they didn't work correctly when I tried to assign software functions today…

            Looked closer, and it turned out: Pads 1 and 2 in my footprint are always connected – I should've used pads 3 and 4!

            So instead of buttons, I have… three things that click when you press them! 😐

            blinryundefined Questo utente è esterno a questo forum
            blinryundefined Questo utente è esterno a questo forum
            blinry
            scritto su ultima modifica di
            #37

            Doing some power consumption measurements (using the Power Profiler Kit 2)!

            One CO2 measurement + full e-ink redraw takes ~0.08 mWh of energy. That means that on a 7.4 Wh lipo battery, the device could do ~92k of these refreshes!

            Let's say we refresh every minute – that's a battery life of 64 days. Not bad as a first estimate!

            blinryundefined 1 Risposta Ultima Risposta
            • blinryundefined blinry

              Doing some power consumption measurements (using the Power Profiler Kit 2)!

              One CO2 measurement + full e-ink redraw takes ~0.08 mWh of energy. That means that on a 7.4 Wh lipo battery, the device could do ~92k of these refreshes!

              Let's say we refresh every minute – that's a battery life of 64 days. Not bad as a first estimate!

              blinryundefined Questo utente è esterno a questo forum
              blinryundefined Questo utente è esterno a questo forum
              blinry
              scritto su ultima modifica di
              #38

              I have some ideas for how to improve this:

              - Refreshing the e-ink takes a while; maybe I could do partial refreshes, or use the ESP32-C6's low-power core during the refresh?
              - If the CO2 level hasn't changed significantly, we don't necessarily need to redraw the screen! The current firmware already does this, and it improves runtime by *a lot*! A measurement without redraw only needs 0.013 mWh (one sixth)!

              blinryundefined 1 Risposta Ultima Risposta
              • blinryundefined blinry

                I have some ideas for how to improve this:

                - Refreshing the e-ink takes a while; maybe I could do partial refreshes, or use the ESP32-C6's low-power core during the refresh?
                - If the CO2 level hasn't changed significantly, we don't necessarily need to redraw the screen! The current firmware already does this, and it improves runtime by *a lot*! A measurement without redraw only needs 0.013 mWh (one sixth)!

                blinryundefined Questo utente è esterno a questo forum
                blinryundefined Questo utente è esterno a questo forum
                blinry
                scritto su ultima modifica di
                #39

                In the estimation, I've neglected one aspect, though: the energy consumption in deep sleep (while the device does nothing).

                On my initial prototype using Feathers, the deep sleep current is ~93 uA.

                On my custom PCB, using the same firmware, it's ~653 uA, and I'm not sure why! 😮

                It seems related to the e-ink display – if I detach it, I get the lower number!

                Does anyone see what's going on? Here's the schematics for the ESP32 + e-ink Feathers of the prototype, and my own:

                #electronics

                blinryundefined 1 Risposta Ultima Risposta
                • blinryundefined blinry

                  In the estimation, I've neglected one aspect, though: the energy consumption in deep sleep (while the device does nothing).

                  On my initial prototype using Feathers, the deep sleep current is ~93 uA.

                  On my custom PCB, using the same firmware, it's ~653 uA, and I'm not sure why! 😮

                  It seems related to the e-ink display – if I detach it, I get the lower number!

                  Does anyone see what's going on? Here's the schematics for the ESP32 + e-ink Feathers of the prototype, and my own:

                  #electronics

                  blinryundefined Questo utente è esterno a questo forum
                  blinryundefined Questo utente è esterno a questo forum
                  blinry
                  scritto su ultima modifica di
                  #40

                  Looking closely at the power consumption in deep sleep when the display attached, there's some irregular pattern going on!

                  This doesn't happen when the display is detached. So now it's a question of "through which path does power go through the display", I guess!

                  /cc @oseiler @hennichodernich

                  blinryundefined 1 Risposta Ultima Risposta
                  • blinryundefined blinry

                    Looking closely at the power consumption in deep sleep when the display attached, there's some irregular pattern going on!

                    This doesn't happen when the display is detached. So now it's a question of "through which path does power go through the display", I guess!

                    /cc @oseiler @hennichodernich

                    blinryundefined Questo utente è esterno a questo forum
                    blinryundefined Questo utente è esterno a questo forum
                    blinry
                    scritto su ultima modifica di
                    #41

                    Fixing the hardware bugs on my CO2 sensor PCB today.

                    Turns out the high power consumption during deep sleep was due to the floating EINK_RES pin!

                    The ESP seems to have internal pullup resistors which it could activate, but it's not clear to me how to do that from Rust. So I'll just add an external pullup.

                    blinryundefined 1 Risposta Ultima Risposta
                    • blinryundefined blinry

                      Fixing the hardware bugs on my CO2 sensor PCB today.

                      Turns out the high power consumption during deep sleep was due to the floating EINK_RES pin!

                      The ESP seems to have internal pullup resistors which it could activate, but it's not clear to me how to do that from Rust. So I'll just add an external pullup.

                      blinryundefined Questo utente è esterno a questo forum
                      blinryundefined Questo utente è esterno a questo forum
                      blinry
                      scritto su ultima modifica di
                      #42

                      I'm also considering adding a light sensor (to save power at night, when nobody is looking at the display anyway) and a piezo buzzer (for making cute chirping noises 🐥)!

                      What else could I add? A temperature sensor? 🤔

                      1 Risposta Ultima Risposta
                      1
                      • rag. Gustavino Bevilacquaundefined rag. Gustavino Bevilacqua ha condiviso questa discussione
                      Rispondi
                      • Topic risposta
                      Effettua l'accesso per rispondere
                      • Da Vecchi a Nuovi
                      • Da Nuovi a Vecchi
                      • Più Voti


                      • Accedi

                      • Accedi o registrati per effettuare la ricerca.
                      • Primo post
                        Ultimo post