total newbie here. having no luck getting i2C scanner to show me the address of three (of my four total) i2c devices. i2c scanner does find and give me the address of my 20x4 LCD, but won't give me an i2c address of (any of my three) robotdyn TTP229 16-key capacitive touch modules. instead, in serial monitor, i keep getting the dreaded 'no i2c devices found' dialog. been trying & retrying various things, rebooting etc for about ten days now, but never can get an i2c address for any (of the three) robotdyn modules.
ideas, things tried so far, and questions:
- SOFTWARE DEFECT in my =particular= copy of, or version OF 'i2c scanner' code? unlikely - I've tried numerous versions found online, made no diff :-(. but 'board info' gives me serial numbers for each of the three modules, so?
-
does the i2c device ITSELF need to have a "library" (aka some 'code'), running ON IT in order to be 'seen' =BY= i2c scanner?
(robotdyn 16-key TTP-229 modules). seems unlikely, but ? -
wiring defect? eg: jumper leads installed on a wrong pin, or two? tried swapping SDA & SCL leads, made no diff
doubt I made a wiring error; I've checked it numerous times ... -
wiring defect? eg: in one (of the four, brand new, carefully installed) jumper leads? eg: like no continuity? unlikely, see last comment@bottom of #6, below.
-
wrong VOLTAGE? (robotdyn specs say these are 3.3 to 5.5 volt modules) tried both voltages, made no diff
-
maybe all three robotdyn modules =themselves= are defective? so try 2nd & 3rd of same module, and/or also try my 2004 LCD, maybe...later TRIED ALL THREE of my TTP229L modules - all three yield the dreaded 'no i2C device found' dialog. HOWEVER, after that, and running same code, jumper leads, etc i2c scanner DOES 'see' my 20X4 LCD, and DOES give me =ITS= i2C address ...
-
lack of pullup resistors? 4.7Kohm? pair?need to use? if use, one or a pair? I'm totally unclear on this, can't find the word 'pullup' in my code anywhere, so remains unclear if it 'defaults to' =using= the arduinos on-board pullups, or not...
in the tontech TTP229 pdf, top of page 8, pullups are 'mentioned' in last line of paragraph one. but unclear what that means, or what to do/baffled...
this is the entire Tontek TTP229 PDF:
moving on, and leaving all above as described, next tried 'the breadboard & resistors thing', using two 4K7 resistors, which still made NO DIFF, aka 'no i2C devices found'.
again tried two (of the 3 total) robotdyn modules, no luck, no diff, yields same dreaded dialog.
-
what is the 'default state' of the pullup resistors on the arduino uno board?
(they're supposedly controllable by software). is/are it/they enabled? disabled? i got no clue ... -
bonus question: in the IDE, how do i make the line numbers SHOW in my code?
thanks very much for pointing out thing(s) i missed, did wrong, etc. specifics "in massive detail, suitable for the near brain-dead" much appreciated, guys