Problem in connecting Huzzah32 with bme680 on SPI pins #7085
Unanswered
espruino-discuss3
asked this question in
ESP32
Replies: 1 comment
-
Posted at 2018-05-08 by Frida Have you set CSB according to spi? Posted at 2018-05-08 by Saurabh I set pin 15 as a CSB Posted at 2018-05-08 by Wilberforce Try setting the baud/speed - use something slow to begin with. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2018-05-08 by Saurabh
I am using huzzah32 board with bme680 on SPI pins
I got faulty measurement every time.
My code is :
var spi = new SPI();
spi.setup({miso : 19 , mosi : 18, sck: 5});
var bme = require("BME680").connectSPI(spi, 15);
setInterval(function() {
var data = bme.get_sensor_data();
console.log(JSON.stringify(data,null,2));
bme.perform_measurement();
}, 1000);
Output: {
"new": true,
"temperature": 102.03690927114,
"pressure": -148.08,
"humidity": 0,
"gas_resistance": 12858837.98880876228
}
using I2c its working fine . but i cant use I2c because i attach different sensor with it.
I suck this point :(
Beta Was this translation helpful? Give feedback.
All reactions