1
完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,我在这里上传一个自定义组件来读取马克西姆DS18B20数字温度传感器的温度。它实现了1-Wire通信,以12bit分辨率读取传感器温度,同时采样多达8个传感器的数据,返回浮点、整数和字符串格式的温度。
附件归档包含组件库、组件数据表、两个演示项目和截图。在创建者3.1 SP1上对PSoC4200(创业板)和PSoC5LP(FRESOC)进行测试 问候,ODISSEY1 Z18B20SARVEX.ZIP 3.9兆字节 以上来自于百度翻译 以下为原文 Hi, Here I am uploading a custom component to read temperatures from Maxim DS18B20 digital temperature sensors. It implements 1-Wire communication to read sensor temperature at 12bit resolution , simultaneously samples data from up to 8 sensors, returns temperature in float, integer and string formats. Attached archive contains component library, component datasheet, two demo projects and screenshots. Tested on PSoC4200 (PioneerBoard) and PSoC5LP (FreeSoC) under Creator 3.1 SP1 regards, odissey1
|
|
相关推荐
13个回答
|
|
仅截图和数据表
DS18X8AAY0.PDF 530 K MNIN 01.PNG 103 K 以上来自于百度翻译 以下为原文 screenshot and datasheet only
|
|
|
|
做得好!一个复杂的文档!我喜欢这个。
鲍勃 以上来自于百度翻译 以下为原文 Well done! And a sophisticated documentation! I like that. Bob |
|
|
|
在创建者SP2中检查它,刚刚发布。考虑重新发布
必要的。 问候,Dana。 以上来自于百度翻译 以下为原文 Check it in Creator SP2, just released. Consider re-posting it if necessary. Regards, Dana. |
|
|
|
演示程序丢失了PSoC先驱板和PSoC 420板的KeS库,并给出了组件PSoCux4BuiGraseRoKIT的实例“PSoCoS4BoePrimeKITY1”,其中包含了一个错误。无法定位和定制组件“PSoCux4GuirErgIKIT”,用于“C:BuffBob 文档 CyPress项目 ONEWORE DEMO1DS18X8LIDEM.CysNNTopDeopeTopDealth.CysC'。无法在'C:程序文件(x86) CyPress 组件库KeSeSual.CyLiBKeeSeaLo.Cyrj'中找到依赖项“KeESa库”。请验证您的项目依赖性是否正确。这些更新的图书馆在哪里可以找到?我在PSoC 3中在100天内尝试了这100个项目中的一个,并在PSoC3.0中热播了它们,在PSoC3.1 SP2中没有尝试过。他们也不包含PSoC 4200板。
以上来自于百度翻译 以下为原文 The demo programs are missing the KEES librarys for the Psoc Pioneer board and the Psoc 420 board and gives the folowing errors The instance 'PSoC_4_Pioneer_Kit_1', of component PSoC_4_Pioneer_Kit, contains an error. Unable to locate and customize component 'PSoC_4_Pioneer_Kit' used in schematic 'C:UsersBobDocumentsCypress Projectsone_wireDemo1DS18x8_demo.cydsnTopDesignTopDesign.cysch'. and Unable to find dependency 'KEES_Library' at 'C:Program Files (x86)CypressComponent librariesKEES_Library.cylibKEES_Library.cyprj'. Please verify your project dependencies are correct.. Where can these updated library's be found? I have tried the one's in the 100 projects in 100 days in PSOC 3.0 and have hot rried them in the PSOC 3.0 and have not tried them in PSOC 3.1 SP2. Also they do not contain the PSOC 4200 board. |
|
|
|
@鲍勃戈
Project PrimeBurdAdMIG有一个连接图作为一个图像文件,所以你可以看到创业板的安排,而没有安装KES库。只需删除提供错误的创业板页面,它除了解释外部布线之外,别无其他。 DS18X8组件本身不使用KEES库。我将通过删除链接到这个库来更新演示项目。我不记得它是从哪里来的,我搜索了CyPress网站,但是找不到一个专门覆盖创业板绘图原语的网站。谁能帮我们找到它? 奥迪赛1 以上来自于百度翻译 以下为原文 @bobgoar, The project page PioneerBoard_IMG has wiring diagram attached as an image file, so one can see PioneerBoard arrangements without having KEES library installed. Simply delete the PioneerBoard page which gives errors , it has nothing else but explanation of external wiring. The DS18x8 component itself does not use KEES library. I will update demo project by removing link to this library. I can't remember where from it came, I searched Cypress website, but can't locate one specifically covering PioneerBoard drawing primitive. Can anyone help us to locate it? odissey1 |
|
|
|
附加的更新组件。项目已重新编译与最新的创建者3.1 SP2,以避免警告消息。在演示项目中删除了KeSemeCar库的链接,以避免错误消息。
奥迪赛1 DS18B20aSoviv.04.01.2015.Zip 4兆字节 以上来自于百度翻译 以下为原文 Attached updated component. Projects has been recompiled with latest Creator 3.1 SP2 to avoid warning messages. Links to KEES component library has been removed in demo projects to avoid error messages. odissey1 |
|
|
|
我已经成功地使用了ODISSEY1的DS18B20 1-Wire组件,并发现它具有良好的文档化和易用性。然而,我也希望使用DS18B20在一个几乎所有的UDB都需要其他功能的项目中,而不是为DS18B02组件的状态和控制寄存器留出足够的。有人知道PSoC 4 BLE兼容的1-Wire组件或库,或者BIT是GPIO,还是使用串行COMM块之一?如果没有,我会欢迎任何提示开始我自己。
我找到了下面的网站,它本身引用了Maxm数据表,说明如何使用UART作为1线主机。我想,通过使用PSoC的双向数字管脚,我不需要外部的双晶体管电路。 危险的原型/COM/2012/10/28/APP NOTE-USET-UART-TO实现的A-1 WiRE总线主机 谢谢, 唐 以上来自于百度翻译 以下为原文 I have successfully used odissey1's DS18B20 1-wire component and found it well-documented and easy to use. However, I would also like to use the DS18B20 in a project that requires nearly all of the UDBs for other functions, not leaving enough for the status and control registers of the DS18B02 component. Does anyone know of a PSoC 4 BLE compatible 1-wire component or library that either bit-bangs a GPIO or uses one of the Serial Comm Blocks? If not, I'd welcome any tips to start to roll my own. I found the website below, which itself references the Maxim datasheet on how to use a UART as a 1-wire master. I'm thinking that, by using the bidirectional digital pins of the PSoC, I wouldn't need the external two-transistor circuit shown. dangerousprototypes.com/2012/10/28/app-note-using-uart-to-implement-a-1-wire-bus-master/ Thanks, Don |
|
|
|
大学教师,
你可以使用“PaulLoVin”制作的原来的1-Wire组件。它使用埋入的GPIO引脚,不需要寄存器。 奥迪赛1 以上来自于百度翻译 以下为原文 Don, You can use original 1-wire component made by'pavloven'. It uses buried GPIO pin and no Registers required. odissey1 |
|
|
|
谢谢!我已经下载了它,并将报告我所发现的。
以上来自于百度翻译 以下为原文 Thanks! I've downloaded it and will report on what I find. |
|
|
|
DelooDysY1
使用PSoC4解码DS18B20很好的工作。 我已经做了一个小的变化,在原来的代码,以获得其输出在20x4LCD,但刚刚获得3960的LCD。 同样的帮助。提前感谢。 内恩。 Dimo1.Zip 5.4兆字节 以上来自于百度翻译 以下为原文 Dear odissey1, Nice work for decoding DS18B20 using PSOC4. I had made one small change in your original code to get its output on 20x4LCD but just getting 3960 on LCD. Kindly help on same. Thanks in advance. Nain.
|
|
|
|
内恩:你的程序有一些问题,你的输出到LCD是不正确的,被Psoc Creator标记,我把它改成了LCDApReltScript,它似乎起作用了。还有什么版本的PSOC Creator,你运行。我没有把它升级到最新版本,因为我不希望你打开它有问题。此外,Maxm芯片将提供在DEC或DEG F的答案,你只需要读取正确的内存位置。你也可以把它转换成某个数学°C x 9/5+32=°F或(°F - 32)x=5/9°C。我没有DS18B20设备来尝试它,所以我不能读取任何实际数据。还有一个char LCD库,允许你在任何端口上使用任何PIN,这样你就不必在一行中松开这么多的PIN。
DS18X8YDEMO-0.0.BuffLe01.ZIP 3.1兆字节 以上来自于百度翻译 以下为原文 Nain: You had some issues with your program and your output to the LCD was incorrect and was flagged by Psoc Creator I changed it to LCD_printString and it seems to work. Also what version of PSOC Creator are you running. I didn't up-grade it to the latest version as I didn't want you to have issues with opening it. Also the Maxim chip will provide the answer in Deg C or Deg F you just have to read the correct Memory location. You can also convert it with some math °C x 9/5 + 32 = °F or (°F - 32) x 5/9 = °C. I don't have the DS18B20 device to try it so I was not able to read any real data. Also there is a char LCD library that allows you to use any pin on any port so you don't have to loose so many pins in a row.
|
|
|
|
你好,
我使用的DS18B20传感器(只有1个传感器)与您的DS18X8组件,我遇到一些问题(无论是PSoC 3和5)。总的问题是传感器在寄生模式和正常模式下都没有通信。在寄生虫,特别是我连接GND和VDD的质量,我的PSoC和DQ到双向数字引脚(开漏驱动高,初始状态高)。我尝试了两种配置:DQ直接到PSoC的pinand Dq到PISOC,并通过4K电阻与VDD并行;两者都不工作。(实际上,PSoC 3中有15.9365个作为固定输出,但是我改变了代码,不能回到那个窗口) 我的代码流程是这样的(我把它当成伪代码): -启动DS组件(); 发送温度请求 -如果数据已准备就绪,则读取温度 -通过温度和浮点获得温度并使用Sprint F将其放入一个字符串中。 -使用PSoC的UBUART模块将数据发送到PC 输出总是-256 00! 你能帮我找出错误吗? 谢谢, 马特奥 以上来自于百度翻译 以下为原文 Hello there, I am using the DS18B20 sensor (only 1 sensor) with your ds18x8 component and I am experiencing some problems (both with psoc 3 and 5). The problem overall is that the sensor is not communicating, both in parasite and normal mode. In parasite in particular I am connecting both GND and VDD to the mass of my psoc and the DQ to a bidirectional digital pin (open drain drives high, initial state high). I tried two configurations: DQ directly to psoc's pin and Dq to pisoc and in parallel to VDD through a 4K resistor; both are not working. (actually in a case psoc 3 had 15.9365 as fixed output, but I have changed the code and can't come back to that window) My code's flow is something like this (I jot it down as pseudocode): -Start DS component(); -send temperature request -if data is ready then read temperature -get the temperature thru gettemperatureasfloat and use sprint f to put it into a string -use the USBUART module of the psoc to send the data to the PC The output is always -256.00 ! Could you help finding the error? Thanks, Matteo |
|
|
|
Matteo,该组件不是设计与DS18B20在寄生虫模式下运行。从来没有测试过,所以无法发表评论。你试过用组件提供的演示项目吗?请张贴您的项目进行复查,在ProjorExplorer窗口中选择项目名称,然后文件-GT;创建工作区束-gt;最小。演示项目使用PSoC5LP和PSoC4(4200)进行测试,但不在较老的PSoC3/PSoC5处理器上进行测试。
以上来自于百度翻译 以下为原文 Matteo, The component was not designed to operate with DS18B20 in parasite mode. Never tested, so can't comment. Did you try the demo project provided with the component? Please post your project for review, select project name in Project Explorer window, then File->Create workspace bundle->minimal. Demo project was tested using PSoC5LP and PSoC4 (4200), but not on older PSoC3 / PSoC5 processors. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2113 浏览 1 评论
1859 浏览 1 评论
3673 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1794 浏览 6 评论
1540 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
581浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
434浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
445浏览 2评论
392浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
1008浏览 2评论
小黑屋| 手机版| Archiver| 德赢Vwin官网 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-30 18:33 , Processed in 1.175681 second(s), Total 71, Slave 65 queries .
Powered by 德赢Vwin官网 网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
德赢Vwin官网 观察
版权所有 © 湖南华秋数字科技有限公司
德赢Vwin官网 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号