The line "while(Wire.available()>2);" loops kinda suspicious.
Maybe you meant something like "if (Wire.available() >= 2) {" ??
Did you try running the Wire library Scanner example (as I recommended in msg #4)? If using Arduino IDE, it is very...
Thank you Paul,
I did what you suggested, the I2C ADS7828 gives sometimes connected, sometimes not connected and gives errors, I am going to buy a new I2C chip so would be able to know if my teensy board is good.
Again thank you a million for...
That looks correct.
However one issue you need to be very careful of is ensuring that SDA and SCL are not pulled up to or being driven to 5V. Is your ADC running off 3.3 or 5V?
One thing to think over is that the Teensy 4.1 is not 5V tolerant so if at some time you have accidentally pulled up to 5V maybe you have damaged the I2C bus IO on the Teensy?
Do you have an DSO or logic analyser to look at the signals?
Hello all,
I did your kind recommendations, It worked for little time and the communication with the teensy via usb was interupted. I might have the wrong value of the pullup resistors 2K situated between SCL0 to 3.3V(from teensy 3.3V supply)...
Hello,
Again thank you very much for your advice and time,
I applied your kind suggestions but in vain. Please see code below, Just ask is there any mistake in the code sequence? Again please advice
#include <Wire.h>
void setup() {...
Thank you very much for your suggestion,
I changed from decimal to hexadecimal as indicated in the ammended code below, sorry with no avail, do have other suggestion please?
#include <Wire.h>
void setup() {
Serial.begin(9600)...
Hi,
I am trying to interface ADS7828 to the Teensy 4.0 development board via I2C with no success. I read PJRC website article about Wire library which uses teensy to eprom with no avail. In the code below, simply I am trying to read(pot) channel...