Arduino 外接 DS3132 读数为2165/165/165问题解决
即使SCL/SDA不接线,DS3132也会返回,这个值为2165/165/165
因此问题的来源为接线不牢靠。
接线牢靠的标准:RTC模块(ZS-042)上的PWR灯应该常亮,并且亮度很大(我一开始接线,PWR亮度小,而且闪烁)
RTC 的 SCL 接 Arduino 的 A4, SDA 接 Arduino的A5.
The 165 indicates that the data line for the RTC (SDA) is stuck at one which usually indicates a wiring error. I notice in the photos that you do not have one or two of the jumper wire's pins pushed all the way into the header so that they may not be making good contact.
There is one small difference in the two sketches as far as the RTC is concerned. In the datalogger code, you call Wire.begin() in setup() but in the standalone RTC code you don't. I would have thought that the standalone RTC sketch would have failed without the wire.begin(). Anyway, try removing the Wire.begin() from the datalogger.
Pete
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具