more G-Labs products

Author Topic: DS18B20 Sensors  (Read 12517 times)

September 21, 2014, 10:50:20 PM
Reply #30

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
One more question.. what version of RPi SD card did you download?

g.

September 21, 2014, 10:53:27 PM
Reply #31

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92

September 21, 2014, 10:57:11 PM
Reply #32

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
The program is working now

September 21, 2014, 11:06:37 PM
Reply #33

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
glad to hear that :)
let me know if there are some improvements we can make to it.

Cheers,
g.

September 21, 2014, 11:22:04 PM
Reply #34

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
Ok i will

Next steps i will try and make a module to read same value in a webpage so i get the power consumption in watts

cheers

September 27, 2014, 10:59:53 PM
Reply #35

codedmind

  • ***
  • Information
  • Full Member
  • Posts: 92
Gene,

Can you send me some directions how to start a module? python/javscript or even c# i have an arduino in my rpi so i need to read serial port and i even have a webpage to scrap so i can get the consumption energy. I try all day find a way but no success.

Thanks

November 06, 2014, 04:29:59 PM
Reply #36

Bitcraze

  • ***
  • Information
  • Full Member
  • Posts: 73
Hi, all

After I follow the AdaFruit hardware install of the DS18B20, What needs to be done in HG?

Can't seem to get it to work. On Pin 22 on RPI. Using Pin 4 for the DHT-11, which takes long before it's first reading after a RPI reboot.

November 08, 2014, 01:11:26 AM
Reply #37

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi Bitcraze,

did you try this app?

http://www.homegenie.it/forum/index.php?topic=351.msg2074#msg2074

do not forget to load 1-wire modules first (either from a terminal or in /etc/modules):

Code: [Select]
modprobe w1-gpio
modprobe w1-therm

Cheers,
g.


November 12, 2014, 05:06:08 PM
Reply #38

Bitcraze

  • ***
  • Information
  • Full Member
  • Posts: 73
Hi, Gene

Still no luck.

Does the DS18B20 work by default in R416, with 1-wire enabled, or should I:

modprobe w1-gpio
modprobe w1-therm




November 14, 2014, 04:04:08 PM
Reply #39

Bitcraze

  • ***
  • Information
  • Full Member
  • Posts: 73
Hi, Gene

Should I also enable MCP3008, for this to work?

November 19, 2014, 08:55:00 AM
Reply #40

Bitcraze

  • ***
  • Information
  • Full Member
  • Posts: 73
Hi, Gene

Ah, working great on GPIO 4! Have also managed to get working on GPIO 24, with and added entry in command.txt

1) Added this to startup file:
modprobe w1-gpio
modprobe w1-therm

2) Checked the ID
3) Entered the ID

Thanks so much Gene!

December 15, 2014, 08:11:47 PM
Reply #41

StatX

  • **
  • Information
  • Jr. Member
  • Posts: 30
Hi there,

Is there a way to add more than 3 sensors ?

December 16, 2014, 07:46:20 PM
Reply #42

Marco

  • **
  • Information
  • Jr. Member
  • Posts: 36
Hi StatX,
go to configuration, automation, devices and things, One-Wire Devices, change this value "Connected sensors number" (I tried with 5 sensor and work well) and restart.

then you can add the other sensors

My experience here: http://www.homegenie.it/forum/index.php?topic=423.msg2394#msg2394


Marco

December 16, 2014, 07:59:34 PM
Reply #43

StatX

  • **
  • Information
  • Jr. Member
  • Posts: 30
ok thank You for reply as soon as i will get more sensors i will shurley try it :)