Tag: TTP229

2 articles found.

Arduino Leonardo Library for Proteus: USB Keyboard + Mouse

Arduino Leonardo Library for Proteus: a 16-key macro pad with a TTP229 touch keypad and an ESP-01S

Hello friends, I hope you all are doing great. Today, I am going to share the Arduino Leonardo Library for Proteus. The Leonardo looks like an Arduino UNO, but its ATmega32U4 has USB built into the chip. Plug it into a computer and it is not only a serial port: it can be a USB keyboard and a USB mouse. With this library it runs your Leonardo sketch in Proteus 8.5 - and what it types lands on a PC that the board model plays for you. A click on the board's ATmega32U4 opens the PC window: a notepad that types what the sketch types, the keys and the modifiers it holds, the shortcuts, and a screen with the mouse pointer, its clicks and the wheel. The demo is a 16-key macro pad: a TTP229 touch keypad whose pads type text, copy and paste, save and move the mouse, with an ESP-01S that puts the same 16 keys on a web page for the phone and the laptop. NOTICE: Proteus has no ATmega32U4 model with its USB, so our team has put a lot of effort into building this board ourselves: the Leonardo's pins, LEDs, serial monitor and its USB keyboard and mouse are all our own model, and your sketch compiles with our free TEP Boards for Proteus add-on. Your feedback is the fuel that keeps us going, so please tell us what you think in the comments below or in the Arduino Leonardo board of our forum. And if our free libraries help you, you can buy us a coffee. So, let's get started with the Arduino Leonardo Library for Proteus: Arduino released the Leonardo in 2012 as the first UNO-sized board with a ...

TTP229 Touch Keypad Library for Proteus V1.0: 16-Key Capacitive Keypad

TTP229 Touch Keypad Library for Proteus V1.0: the 16-key capacitive touch keypad with its STATUS panel

Hello friends, I hope you all are doing great. Today, I am going to share the new TTP229 Touch Keypad Library for Proteus V1.0. The red TTP229 16-key capacitive touch keypad is the easiest way to give an Arduino project a modern, button-free front panel: sixteen round pads under a thin cover, no moving parts, nothing to wear out. It talks to the Arduino over two wires, SCL and SDO, and for a hobby board it hides a surprising number of traps: it comes with only 8 of its 16 keys switched on, it reports one key at a time unless you bridge two pads, and its serial interface is not I2C at all. Behind the parts sits our own model, written from the TTP229-BSF datasheet. You click the pads on the board while the simulation runs, and the chip answers the way the real one does: it calibrates at power-on, sleeps and wakes up, scans its keys every 16 or 32 ms, shifts the keys out bit by bit on SDO, pulses SDO when a key is ready, and resets its interface after 2 ms without a clock. The eight option pads TP0 - TP7 are clickable too. You get a Simple device with a live STATUS panel and an Advance device with a pop-up window that draws SCL and SDO through the last read, bit by bit. The demo runs on our Arduino UNO V4.0. NOTICE: a touch keypad is easy to fake: a part that hands the key you click straight to the sketch. We wanted more. Our TTP229 talks only the way the real chip talks - a bit on SDO for each clock on SCL - so a sketch that reads too few bits, clocks too fast, reads too often, ...