Search found 11 matches

by enesert
Mon May 24, 2021 8:15 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

I tried your sketch. It gave same output. Is there any possibility of a problem in library? And you properly wire the sensor on pin D9, D11,D12 and D13 ? If the SPI loop works so probably an issue with the Library. Maybe SPI clock speed. Seems the max frequency for this sensor is 8MHz as stated her...
by enesert
Mon May 24, 2021 7:00 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

GonzoG wrote: Sun May 23, 2021 3:47 pm
enesert wrote: Sat May 22, 2021 7:19 pm
MasterT wrote: Sat May 22, 2021 6:30 pm It's always good idea to test SPI separately, w/o sensor connected. Try build-in the IDE loop back test:
_ File/Examples/SRM32duino_Examples/NoNReg/SPI_Loop
It can pass the test. There is no problem.
Did it pass test when connected to D14/D15 ??
Nope it passed D12 D11
by enesert
Mon May 24, 2021 6:59 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

Ok you use the STM32 core anyway your sketch is not correct. Try the code I've put above. I tried your sketch. It gave same output. Is there any possibility of a problem in library? And you properly wire the sensor on pin D9, D11,D12 and D13 ? If the SPI loop works so probably an issue with the Lib...
by enesert
Sat May 22, 2021 7:19 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

MasterT wrote: Sat May 22, 2021 6:30 pm It's always good idea to test SPI separately, w/o sensor connected. Try build-in the IDE loop back test:
_ File/Examples/SRM32duino_Examples/NoNReg/SPI_Loop
It can pass the test. There is no problem.
by enesert
Sat May 22, 2021 7:18 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

fpiSTM wrote: Sat May 22, 2021 6:07 pm Ok you use the STM32 core anyway your sketch is not correct. Try the code I've put above.
I tried your sketch. It gave same output. Is there any possibility of a problem in library?
by enesert
Sat May 22, 2021 5:25 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

So you set this in your sketch and wire on the correct pins ? // You can also use software SPI and define your own pins! #define BMP183_CLK 13 #define BMP183_SDO 12 // AKA MISO #define BMP183_SDI 11 // AKA MOSI // You'll also need a chip-select pin, use any pin! #define BMP183_CS 9 // initialize wi...
by enesert
Sat May 22, 2021 5:22 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

So you set this in your sketch and wire on the correct pins ? // You can also use software SPI and define your own pins! #define BMP183_CLK 13 #define BMP183_SDO 12 // AKA MISO #define BMP183_SDI 11 // AKA MOSI // You'll also need a chip-select pin, use any pin! #define BMP183_CS 9 // initialize wi...
by enesert
Sat May 22, 2021 4:01 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

GonzoG wrote: Sat May 22, 2021 1:39 pm As it's written on the board: D14 and D15 are SDA, SCL pins. Those are I2C pins.
SPI uses MOSI/MISO pins: D10 and D11.
I tried it, it gives same output.
by enesert
Sat May 22, 2021 4:01 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

fpiSTM wrote: Sat May 22, 2021 3:06 pm You used the software SPI. Try hw SPI as described in the sketch. Like the uno.
Nothing change, it gives same output.
by enesert
Sat May 22, 2021 1:16 pm
Forum: General discussion
Topic: NUCLEO-G474RE BMP183 Output Problem
Replies: 20
Views: 7338

Re: NUCLEO-G474RE BMP183 Output Problem

I don't see image. Could you share your sketch and how you wire the BMP to the board. #include <f401reMap.h> #include <SPI.h> #include <Adafruit_Sensor.h> #include <Adafruit_BMP183.h> // For hardware SPI: // Connect SCK to SPI Clock, SDO to SPI MISO, and SDI to SPI MOSI // See http://arduino.cc/en/...

Go to advanced search