Features:
- Adjustable sensitivity with slider.
- Middle button scrolling.
Admin edit: Changed large inline image to link. Please keep images <50KB and also post a PIC warning in subject line.
Code: Select all
Trackpoint trackpoint(3, // CLK
9, // DATA
12); // RESET
I don't understand the difference between Stream Mode & Remote Mode; all I want to do is use the Trackpoint as a USB mouse, and maybe as a Up/Down scroller, and Left/Right text cursor control.This library only supports interfacing with the TrackPoint in remote mode; For a library that supports stream mode, have a look at Cong Nguyen’s arduino-trackpoint-extended.
It’s great to hear that the little project is useful to others!rootScript wrote:Firstly, thanks for putting your library up on Github, the Trackpoint is a great input device; I had almost lost hope, until I found your post here.
Absolutely, or you use the new library by Cong (stream mode).As I understand things, I can load your usb-trackpoint code.ino file, and reference the arduino-trackpoint library?
You only need digital pins.I guess I can connect CLK & DATA to any digital pins on the Teensy; I am not sure which pin to connect the RESET to?
In remote mode, the Arduino drives the TrackPoint controller’s CLK pin. In stream mode, the CLK pin is connected to an interrupt pin on the Arduino, and the TrackPoint’s controller initiates communication.I don't understand the difference between Stream Mode & Remote Mode
According to Teensy 3.1 schematic, 5V from the USB micro connector is connected to a header pin with label VUSB, so you can power the TrackPoint with that. Note the 500mA fuse.rootScript wrote: The Teensy 3.1 I am using is 3.3V. After I connect the CLK & DATA pins from the Trackpoint to the Teensy pins 3 & 9, should I power the Trackpoint with a separate 5V or do I need to have a common ground with the Teensy?
OK so I can power from the VSUB pin, and use any GRD pin on the Teensy 3.1, I don't understand what you mean with the 500mA fuserampadc wrote:According to Teensy 3.1 schematic, 5V from the USB micro connector is connected to a header pin with label VUSB, so you can power the TrackPoint with that. Note the 500mA fuse.rootScript wrote: The Teensy 3.1 I am using is 3.3V. After I connect the CLK & DATA pins from the Trackpoint to the Teensy pins 3 & 9, should I power the Trackpoint with a separate 5V or do I need to have a common ground with the Teensy?
I have never used an LLC but I do have one that I bought just in case :rampadc wrote: You will need to use voltage logic level converters for data and clock lines as they are bidirectional. Reset line isn't, and a 'high' on a 3.3V system is high on a 5V one so it can directly connect to any pins on your Teensy.
Excellent, I will try some fine wet & dry sandpaper.rampadc wrote: You can use sand paper to remove the orange plastic insulator.
http://forum.pjrc.com/threads/25722-Tee ... #post47139The pins with both analog and digital functionality (pins 14 to 23) are 5V tolerant, even when operating as analog inputs.
But anything over the reference voltage, which is 3.3V by default but can be configured for 1.2V, will read as the maximum value (1023 in the default 10 bit mode). Applying 3.4 to 5.0 volts to those pins will not damage the chip, but you can't read the voltage other than knowing it's over 3.3V.
Code: Select all
Trackpoint trackpoint(
17, //TrackPoint DATA
16, //TrackPoint CLK
14); //RESET
Users browsing this forum: No registered users and 30 guests