Great!!
Now everything works.
Thank you very much.
This is the working code
//#include <Wire.h>
#include <Adafruit_ADS1015.h>
//Use IIC2 interface
// Modify the file C: \ ... \Documents\Arduino\hardware\Arduino_STM32\STM32F1\libraries\Wire\Wire.cpp line 106 as follows: TwoWire Wire (2);
TwoWire ...
Search found 16 matches
- Wed Aug 05, 2020 7:23 pm
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
- Tue Aug 04, 2020 9:18 pm
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
While using this other form, the compiler finds no errors, but equally the problem is not solved.
This is the code I use for the various tests:
#include <Wire.h>
//#include <SoftWire.h>
#include <Adafruit_ADS1015.h>
//SoftWire SWire(PB10, PB11, SOFT_FAST); // PB10, SCL - PB11, SDA
//use IIC2 ...
This is the code I use for the various tests:
#include <Wire.h>
//#include <SoftWire.h>
#include <Adafruit_ADS1015.h>
//SoftWire SWire(PB10, PB11, SOFT_FAST); // PB10, SCL - PB11, SDA
//use IIC2 ...
- Tue Aug 04, 2020 9:13 pm
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
TwoWire Wire(2); // use the I2C 2 interface
The compiler gives me this error:
C:\Users\PERITO~1\AppData\Local\Temp\arduino_build_56876\libraries\Wire\Wire.cpp.o: In function `TwoWire::begin(unsigned char)':
C:\Users\Perito Industriale\Documents\Arduino\hardware\Arduino_STM32\STM32F1 ...
- Tue Aug 04, 2020 6:02 am
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
I am using Roger's version of STM32duino, and I edited the file STM32F1/cores/maple/libmaple/i2c_f1.c without success.mrburnette wrote: Sun Aug 02, 2020 11:30 pm
Assuming you are using Roger's version of STM32duino, there is a function to remap the pins:
- Mon Aug 03, 2020 5:56 pm
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
I use Roger's version of STM32duino.
To avoid misunderstandings, this is what I read at compile time:
D:\arduino-1.8.12\arduino-builder -dump-prefs -logger=machine -hardware D:\arduino-1.8.12\hardware -hardware C:\Users\Perito Industriale\AppData\Local\Arduino15\packages -hardware C:\Users\Perito ...
To avoid misunderstandings, this is what I read at compile time:
D:\arduino-1.8.12\arduino-builder -dump-prefs -logger=machine -hardware D:\arduino-1.8.12\hardware -hardware C:\Users\Perito Industriale\AppData\Local\Arduino15\packages -hardware C:\Users\Perito ...
- Mon Aug 03, 2020 10:46 am
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
After work, I will try to remap the pins as suggested by mrburnette.
- Mon Aug 03, 2020 10:40 am
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
The library I use is that of Adafruit:
Adafruit_ADS1X15.
https://github.com/adafruit/Adafruit_ADS1X15
Adafruit_ADS1X15.
https://github.com/adafruit/Adafruit_ADS1X15
- Sun Aug 02, 2020 8:16 pm
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
I connected the ADS1115 shield to the PB10 and PB11 pins and I did the schetch i2c_scanner_softwire first and then I tried to read the values sent by the ADS1115.
Through the scanner you can see the address of the device as in the case of the hard wire, but when you want to read the values of the ...
Through the scanner you can see the address of the device as in the case of the hard wire, but when you want to read the values of the ...
- Thu Jul 30, 2020 8:14 pm
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
I saw the library in case the solution to the problem was within my reach ....
- Thu Jul 30, 2020 5:10 pm
- Forum: General discussion
- Topic: [Risolto] I2C and ADS1115 communication problem with STM32F103C8T6
- Replies: 16
- Views: 18690
Re: I2C and ADS1115 communication problem with STM32F103C8T6
After several attempts, I managed to get the ADS1115 to work partially.
I use the core maple, and a Chinese STM32F103C8T6 shield.
With the I2C_scanner I see the ADS1115 address only from pins PB6-PB7 and PB10-PB11, while nothing is detected on the pins PB8-PB9.
The schetch I wrote on the base of the ...
I use the core maple, and a Chinese STM32F103C8T6 shield.
With the I2C_scanner I see the ADS1115 address only from pins PB6-PB7 and PB10-PB11, while nothing is detected on the pins PB8-PB9.
The schetch I wrote on the base of the ...