-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with the si7021 temperature and humidity sensor #3
Comments
You are using J3 or J4 to connect to the si7021 sensor. If you connect to J5 or J6, you can switch the SDA, SCL pins. If you use J9 or J10 to connect to bmp180 or si7021 sensor, read-bmp180-si7021-right.lua is the connect mapping. The bmp085.lua library only check if able to initial the I2C bus, did not check if able to read the address, or able to get meaningful data. |
Hi Mike, |
As a second thought could you make the drawings that you made for the PCB available to the community? |
Hi Jasea, I just updated this Wiki page to include images of universal PCBs: These 2 PCB just lots of 2.54mm 4 Pins headers connect straight to USB connectors. |
I second Jasea a clear version of the board and its labels for the main board would be very handy. |
I have been trying to get meaningfull readings from the si7021 sensor using read-bmp180-si7021-right.lua . I found the problem to be due to the incorrect GPOI pins being used in the program. The correct mapping is: VCC - GPIO14
SDA - GPIO12
SCL - GPIO13
This means the following changes need to be made:
Change lines 10 & 11
from
gpio.mode(GPIO13, gpio.OUTPUT)
gpio.write(GPIO13, gpio.HIGH)
to
gpio.mode(GPIO14, gpio.OUTPUT)
gpio.write(GPIO14, gpio.HIGH)
and amend the comment on line 9
change line 14
from
bmp.init(GPIO14,GPIO12)
to
bmp.init(GPIO13,GPIO12)
change line 34
from
si.init(GPIO14,GPIO12)
to
si.init(GPIO13,GPIO12)
When you save and complie and the run the programe you will see the correct Temperature and Humidity value preceeded by a T and H respectivley.
What I still do not understand is why a message is displayed saying that the BMP180 sensor intialised when there is not one on the board.
The text was updated successfully, but these errors were encountered: