完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好。
我是PSoC家族的新用户,我在一个小的硬件节点尝试我的运气,用于温度和运动监控。我想知道是否有可能将传感器(DS18B)从PSoC本身驱动到电路板上,如果是的话,如何去做它,或者我能在哪里读到它。 谢谢您。 以上来自于百度翻译 以下为原文 Hi. I am a new user of the PSoC family and i'm trying my luck at a small hardware node for temperature and motion monitoring. I was wondering if it is possible to drive the sensor (a DS18B) from the psoc itself onto the breadboard and if so how to do it or where I can read about it. Thank you. |
|
相关推荐
14个回答
|
|
你可以使用来自USB线路的5V来为传感器和PSoC供电(假设你在5V运行PSoC)。取决于你当前的系统吸引,我认为USB 2的限制是500毫安?
以上来自于百度翻译 以下为原文 You could use the 5V from the USB line to power the sensor and the PSoC (assuming you're running the PSoC at 5V). Depends on your current draw of your system though, I think the limit for USB 2.0 is 500mA? |
|
|
|
wrsffwrss 发表于 2018-10-19 06:29 普格洛佩斯 你可以在这里找到一个演示项目和说明: 组件读取DS18B20数字温度传感器 DS18的当前绘制是低的,因此您可以直接从PSoC pin设置为高。 ODISSEY1 以上来自于百度翻译 以下为原文 pgrlopes, You can find a demo project and explanation here: Component to read DS18B20 digital temperature sensors The current draw by DS18 is low, so you can source it directly from PSoC pin set to HIGH. /odissey1 |
|
|
|
你好。是的,这正是我正在使用的,但因为这是我第一次使用这个平台,我想我不了解一些基本的东西。当你说你可以直接从PSoC中导出它时,这意味着我只需要将PSDA上的VDDA连接到传感器上?或者我必须把VDAC拖动到原理图上,把它钉起来,然后把它从那里引线吗? 谢谢你的回答。你介意我让你澄清一些与那个传感器接口有关的疑虑吗? 以上来自于百度翻译 以下为原文 Hello. Yes that's exactly what I am using but because this is my first time ever using this platform I guess I don't understand some basic things. When you say you can source it directly from the PSoC does that mean that I just have to wire the vdda from the psoc to the sensor? Or do I have to drag a VDAC to the schematic, pin it and wire it from there? Thank you for your answer. Would you mind if I pm you to clarify some other doubts related to that sensor interface? |
|
|
|
wrsffwrss 发表于 2018-10-19 06:29 是的,我的问题其实更简单,因为我不知道如何使用那个USB线。我要用什么针? 以上来自于百度翻译 以下为原文 Yeah my question is a actually even more simple as I don't know how to use that u*** line. What pin do I have to wire? |
|
|
|
普格洛佩斯 我建议您先在上面的链接中读取DS18组件数据表,它描述了DS18B20与PSoC的连接。由DS18绘制的电流非常小(小于4mA的峰值),您可以在原型KIT-059上从Vddd汲取功率,或者甚至从任何引脚,将其设置为高数字输出。DS18是一个数字传感器-不需要任何ADC/DAC,并且自定义组件(上文)为您做所有的读取/处理。 ODISSEY1 以上来自于百度翻译 以下为原文 pgrlopes, I advise you to first read the DS18 component datasheet in the link above, it describes connection of the DS18B20 to the PSoC. The current drawn by DS18 is very small (<4ma peak), you can draw power either from Vddd on the prototyping KIT-059, or even from any pin, which is set to digital output HIGH. The DS18 is a digital sensor - no need for any ADC/DAC, and the custom component (above) does all reading/processing for you. /odissey1 |
|
|
|
nvwuwy 发表于 2018-10-19 07:10 我明白这一点。我特别选择了数字而不需要ADC。我只是不明白如何才能消除这种紧张。我只是把VDDD引脚连接到传感器上吗?无需在图表中创建电压源吗?如果是这样,它是如何调节的? 再次感谢您。 以上来自于百度翻译 以下为原文 I understand that. I chose it specifically for being digital and not needing an ADC. I just don't understand how exactly to draw that tension. Do I just wire the vddd pin to the sensor? no need to create a voltage source in the diagram? If so how is it regulated? Thank you once again. |
|
|
|
asfszczgv 发表于 2018-10-19 07:22 如果使用KIT-059,可以从DSD(红色箭头)绘制DS18的电源。DS18B20可以接受3.0~5.5V,所有的“调节”都在传感器内部完成。 查看示意图,读取数据表并运行示例项目。要学会游泳,你得……开始游泳。 以上来自于百度翻译 以下为原文 If using KIT-059 you can draw the power for DS18 from e.g. the Vdd (red arrow). The DS18B20 can accept 3.0-5.5V, all "regulation" is done inside the sensor. look at the schematic, read the datasheet and run the example project. To learn how to swim you have to eh ...start swimming. |
|
|
|
nvwuwy 发表于 2018-10-19 07:37 嗯,是的,所以我问的愚蠢问题,只是试图理解PSoC和它是如何工作的。 以上来自于百度翻译 以下为原文 Well yeah hence the stupid questions i'm asking, just trying to understand the PSoC and how it works. |
|
|
|
附件是为KIT-059重新编译的演示项目。 DS18X8YDEMO1-000 0.CYWRK.SARVEVE01.ZIP 687.1 K 以上来自于百度翻译 以下为原文 Attached is a demo project recompiled for KIT-059. |
|
|
|
感谢更新的例子,但IM仍然有困难,使其工作,因为数据就绪标志总是在1,我不太清楚为什么。它扰乱了主循环的逻辑,它只会在IF子句中卡住,因为计时器标志永远不会改变。 以上来自于百度翻译 以下为原文 Thanks for the updated example but im still having trouble getting it to work because the data ready flag is always at 1 and I'm not quite sure why. It messes up the logic from the main loop and it just gets stuck in the if clauses because the timer flag never gets changed. |
|
|
|
asfszczgv 发表于 2018-10-19 08:11 我会在周末检查。 以上来自于百度翻译 以下为原文 I will check it on weekends. |
|
|
|
谢谢您。这是绝对没有在布局IM使用与面包板,因为它的工作与ARDUNO罚款,也许一些相关的PSoC 5 LP,因为这是在一个不同的版本做的? 再次感谢你投入时间帮助我。 以上来自于百度翻译 以下为原文 Thank you. It's definitely nothing on the layout im using with the breadboard as it works fine with an arduino, maybe something related to the psoc 5 lp as this was done in a different version? Once again thanks for putting in your time to help me out. |
|
|
|
asfszczgv 发表于 2018-10-19 08:50 请在下面找到更新的工作项目代码(对DS18X8组件没有更改)。使用CyKIT-059进行测试。我清理了设计资源中的时钟,它们期待着UB-UART正在出现(来自旧设计的遗留物)。这个项目使用简单的UART,因此时钟也必须改变。 DS18X8YDEMO1-000 0.CYWRK.SARVEVE02.ZIP 684.8 K 以上来自于百度翻译 以下为原文 Please find updated working project code below (no changes to the DS18x8 component). Tested using CYKIT-059. I cleaned up clocks in Design Resources, which were expecting USB-UART is being present (a leftover from the old design). This project uses simple UART, thus clocks has to be changed also. |
|
|
|
nvwuwy 发表于 2018-10-19 09:00 再次感谢你,但它仍然在这里不工作。我所得到的只是计数器,没有温度值。 我仍然没有得到总线存在,当我调用函数发送温度请求时,它返回0。我需要改变时钟值中的任何东西吗? 编辑:不要介意这些。如果你碰巧是一个像我这样的白痴,你实际上不需要把TX从KiTrg和PSoC本身连接起来,它们已经连接了。我把我的连接短路到传感器,因此不能读取任何东西。现在工作很好,非常感谢你的时间。 以上来自于百度翻译 以下为原文 Thank you once again, but it is still not working here. All I get is the counter, there is nothing on the temperature value. I'm still not getting a bus presence, when I call the function to send a temperature request it returns 0. Do I need to change anything in the clock value? EDIT: nevermind any of this. If you happen to be an idiot like me you don't actually need to connect both tx's from the kitprog and the psoc itself, they are already connected. I was shorting my connection to the sensor hence not being able to read anything. It is working fine now, thank you so much for your time. |
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2110 浏览 1 评论
1858 浏览 1 评论
3673 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1791 浏览 6 评论
1540 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
575浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
428浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
440浏览 2评论
390浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
923浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 05:51 , Processed in 1.276195 second(s), Total 107, Slave 90 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号