60991浏览
楼主: chenhanzhong

[项目] 基于3D打印+Arduino的LED时钟

  [复制链接]

娜娜宝贝  学徒

发表于 2019-10-10 19:12:27

同问DS18B20这个的库文件哪里有
回复

使用道具 举报

jzzgb  见习技师

发表于 2019-11-1 15:52:03

这创意很棒。
回复

使用道具 举报

IKON  学徒

发表于 2019-12-4 08:55:35

学习学习!
回复

使用道具 举报

1653739893  学徒 来自手机

发表于 2019-12-5 08:09:25

chenhanzhong 发表于 2019-7-23 00:08
基于3D打印+Arduino的LED时钟
成品效果


我想详细了解一下,怎么联系您
回复

使用道具 举报

DFByxdEfMCS  学徒 来自手机

发表于 2019-12-22 14:40:16

chenhanzhong 发表于 2019-7-23 00:08
基于3D打印+Arduino的LED时钟
成品效果


很漂亮,自己动手搞一个。
回复

使用道具 举报

三分  学徒

发表于 2019-12-31 14:46:39

大佬 我这怎么就一直显示 为开发板编译时出错呢
回复

使用道具 举报

kent11442017  学徒

发表于 2020-1-27 21:13:55

温度传感器库文件

DS18B20.zip

934.32 KB, 下载次数: 86

库文件

回复

使用道具 举报

DFrkl74tPSL  学徒

发表于 2020-3-14 22:20:21

这个程序在哪里修改时间
回复

使用道具 举报

ebeeb  学徒

发表于 2020-3-17 21:23:13











LED_clock:15:8: error: no matching function for call to 'DS3231::DS3231()'

DS3231 Clock; //定义时钟对象

        ^~~~~

In file included from C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_447217\LED_clock.ino:2:0:

d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:80:3: note: candidate: DS3231::DS3231(uint8_t, uint8_t)

   DS3231(uint8_t data_pin, uint8_t sclk_pin);

   ^~~~~~

d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:80:3: note:   candidate expects 2 arguments, 0 provided

d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:77:7: note: candidate: constexpr DS3231::DS3231(const DS3231&)

class DS3231

       ^~~~~~

d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:77:7: note:   candidate expects 1 argument, 0 provided

d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:77:7: note: candidate: constexpr DS3231::DS3231(DS3231&&)

d:\Users\S7\Documents\Arduino\libraries\DS3231/DS3231.h:77:7: note:   candidate expects 1 argument, 0 provided

C:\Users\S7\AppData\Local\Temp\arduino_modified_sketch_447217\LED_clock.ino: In function 'void ReadDS3231()':

LED_clock:108:20: error: 'class DS3231' has no member named 'getSecond'

   second_now=Clock.getSecond();

                    ^~~~~~~~~

LED_clock:109:20: error: 'class DS3231' has no member named 'getMinute'; did you mean 'getTime'?

   minute_now=Clock.getMinute();

                    ^~~~~~~~~

                    getTime

LED_clock:110:18: error: 'class DS3231' has no member named 'getHour'

   hour_now=Clock.getHour(h12, PM);

                  ^~~~~~~

LED_clock:111:18: error: 'class DS3231' has no member named 'getDate'; did you mean 'setDate'?

   date_now=Clock.getDate();

                  ^~~~~~~

                  setDate

LED_clock:112:19: error: 'class DS3231' has no member named 'getMonth'; did you mean 'getMonthStr'?

   month_now=Clock.getMonth(Century);

                   ^~~~~~~~

                   getMonthStr

LED_clock:113:18: error: 'class DS3231' has no member named 'getYear'; did you mean 'getTemp'?

   year_now=Clock.getYear();

                  ^~~~~~~

                  getTemp

LED_clock:116:20: error: 'class DS3231' has no member named 'getDoW'; did you mean 'setDOW'?

   week_now = Clock.getDoW();//获取星期

                    ^~~~~~

                    setDOW

exit status 1
no matching function for call to 'DS3231::DS3231()'


请问这个是为什么?
回复

使用道具 举报

chenhanzhong  初级技匠
 楼主|

