我们使用一些必要的Cookie来确保网站正常运行。

我们使用可选的 Cookie,具体详情请参阅我们的Cookie政策,用于记住您的设置并了解您如何使用我们的网站。

变色LED提醒你清理猫砂盆

你家有使用猫砂盆的猫咪,但有时会忘记清理吗?如果是这样,你可能会对曼努埃尔·伯纳德的项目感兴趣,曼努埃尔·伯纳德这个基于树莓派的项目,使用Rust编程语言,打造了一个带有LED灯的猫砂盆提醒装置。

The image showcases a small electronic setup with a series of green LEDs that are illuminated. These LEDs are connected to a circuit board, which in turn is linked to a breadboard via red and black jumper wires. The focal point is a strip of green LEDs, brightly lit. It is attached to a small circuit board containing visible components and connectors. Two jumper wires—one red and one black—connect the circuit board to a white breadboard. The breadboard itself doesn’t have any other visible components. In the background, there’s a curtain with white and brown abstract patterns.

交通灯系统

想法很简单:根据上一次清理猫砂盆以来的时间长短,LED灯带会改变颜色。刚清理完时显示浅绿色,表示一切新鲜;随着气味变重,颜色变为深绿色;接着是橙色;最后变成红色——这时你应该已经闻到异味了。但作为宠物主人,我们往往对很多气味都“鼻盲”。非常应该已经注意到异味。但当我们真正感到困扰时,树莓派会促使LED开始闪烁红色,以引起你的注意。被一台小小的绿色电脑“羞辱式”提醒,应该能激发你立刻打扫的冲动,让你的猫咪拥有一个干净清爽的如厕空间。

静止状态下的定制LED灯带

The image you provided shows a black circuit board with eight white LED lights mounted in a row. Each LED is encased in a square, white plastic housing. The circuit board has silver soldering points and connections visible. Numbers from 0 to 7 are printed on the board below each LED to indicate their positions. Unfortunately, the text and symbols at the left end of the circuit board are not clearly visible in the image. Overall, it appears to be a setup for controlling LED lights using a Raspberry Pi or similar hardware.
树莓派(任何型号均可,曼努埃尔用的是他手头的一块

硬件

  • Pi 3 Model B+)WS281X LED灯带(他使用的是直接连接到树莓派GPIO引脚的定制灯带)
  • 一个按钮
  • 一个230Ω电阻
  • 代码分为三个部分:检测按钮按下、改变LED颜色,以及实现提醒逻辑。要重置猫砂盆提醒,只需按一下按钮即可。

曼努埃尔升级后的树莓派提醒装置堆叠,随时可部署于家中各处

LED Stack in Acrylic Casing:
The image showcases a stack of electronic boards encased in a clear acrylic frame.
Each board features multiple green LEDs that emit a bright green glow.
Black wires are visible at the base of the structure.
The overall mood is modern and technological due to the illuminated LEDs and electronic components.
Missing Information:
Unfortunately, the OCR (optical character recognition) did not capture any specific text from the image.
Contextual Interpretation:
The stacked LED boards appear to be part of a project or device, possibly related to Raspberry Pi or other embedded systems.
The purpose of this LED stack remains unclear without additional context.
所有代码均可在

GitHub上找到在 GitHub 上,您可以在[2]曼努埃尔的网站[3]上找到关于构建每个部分的更详细说明。他还详细介绍了[4]该项目最近的一次升级[5],在其中他将猫砂提醒用的树莓派扩展为一个完整的网络。这使他能够将设备遍布整个房屋,以至于忘记每天清理猫砂的任务现在几乎不可能发生。曼努埃尔的网站. 他还详细说明了最近对该项目的升级他将猫砂盆提醒用的树莓派扩展成一个完整的网络。这使他能够将这些设备遍布整个房子,以至于几乎不可能再忘记每天清理猫砂盆的责任。

1条评论

Jim avatar

很有趣。我多年前曾建过一个封闭式猫砂箱,放在车库里,并通过一条隧道与房子相连,还用一个4瓦的夜灯照明。那是16年前的事了,但今天我会使用距离传感器来检测并计算猫砂箱距离的变化,当“访问”次数达到一定数量后就发出提醒。我会开发一个网页应用,输入猫砂箱的“满度”情况,并将其与计数关联,学习到多少次访问后就通过电子邮件或短信发送警报。

评论已关闭