newbie here. have TTP229 16-key captouch keypad (with 8229BSF chip) I'm trying to get it running with my arduino uno R3. I've read some threads, and watched some youtubes re this module, but "I'm kinda dense" ...
so far, I've soldered three sets of two header pins in three places, and installed a tiny jumper on one set of those pins.
when i run serial monitor, each of my 16 keypad buttons DO show up as individual key presses, but the problem is each (& every) keypress =shows= only as a 'backward question mark', rather than a number (of any sort). I'm under the impression I should be seeing @least 'some' kind of number in serial monitor, though, right? what am i missing?
my end goal is to only use this in 16-key mode, and I have no use for its 'multi-key press' mode functionality.
thank you, yes, it is set to 9600. and also set to no line ending, arduino uno, and com3 port...
'some' ttp229 8229BSF site guys say to use a high value resitor and NOT the tiny jumper, while other sites say "just the opposite", believe it or not ... quite a long rabbit hole ...
If you were to add a line of code to the bottom of setup() after the call to pinMode() - something like this:
void setup()
{
/* Initialise the serial interface */
Serial.begin(9600);
/* Configure the clock and data pins */
pinMode(SCL_PIN, OUTPUT);
pinMode(SDO_PIN, INPUT);
Serial.println("Hello");
}
Then see what you get on your serial port. If you see the word "Hello", then your serial port is setup correctly and the problem lies elsewhere.
markd833:
If you were to add a line of code to the bottom of setup() after the call to pinMode() - something like this:
void setup()
{
/* Initialise the serial interface /
Serial.begin(9600);
/ Configure the clock and data pins */
pinMode(SCL_PIN, OUTPUT);
pinMode(SDO_PIN, INPUT);
Serial.println("Hello");
}
Then see what you get on your serial port. If you see the word "Hello", then your serial port is setup correctly and the problem lies elsewhere.
Excellent idea for helping him to troubleshoot.
If Hello shows on Serial Monitor, then he needs to contact the company that provided the example code. There may be a bug in it that they never corrected.
not only did adding your line of code give me "hello", but in addition now ALL 16 buttons print out their number (in serial monitor :-). so I'm =ecstatic=! and great to see Koepel back here too
i think maybe next i install a captouch keypad library <?>, or maybe install this fellow "gadget reboots" code, from youtube:
his "huge chunk" of code (as he describes it) seems close to what I'll need, in the end - his uses an uno, a captouch keypad, and an LCD display, and blinks a LED. my code would need to run (essentially all) the same items, but instead of the LED would operate a SSR, which'll hook to a laminated 120VAC solenoid (sliding deadbolt/door lock thing).
and thanks, Koepel, for the heads up on my other thread solution - I'd like 99% given up hope on that one, so certainly =will= check that
thanks again, much, all you guys, you've MADE MY DAY