CY8C4247-LQI-483 to DS18B20

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

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.

0 Likes
15 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

You are missing the library the Kees library.

0 Likes
Anonymous
Not applicable

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-ds18b20-digital-temperature-se...

   

   

Regards,

   

Radhika

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

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.

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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(); // 
        }    

0 Likes
lock attach
Attachments are accessible only for community members.
odissey1
Level 9
Level 9
First comment on KBA 1000 replies posted 750 replies posted
        Use updated (no KEES library link) archive   
0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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

0 Likes
Anonymous
Not applicable

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.

0 Likes
Anonymous
Not applicable

Here is the screenshot of the connection...

   

0 Likes
Anonymous
Not applicable

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

0 Likes
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

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

0 Likes
Anonymous
Not applicable

Here are my pin connections.

   

0 Likes
Anonymous
Not applicable

Here are my pin conncetions...

   

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

I use KitProg USB-UART for testing:

0 Likes
lock attach
Attachments are accessible only for community members.
EvPa_264126
Level 7
Level 7
500 replies posted 250 replies posted 100 likes received

Your program:

0 Likes
Anonymous
Not applicable

Thanks,Its working.

0 Likes