You are here

CY8C4247-LQI-483 to DS18B20 | Cypress Semiconductor

CY8C4247-LQI-483 to DS18B20

Summary: 15 Replies, Latest post by Naga Radhika Kasu on 10 Nov 2016 04:25 AM PST
Verified Answers: 2
Last post
Log in to post new comments.
Naga Radhika Kasu's picture
User
8 posts

Hi ,

          I'm using PsoC 4.0 BLE and CY8C4247-LQI-483 ,I'm connectiong the sensor DS18B20 water proof sensor,I'm using the code and screenshots below.I'm getting the build succeeded and able to program,but not able to see the temperature output on UART.I have made the changes in UART (115200,57200) but still I can't find the output.

          In the code the top design is for CY8C4245AXI-483 ,I have made the device selector to CY8C4247-LQI-483,can able to build and program the code.I'm getting the warning of  Unable to locate and customize component 'PSoC_4_Pioneer_Kit' used in schematic.Can I know why I'm not able to get the data on UART.Can I know the wiring too?Thanks in advance.

Regards,

Radhika.

 

user_242978793's picture
User
1029 posts

You are missing the library the Kees library.

Naga Radhika Kasu's picture
User
8 posts

Hi Bob,

              Thanks for the reply,I'm very new to Cypress.Please help me.What are the library files that I'm missing?? and where Can I download ??Can I know and where Can I find the Kees library?? I have followed the link 

http://www.cypress.com/forum/psoc-community-components/component-read-ds...

Regards,

Radhika

user_242978793's picture
User
1029 posts

I have a program that is working but I don't have a DS18B20 device I have ordered one and it will be here on 11/11/2016.  Once I get this I will check the program and them send it to you.  I also have the correct Kees library.

user_49271930's picture
User
416 posts

You missed something
No   OneWire_SendTemperatureRequest ();
must be a timer or delay (> 700mSec):
check this:

if (1)          // DS18 completed temperature measurement - begin read dataa
        {   
            OneWire_ReadTemperature();  // parse sensor data
            ReportTemperature();        //report Temperaure
            CyDelay(750);
             OneWire_SendTemperatureRequest(); // 
        }    

user_342122993's picture
User
578 posts

Use updated (no KEES library link) archive

user_49271930's picture
User
416 posts

If the lib link is not necessary - it is necessary to remove:
Project---> Dependencies..

 

Attachments: 
Naga Radhika Kasu's picture
User
8 posts

Hi,

       Thanks pavloven,I'm able to get the code build and program.I have removed the kees library.As I said earlier ,I'm using CY8C4247LQI-BL483 ,PsoC 4200 BLE kit.As in the top design the given zip contains the wiring of CY8C4245AXI-BL483 ,Can I have the wiring diagram of DS18B20 with CY8C4247LQI-BL483 please??I'm using PsoC 3.3 version.I'm connecting

DS18B20'red - V5.0

DS18B20'blue(digital) - P 3.3

DS18B20'ground - gnd

I'm unable to get the data with this connection.

Regards,

Radhika.

Naga Radhika Kasu's picture
User
8 posts

Here is the screenshot of the connection...

Naga Radhika Kasu's picture
User
8 posts

Another question is what should be the baud rate to be fixed in UART??

user_49271930's picture
User
416 posts

1. Simply select your chip:
Project -> Device Selector -> select chip

2.Set Rx as P1 (4) and Tx as P1 (5)
   It is necessary for your USBUART PsoC 4200 BLE kit (KitProg USB-UART in you PC)
Double-click on the UART, you will see the speed setting

Log in to post new comments.