I have an ENS160 Adafruit sensor board in I2C connection and when I connect the Vin and GND to an external power supply, the ENS160 board doesn't output in the serial monitor. The Serial output returns when I place Vin to 5V of the Arduino board and GND to GND pin of the Arduino board.
Is there a way we can get the output from the board even when I connect the power pins to an external power supply?
Now after some tinkering, I managed to make it work but not sure if I'm correct from how I understood it.
My clue in understanding it is that ENS160 is communicating through I2C and I have read that it is required that I2C data lines, Vcc and ground (or maybe just ground) come from the same source and that it's the reason why I'm not getting data from the ENS160 board since I'm using an external breadboard power supply for powering the board by connecting the 5V and GND pins to the breadboard power supply and connecting the I2C data lines to the Arduino SDA and SCL pins.
Is this kinda correct?
I have managed to output the data to the LCD by loading the code first to the Arduino Uno board, unplugging the cable from my PC and plugging it to the USB A of the breadboard power supply
Gnd is just a reference for the circuit, gnd on the module and gnd on the controller have to be connected together so that they share the same reference level and current can flow and make the circuits.
That way signal from the controller and signal from the module have the same gnd reference to measure the signal voltage from.
Tom..
PS. I'm surprised it wasn't picked up from here;
The question was about the breadboard supply, not about the breadboard.
A breadboard supply has the same circuitry and limitations as the 5volt regulator on the Uno.
What other sensors, and what is your external supply (voltage).
Give us the whole picture.
Leo..
It's really just to have more 5V and 3V pins for my sensors. The breadboard power supply is connected to a 9V power source. I could of course set some digital pins to high but it's not working well with me.
Just a project to detect fires over a distance so trying a bunch of sensors and see what works. Also do have an 16x2 LCD and relays connected to the supply besides the sensor that draws a bit of power which is also a reason why I'm using a breadboard power supply (direct to supply via female-to-female connectors, not really connected to a breadboard)
Note that the max current draw from a breadboard supply powered with 9volt on it's DC socket is about 250mA. More than that and the regulators (without heatsinks) will eventually go into thermal shut-down. This is the same for the DC socket of an Uno.
Leo..