Skip Navigation
NSFW
Biggest Ravencroft
  • The purestmost :)

  • What programming language ruby, python og javascript?
  • C#. Or Python if you must. Don't use Javascript.

  • Roses are red, violets are blue, everyone is using IPv6, why aren't you?
  • I would like to use IPv6 but google and MS are having a dick waving contest with competing implementations, as I understand it. So fuck it.

  • Man who calls women "females" hopes to one day be allowed within 500 meters of one
  • Back on reddit I remember getting downvoted a lot for that time I suggested a guy referring to women as "females" was a red flag. Glad I'm not alone in thinking that.

  • Anon thinks about Google
  • Google search is still better than bing, somehow. Gmail is good for signing up to stuff I don't want mailing my protonmail. Google maps is still genuinely useful. Youtube is, for now, still better than any alternative I know about. I don't see what's wrong with Pixel phones.

    Don't get me wrong, google is evil now and I don't like it. But I don't know any better alternatives for those things. Mm, except gmail, I could replace that I guess but it's such a pain.

  • What is the right way to have your toilet paper?
  • Whichever you prefer. There is no correct way.

  • Can't get that metallic taste out of my mouth
  • And there's no place like home.

  • Hyperbor(ule)ean Hold 'em
  • Wait, does this mean "balatro" means something?

    Edit: Google says it was ancient Roman for a professional jester or buffoon. Fitting name.

  • Texas Republican vows to pass bill on Ten Commandments in public schools
  • When they aren't victimising each other, that is. Don't forget, the "persecution" the pilgrims were fleeing was not being allowed to persecute each other as hard as they wanted to.

  • Me trying new weapons without respeccing
  • Yes! Also I believe the guy on the left is half-swording, wherein you grip the blade with one hand to help with accuracy and thrust power.

  • Bravely Default 3DS
  • Let us know how you go :)

  • Bravely Default 3DS
  • That's what I'm talking about, yeah. And TBH it's actually closer to the end than the middle. Also I didn't find it that big of a deal, but your mileage may vary. I hope you can get past what a bunch of others seem to hate because the payoff is so good.

  • Dune Awakening Will Go to Drastic Lengths to Make its Sandstorms Matter
  • Hm, okay. I'll look into it slightly more than not at all, when it comes out. :P

  • Dune Awakening Will Go to Drastic Lengths to Make its Sandstorms Matter
  • Huge emphasis on pvp of all kinds in this article. Think I'm gonna give this one a miss.

  • The Next Characters to Enter the Public Domain
  • In any case it's not like after it expires you could not trade on being the original. It's not like others could then come along and claim to have been the original creator. And if you kept making works those would each get their own period of copyright.

  • "Getting paid more money is for fools"
  • $10,000-$20,000 - taxed at 20%

    Goll durnit, I know 10,000-20,000=-10,000! How I supposed to pay 20% tax on -$10,000?? Do they pay ME money?? Clearly everythin you said is BULLshit!

    (This is a joke just to be clear :P)

  • The Next Characters to Enter the Public Domain
  • I dunno what the patent duration is, but copyright should probably just be 50 years max IMO. If you can't make bank in that time without changing the idea up (and thus getting 50 years on the new version) you don't deserve it.

  • Up is an illusion in space
  • I hate this take. It doesn't look stupid at all, it looks cool.

  • Bravely Default 3DS
  • There is a hurdle late in the game which you'll know when you hit it, just in case you somehow haven't heard about it. Do try to get past it though, the payoff is worth it.

  • Pter
  • See also "ornitho" (relating to birds) and "pter" (wing) creating the term ornithopter for a heavier than air vehicle that flies by flapping its wings. Famously seen in Dune, but I think also back in the day people actually tried to make them, long before aircraft existed.

  • I built a smart mailbox

    cross-posted from: https://lemmy.world/post/15565311

    > It was a long running project, but I finally did it. I built what I'm calling a smart mailbox that communicates the presence of mail locally with Home Assistant via ESPHome. > > Parts: > - Pine plank roughly the width of my mailbox > - Treated pine plank for mounting > - Thin sheet of perspex or similar transparent plastic > - 2x VCNL4010 proximity sensor > - ESP32 dev board with antenna > - Bigger antenna > - Prototype board > - 2.54mm pitch JST connectors > - 2.54mm pitch pin header sockets > - 18650 battery > - 18650 Type-C charging module > - Battery holder > - 2x 5V 1.5W solar panels > - MCP1700-3302E LDO regulator > - 100uF electrolytic capacitor > - 100nF ceramic capacitor > - Resistors... I think I ended up using a 1 MOhm and a 330 kOhm > - Weatherproof junction box > - Nylon screw spacers > - Cable glands > - 12mm waterproof button > - Various cables and wires > - Paint and polyurethane spray to weatherproof the wood > > Tools: > - Soldering iron > - Router for cutting grooves in wood > - Drill and hole saw bits > - Various files and sandpaper > > For a start, I followed this guide to get me started on the power delivery portion, but I ended up using much higher valued resistors since I found that I was losing more battery charge through the voltage divider than I was from the ESP32 or proximity sensors. > > Once I'd tested the concept with the parts just laying in a jumble on the table, it was time to get to work. > > I started by cutting a plank of pine to fit my mailbox, chamfering the ends to make space for the metal joins. I routed out some spaces for the tops of the bolts that hold the mailbox down. > > ! > > Measured out where the sensors should go, along with a surrounding space to screw down some little perspex windows to cover them. The idea I wanted was for the mail to be able to slide over the sensors without getting caught on them, as well as to protect them from dust. > > ! > > Routed out the dents and cleaned them up with a chisel and sandpaper. Cut the perspex to shape for a test fit. > > ! > > On the other side, I routed out a notch for the cable to access the sensors. > > ! > > I had originally planned to just solder wires into the sensors, but then I realised JST connectors would fit perfectly into the sensors. This meant I had to widen the holes somewhat, which I did with a small chisel and file. > > ! > > I got a bit lazy with making screw holes to hold down the perspex, so they're not in as neat a place as I'd like. If I did this again I'd measure properly for their placement. Still, with countersinking they hold down the perspex well and nothing sticks up for mail to get caught on. > > ! > > I also got started on making a housing for the solar panels. I used the router to carve out a 1-2mm area for them to sit in, and a much deeper ditch linking the two terminals, which you'll see in a later picture. For now, here's how they look sitting in it. > > ! > ! > > Wiring up the prototype board was next. Again, see the article I linked above for how this works. I used pin headers to allow the ESP32 dev board to be slotted in and out, just in case I ever needed to take it out for replacement or reprogramming. Also the JSTs on the prototype board are for connecting the battery (top left), connecting the solar panels (bottom left), providing power to the sensors (bottom right) and clock and data lines for the sensors (top right). Since the sensors are both using the same I2C bus address and cannot be configured otherwise, I had to run two clock and data lines, but if I'd found sensors that could have different addresses I could have just used one of each. I didn't take a photo of the board at this stage, but I later added another header to connect a button to reset the ESP32 from the outside. > > ! > > I also made the data and power cable for the sensor board. > > ! > > The solar panel housing and 'sensor plate' were both painted and treated with polyurethane spray to protect them from rain and humidity. > > ! > ! > > I drilled holes in the weatherproof box to fix the cable glands and the weatherproof button. In the case of the solar panel wire, I had opted to buy speaker wire since I figured it would be easier to run in the channel between the two solar panels, being flat. But that also made it not really fit the cable glands that great. I ended up stripping some of the outer sheath off some 2 wire power cable I had, and wrapping that around the part of the speaker wire that gets clamped in the glands, just to make a reasonable seal. These all were on the side I decided I would mount at the bottom, so water wouldn't be able to easily fall into the box. > > ! > > Final test fit. I later used epoxy glue to glue down the nylon headers and the battery holder inside the box. > > ! > > The mailbox itself also needed a hole in the bottom for the sensor cable to come out. After drilling a hole and filing it into a square shape, I cut some rubber grommet strip to size and fitted it around the hole, with some marine silicone adhesive to protect the sharp metal edges from water and to hold the grommet strip in place. > > ! > > I'd drilled some holes in the brick wall my mailbox sits upon for masonry anchors, and this piece of treated pine got the last of my polyurethane spray, just in case. > > ! > > Using a two pieces of the leftover perspex glued together, I made an internal mount for the antenna, figuring it would be best to not have the thing either floating around freely inside the box or sticking out the side where people could potentially break it off. > > ! > ! > > Finally, after weeks of off and on work, it was ready to install. > > ! > ! > > The ESPHome coding used my VCNL4010 component, and if anyone is interested I can share it but it's kinda a large file.

    10
    I built a smart mailbox

    It was a long running project, but I finally did it. I built what I'm calling a smart mailbox that communicates the presence of mail locally with Home Assistant via ESPHome.

    Parts:

    Tools:

    • Soldering iron
    • Router for cutting grooves in wood
    • Drill and hole saw bits
    • Various files and sandpaper

    For a start, I followed this guide to get me started on the power delivery portion, but I ended up using much higher valued resistors since I found that I was losing more battery charge through the voltage divider than I was from the ESP32 or proximity sensors.

    Once I'd tested the concept with the parts just laying in a jumble on the table, it was time to get to work.

    I started by cutting a plank of pine to fit my mailbox, chamfering the ends to make space for the metal joins. I routed out some spaces for the tops of the bolts that hold the mailbox down.

    !

    Measured out where the sensors should go, along with a surrounding space to screw down some little perspex windows to cover them. The idea I wanted was for the mail to be able to slide over the sensors without getting caught on them, as well as to protect them from dust.

    !

    Routed out the dents and cleaned them up with a chisel and sandpaper. Cut the perspex to shape for a test fit.

    !

    On the other side, I routed out a notch for the cable to access the sensors.

    !

    I had originally planned to just solder wires into the sensors, but then I realised JST connectors would fit perfectly into the sensors. This meant I had to widen the holes somewhat, which I did with a small chisel and file.

    !

    I got a bit lazy with making screw holes to hold down the perspex, so they're not in as neat a place as I'd like. If I did this again I'd measure properly for their placement. Still, with countersinking they hold down the perspex well and nothing sticks up for mail to get caught on.

    !

    I also got started on making a housing for the solar panels. I used the router to carve out a 1-2mm area for them to sit in, and a much deeper ditch linking the two terminals, which you'll see in a later picture. For now, here's how they look sitting in it.

    ! !

    Wiring up the prototype board was next. Again, see the article I linked above for how this works. I used pin headers to allow the ESP32 dev board to be slotted in and out, just in case I ever needed to take it out for replacement or reprogramming. Also the JSTs on the prototype board are for connecting the battery (top left), connecting the solar panels (bottom left), providing power to the sensors (bottom right) and clock and data lines for the sensors (top right). Since the sensors are both using the same I2C bus address and cannot be configured otherwise, I had to run two clock and data lines, but if I'd found sensors that could have different addresses I could have just used one of each. I didn't take a photo of the board at this stage, but I later added another header to connect a button to reset the ESP32 from the outside.

    !

    I also made the data and power cable for the sensor board.

    !

    The solar panel housing and 'sensor plate' were both painted and treated with polyurethane spray to protect them from rain and humidity.

    ! !

    And the panels themselves were sealed in with a tonne of silicone. It made a real mess, but I'm confident no water is going to get in there.

    ! !

    I drilled holes in the weatherproof box to fix the cable glands and the weatherproof button. In the case of the solar panel wire, I had opted to buy speaker wire since I figured it would be easier to run in the channel between the two solar panels, being flat. But that also made it not really fit the cable glands that great. I ended up stripping some of the outer sheath off some 2 wire power cable I had, and wrapping that around the part of the speaker wire that gets clamped in the glands, just to make a reasonable seal. These all were on the side I decided I would mount at the bottom, so water wouldn't be able to easily fall into the box.

    !

    Final test fit. I later used epoxy glue to glue down the nylon headers and the battery holder inside the box. This means the prototype board can also be easily removed, as can the ESP32 dev board and the battery, but the battery holder cannot. Let's hope I never have to get that thing out.

    !

    The mailbox itself also needed a hole in the bottom for the sensor cable to come out. After drilling a hole and filing it into a square shape, I cut some rubber grommet strip to size and fitted it around the hole, with some marine silicone adhesive to protect the sharp metal edges from water and to hold the grommet strip in place.

    !

    I'd drilled some holes in the brick wall my mailbox sits upon for masonry anchors, and this piece of treated pine got the last of my polyurethane spray, just in case.

    !

    Using a two pieces of the leftover perspex glued together, I made an internal mount for the antenna, figuring it would be best to not have the thing either floating around freely inside the box or sticking out the side where people could potentially break it off.

    ! !

    Finally, after weeks of off and on work, it was ready to install.

    ! !

    The ESPHome coding used my VCNL4010 component, and if anyone is interested I can share it but it's kinda a large file. I had originally planned to just use Arduino IDE and talk directly to MQTT, in order to keep things simple and just use the Adafruit VCNL4010 library, but in the end elected to use ESPHome. For, among other things, its support for over the air updates.

    34
    VCNL4010 proximity sensor component for ESPHome
    github.com GitHub - dixonte/esphome-vcnl4010: VCNL4010 component for ESPHome

    VCNL4010 component for ESPHome. Contribute to dixonte/esphome-vcnl4010 development by creating an account on GitHub.

    GitHub - dixonte/esphome-vcnl4010: VCNL4010 component for ESPHome

    cross-posted from: https://lemmy.world/post/12979137

    > I made an ESPHome external component for the VCNL4010 proximity sensor. > > Hopefully it's of use to someone.

    0
    VCNL4010 proximity sensor component for ESPHome
    github.com GitHub - dixonte/esphome-vcnl4010: VCNL4010 component for ESPHome

    VCNL4010 component for ESPHome. Contribute to dixonte/esphome-vcnl4010 development by creating an account on GitHub.

    GitHub - dixonte/esphome-vcnl4010: VCNL4010 component for ESPHome

    I made an ESPHome external component for the VCNL4010 proximity sensor.

    Hopefully it's of use to someone.

    1
    Heavybell Heavybell @lemmy.world
    Posts 6
    Comments 634