发表于 2020-3-18 10:02:20

DFrkl74tPSL 发表于 2020-3-14 22:20
这个程序在哪里修改时间

这个程序只是获取时钟模块的时间,所以修改时间要用时钟模块的库修改。
回复

使用道具 举报

ebeeb  学徒

发表于 2020-3-18 17:49:06

chenhanzhong 发表于 2020-3-18 10:02
这个程序只是获取时钟模块的时间,所以修改时间要用时钟模块的库修改。 ...

老师能帮忙看看51楼问题怎么弄吗?
另外,这个程序如果能用nodemcu WIFI对时更好,还能填加显示天气等功能,期待
回复

使用道具 举报

chenhanzhong  初级技匠
 楼主|

发表于 2020-3-19 11:11:13

ebeeb 发表于 2020-3-17 21:23
LED_clock:15:8: error: no matching function for call to 'DS3231::DS3231()'

DS3231 Clock; ...

可能是时钟库没导入成功。你用的是ds3231模块吗?
回复

使用道具 举报

ebeeb  学徒

发表于 2020-3-19 17:42:28

chenhanzhong 发表于 2020-3-19 11:11
可能是时钟库没导入成功。你用的是ds3231模块吗?

我是用你贴子里下载的库哦,晚上我再试试从arduino库程序里面下载试试,谢谢
回复

使用道具 举报

ebeeb  学徒

发表于 2020-3-19 19:32:43

chenhanzhong 发表于 2020-3-19 11:11
可能是时钟库没导入成功。你用的是ds3231模块吗?

我把从贴子里的DS3231库删除了,从arduino“管理库”中下载,然后编译就成功了~~
回复

使用道具 举报

代码应该敲的东  中级技师

发表于 2020-3-20 10:47:51

模型制作的真精美啊
回复

使用道具 举报

dujice001  学徒

发表于 2020-3-23 18:06:59

楼主你好,看了你的这个作品自己也想做一个,我没有接触过arduio,打开你的程序编译出现fatal error: OneWire.h: No such file or directory  #include <OneWire.h> 这个错误是怎么了,我从GITHUB上把OneWire这个库下载了在ds18b20库和ds3231库文件文件夹下分别放一份,又报 No such file or directory #include "util/OneWire_direct_regtype.h" ,楼主帮忙看看,是哪里的问题,谢谢你了
回复

使用道具 举报

chenhanzhong  初级技匠
 楼主|

发表于 2020-3-24 09:50:41

dujice001 发表于 2020-3-23 18:06
楼主你好,看了你的这个作品自己也想做一个,我没有接触过arduio,打开你的程序编译出现fatal error: OneWir ...

可能是IDE的版本问题,也有可能是库的问题。先换最新版本的arduino ide试试,库文件也可以在软件里面导入的。
回复

使用道具 举报

dujice001  学徒

发表于 2020-3-26 22:02:02

chenhanzhong 发表于 2020-3-24 09:50
可能是IDE的版本问题,也有可能是库的问题。先换最新版本的arduino ide试试,库文件也可以在软件里面导入 ...

谢谢楼主,下载了最新的IDE下载成功了,提示可能内存偏低。请问DS3231的sad和scl和arduino怎么接?
回复

使用道具 举报

dujice001  学徒

发表于 2020-3-26 22:09:09

dujice001 发表于 2020-3-26 22:02
谢谢楼主,下载了最新的IDE下载成功了,提示可能内存偏低。请问DS3231的sad和scl和arduino怎么接? ...

找到了,谢谢楼主
回复

使用道具 举报

桃花开了i  见习技师

发表于 2020-4-5 00:27:34

哪位大神告知一下,这是为何?
202004058600..png
回复

使用道具 举报

YO  学徒

发表于 2020-4-16 14:37:58

非常不错,太强了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

为本项目制作心愿单
购买心愿单
心愿单 编辑
[[wsData.name]]

硬件清单

  • [[d.name]]
btnicon
我也要做!
点击进入购买页面
上海智位机器人股份有限公司 沪ICP备09038501号-4

© 2013-2024 Comsenz Inc. Powered by Discuz! X3.4 Licensed

mail