Go to advanced search

by ganken
Thu Jan 05, 2017 10:13 pm
Forum: General discussion
Topic: Connect Temperature and Light Module
Replies: 3
Views: 557

Re: Connect Temperature and Light Module

You should be able to connect both of those sensors to the same pins as long as they have different i2c device addresses. The TMP102 has an ADDR0 connection, which I suspect can be used to change its address to another one - details of addresses and how to do that will be shown in the datasheets. W...
by ganken
Thu Jan 05, 2017 10:10 pm
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

Turns out as I suspected it needed to be soldered. Did that last night and now I have readings.

Thanks everyone for your help. Really appreciate it :D
by ganken
Thu Jan 05, 2017 5:56 am
Forum: General discussion
Topic: Connect Temperature and Light Module
Replies: 3
Views: 557

Connect Temperature and Light Module

Hi, I am looking to connect a Temperature module and light sensor module to raspberry pi 3. From what I can see is there is only one SDA and SCL. How can I connect both of these modules? Can I use the SDA0 and SCL0 pins? I am (very) new to electronics, appreciate your help. The exact modules I'm loo...
by ganken
Wed Jan 04, 2017 10:14 pm
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

Hello, luckily I found a BH1750 on my desk somewhere. With the code found in the link you posted, there are reasonable measurements. Perhaps you have a typo somewhere ? Regards, Gerhard Unlikely cause I downloaded the script from Bitbucket as per the page. I didn't solder the wires to BH1750 could ...
by ganken
Wed Jan 04, 2017 11:18 am
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

I moved the ground to P1-20 instead and now I can see the device when I run i2cdetect -y 1. Its showing 23 as device address (It looks like P1-14 is something special its marked in white in this diagram, I'm not sure what that means though :) http://pi4j.com/pins/model-3b-rev1.html) Anyway this is m...
by ganken
Tue Jan 03, 2017 10:10 pm
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

ghp wrote:Hello, you do not need a breadboard. According to the chip bh1750 datasheet, the ADD-line is connected to GND.
Both P1-06 and and P1-14 are GND, so this is ok.
I assume that you enabled the I2C-Interface with raspi-config ?
Regards,
Gerhard
Yes I enabled the interface
by ganken
Tue Jan 03, 2017 11:19 am
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

I have it connected as per this link http://www.uugear.com/portfolio/using-light-sensor-module-with-raspberry-pi/ Thank you very much for your help That seems to be a simple light level switch that should work OK with the Pi. Have you tried adjusting the sensitivity? Have yo tried covering the sens...
by ganken
Mon Dec 26, 2016 8:49 am
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

I have it connected as per this link http://www.uugear.com/portfolio/using-light-sensor-module-with-raspberry-pi/ Thank you very much for your help That seems to be a simple light level switch that should work OK with the Pi. Have you tried adjusting the sensitivity? Have yo tried covering the sens...
by ganken
Mon Dec 26, 2016 8:47 am
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

Thanks for the info.

I'm going to get this one.. Its a digital sensor should have more luck (I hope)

http://core-electronics.com.au/bh1750fv ... y-302.html
by ganken
Sun Dec 25, 2016 1:30 am
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

Oh right :cry: Thanks for that...

Will this work? Looks like its analog too but the support tells me that it will

http://www.freetronics.com.au/products/ ... F8hD7Z96YU
by ganken
Sat Dec 24, 2016 9:53 pm
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

I have it connected as per this link

http://www.uugear.com/portfolio/using-l ... pberry-pi/

Thank you very much for your help
by ganken
Sat Dec 24, 2016 9:43 pm
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Re: Raspberry Pi Light Detector

I am using one of these and its connected via the GPIO pins

https://www.jaycar.com.au/arduino-compa ... e/p/XC4446
by ganken
Sat Dec 24, 2016 3:07 pm
Forum: Python
Topic: Raspberry Pi Light Detector
Replies: 35
Views: 10138

Raspberry Pi Light Detector

I'm using a light detector module with pi 3 B. When I have the detector connected I always get the reading of 0 but when its not connected I get the reading of 1. Am I doing the right thing with the following code? import RPi.GPIO as GPIO GPIO.setmode(GPIO.BCM) GPIO.setup(4,GPIO.IN) for i in range(0...

Go to advanced search