-
1. Re: Component to read DS18B20 digital temperature sensors
BoTa_264741 Mar 20, 2018 1:32 PM (in response to BoTa_264741)-
DS18x8_A_00.pdf 530.0 K
-
main_01.PNG 103.0 K
-
-
2. Re: Component to read DS18B20 digital temperature sensors
ViDv_264506 Mar 31, 2015 1:56 AM (in response to BoTa_264741)Hi odissey1
many thanks for your usefull component. Nice and usefull work.
Best regards
Viktor
-
3. Re: Component to read DS18B20 digital temperature sensors
JoMe_264151 Mar 31, 2015 2:55 AM (in response to BoTa_264741)1 of 1 people found this helpfulWell done! And a sophisticated documentation! I like that.
Bob
-
4. Re: Component to read DS18B20 digital temperature sensors
DaKn_263916 Mar 31, 2015 7:09 AM (in response to BoTa_264741)1 of 1 people found this helpfulCheck it in Creator SP2, just released. Consider re-posting it if
necessary.
Regards, Dana.
-
5. Re: Component to read DS18B20 digital temperature sensors
rola_264706 Apr 1, 2015 9:56 AM (in response to BoTa_264741)1 of 1 people found this helpfulThe 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:\Users\Bob\Documents\Cypress Projects\one_wire\Demo1\DS18x8_demo.cydsn\TopDesign\TopDesign.cysch'. and Unable to find dependency 'KEES_Library' at 'C:\Program Files (x86)\Cypress\Component libraries\KEES_Library.cylib\KEES_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.
-
6. Re: Component to read DS18B20 digital temperature sensors
BoTa_264741 Apr 1, 2015 1:04 PM (in response to BoTa_264741)@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
-
7. Re: Component to read DS18B20 digital temperature sensors
BoTa_264741 Jan 4, 2019 11:56 AM (in response to BoTa_264741)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
-
DS18x8_A_00.pdf 530.0 K
-
-
8. Re: Component to read DS18B20 digital temperature sensors
content.librarian Jul 2, 2015 8:16 AM (in response to BoTa_264741)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
-
9. Re: Component to read DS18B20 digital temperature sensors
BoTa_264741 Jul 2, 2015 10:35 AM (in response to BoTa_264741)Don,
You can use original 1-wire component made by'pavloven'. It uses buried GPIO pin and no Registers required.
odissey1
-
10. Re: Component to read DS18B20 digital temperature sensors
content.librarian Jul 2, 2015 11:22 AM (in response to BoTa_264741)Thanks! I've downloaded it and will report on what I find.
-
11. Re: Component to read DS18B20 digital temperature sensors
NaDo_1344206 Apr 9, 2016 11:13 PM (in response to BoTa_264741)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.
-
Demo1.zip 5.4 MB
-
-
12. Re: Component to read DS18B20 digital temperature sensors
rola_264706 Apr 11, 2016 10:21 AM (in response to BoTa_264741)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.
-
DS18x8_demo-000.Bundle01.zip 3.1 MB
-
-
13. Re: Component to read DS18B20 digital temperature sensors
userc_38686 May 5, 2017 2:38 PM (in response to BoTa_264741)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
-
14. Re: Component to read DS18B20 digital temperature sensors
BoTa_264741 May 5, 2017 3:06 PM (in response to BoTa_264741)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.