tiefpunkt’s avatartiefpunkt’s Twitter Archive—№ 15,757

                            1. My project for this week: turn this warning lamp thing in a small solar charger / battery pack combo. Let's see if I find a way to make that happen...
                              oh my god twitter doesn’t include alt text from images in their API
                          1. …in reply to @tiefpunkt
                            They normally run on these big chunky 6V batteries, but I'll try to replace them with 18650 Li-Ion batteries, probably 3S for now
                            oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
                        1. …in reply to @tiefpunkt
                          The screw holding that thing together is a funny one. Should be a hex thing on the front, but I didn't have anything that fit, so it's this hack instead 😆
                          oh my god twitter doesn’t include alt text from images in their API
                      1. …in reply to @tiefpunkt
                        Let's take this this apart a bit more. Take off the lenses first, which has just a few regular screws.
                        oh my god twitter doesn’t include alt text from images in their API
                    1. …in reply to @tiefpunkt
                      First side is off, the back side slides out easily now as well. This pole in the middle here has two LEDs in the top part, one of each side. That's the light you see usually. There's another LED (I think) down below and a photodiode to figure out when it gets dark.
                      oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
                  1. …in reply to @tiefpunkt
                    That whole thing pops out of the base, including the battery connector in the base, and that leaves me with a quite dirty piece of plastic
                    oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
                1. …in reply to @tiefpunkt
                  Probably a good idea to give it a rinse and come back to it later🚿
                  oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
              1. …in reply to @tiefpunkt
                While that's drying, there's some electronics work to do. I don't want to build my own battery pack quite yet, but use these battery holders instead. I can sandwich two of them together for a 3S2P battery, so there are two cells in parallel, and three of these pairs in series.
                oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
            1. …in reply to @tiefpunkt
              How do we charge these? I would've liked to go with one of those cheapo PWM solar chargers from China (got of few around like this one), but while you can dial in their cut-off voltages a bit, they won't adjust far enough for Li-Ion 3S. So DIY it is (for now).
              oh my god twitter doesn’t include alt text from images in their API
          1. …in reply to @tiefpunkt
            I decided on using instructables.com/ARDUINO-SOLAR-CHARGE-CONTROLLER-PWM/ as a reference, but I'll change quite a few things around probably. I don't have the exact same MOSFETs, the voltage dividers don't work for what I'm doing, and I want an OLED display. And who knows what else. So let's do some sketching
            oh my god twitter doesn’t include alt text from images in their API
        1. …in reply to @tiefpunkt
          I don't seem to have any P-channel MOSFETs, and neither does the parts library at @munichmakerlab. So I guess I'll have to order a bunch of stuff again, which will take a week. Damn 😕
      1. …in reply to @tiefpunkt
        Put together the battery pack with its battery management system. Only populated one side for now, but it looks like it's working 💪
        oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @tiefpunkt
      Ok, on to the charge controller. This little display seems to have a non standard I2C address configured, but after some fiddling around, I managed to get it to work 🎉
      oh my god twitter doesn’t include alt text from images in their API
  1. …in reply to @tiefpunkt
    Next step: adapt the firmware to that thing. The instructable this is based on used a normal LCD, but that's too bulky for the lamp. So need to adjust it to work with the OLED screen. Again a bit fiddly, the libraries are only somewhat compatible. But we got text now 😬
    oh my god twitter doesn’t include alt text from images in their API
    1. …in reply to @tiefpunkt
      After tweaking some settings it's actually charging 🥳 only a beat-up lead acid battery so I don't start any fires, and off a tiny solar panel, but I still can't quite believe this actually works 😬
      oh my god twitter doesn’t include alt text from images in their API
      1. …in reply to @tiefpunkt
        Ok so switched locations to get some real sun on that panel, and the whole thing went crazy. Did some more code magic that I don't quite understand and it sort of works. Still not sure if this is all like it should be, but hey, we're still getting some juice into the battery 🤷‍♂️
        oh my god twitter doesn’t include alt text from images in their APIoh my god twitter doesn’t include alt text from images in their API
        1. …in reply to @tiefpunkt
          The serial plotter baked into the @arduino IDE was really helpful figuring this out, but it was really hard to find some good documentation on it. Maybe I should do a small blog post about that thing 🤔
          oh my god twitter doesn’t include alt text from images in their API
          1. …in reply to @tiefpunkt
            Did a bit more testing over the past week, with a new watt meter I just got. And realized I need to fix the wiring job, and also need to make a proper test setup to compare the charger against the cheap off-the-shelf charger. More here: hackaday.io/project/178837/log/192259-solar-charger-testing-the-prototype
            oh my god twitter doesn’t include alt text from images in their API