• 1 Post
  • 677 Comments
Joined 2 years ago
cake
Cake day: March 28th, 2024

help-circle

  • Because it adds something that is not essential, so it is not “simple”. If package A depends on package B with an incompatible license then it needs to provide a means to specify alternate packages. Arch follows upstream with best effort possible, so changing dependency could be seen as breaking that. However, pacman already supports choosing alternate packages during installation so technically they could add it, but how many percentage of users are needing that convenience? Not to mention the arch team will need to maintain said list of alternatives for every dependencies. If you want, you can add it yourself via pacman hook to prevent you from accidentally installing non free software, or write a wrapper for pacman, or use other distro like Parabola.








  • Read about multiplexing. There are various ways to achieve it, the easiest way is to just arrange it on a grid. Let’s say 5×5. So with 10 pins, you can address 25 doors. For the lock, the easiest would be a solenoid / magnetic lock. You can also use a motor, but that would require a more complex addressing to reverse the rotation for opening and closing

    Edit for more clarity about the simple method: Think of every door as a solenoid connected to GND. You only need VCC to open it. You can use relay module to switch the row and column to connect the VCC of the solenoid. But you need to wire every solenoid in “AND” switch configuration so it only turns on if and only if both row and column switch are closed



  • There is a lot to unpack here. But my suggestion is “cheap” esp32 devboard. At least where I live, going with older / raw MCU (not a “devboard”) will ended up more expensive. I’ll give an example. The STM32F103C8T6 “Blue Pill” cost the same as ESP32 DOIT Devkit (around USD 3). BUT the bare MCU of both cost around 1-5 cent more due to the economy of scale. So unless you plan to design a custom board in bulk/size constraint, buying the devkit and making a daughter board can ended up cheaper