A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

New answers tagged

0

I have some experience with the the screen you are using and I hope these tips can solve your problem. Changing the Address in the code The OLED display you are using uses what is called I2c or IIC protocol which is the abbreviation of "Inter Intergrated Circuit", here is it's Wikipedia page to read about it. The IIC communication has 7 bit address space, ...


0

I2C requires precise timing to work. If interrupts fire while the Arduino is trying to read or write to the I2C bus, it will fail. I suspect you'll have to disable interrupts each time you read/write to the I2C bus and then re-enable them when you are done.


1

According to the Wire library documentation https://forum.arduino.cc/index.php?topic=132130.0: The Arduino Due has two I2C / TWI interfaces SDA1 and SCL1 are near to the AREF pin and the additional one is on pins 20 and 21. And the table: Arduino Due: 20 (SDA), 21 (SCL), SDA1, SCL1 So it seems in your table SCL2 should be SCL1.


0

I didnt try this method but; when i check the data sheet, i found this code on last page: sbit ADDO = P1^5; sbit ADSK = P0^0; unsigned long ReadCount(void){ unsigned long Count; unsigned char i; ADDO=1; ADSK=0; Count=0; while(ADDO); for (i=0;i<24;i++){ ADSK=1; Count=Count<<1; ADSK=0; ...


0

According to library, hx711 sending pulses to mcu and we are scaling with take this pulses. I think you must connect DOUT and SCK pins directly to the MCU or you must counting pulses via I2C after all create a scaling value according the library code and send it to mcu.


Top 50 recent answers are included