Search results

  1. Z

    Hall-Effect Rotary Encoder Calibration, Suggestions?

    All, I've got a 14-bit hall-effect rotary encoder that I'm trying to calibrate, in software, to adjust for non-linearity. Specifically, I've got an AS5147P, which can have a non-linearity of up to +/- 0.8 degrees under optimum conditions. While the measurements are non-linear, they are...
  2. Z

    Driving Linear Resonant Actuators

    I'm also using the USB library to output joystick info, so I am concerned about how the large amount of processing will affect that. Though, using manual USB send on a higher priority interrupt, and having the calculations on a lower priority interrupt, aught to work fine.
  3. Z

    Driving Linear Resonant Actuators

    Driving via PWM through an NPN BJT worked out fine. After a lot of experimentation though I'm coming to the conclusion the LRAs aren't suitable for my application (haptic feedback across a coordinate plane). I'm going to get some cell-phone ERM units and give those a whirl.
  4. Z

    Driving Linear Resonant Actuators

    In this case, all the LRAs I'm working with run at the same AC frequency. It's just the amplitude that varies. I don't think that using different PWM duty cycles would work, assuming you mean skipping the PWM->voltage conversion. I'm pretty sure switching the voltage on/off like that would...
  5. Z

    Driving Linear Resonant Actuators

    I've got a few 74HC595 shift registers, but I'm concerned that implementing PWM via software will eat up too many clock cycles, I've already got a lot of calculation going on. For each of the 9 LRAs, for each step in each AC cycle, I have to calculate the PWM duty cycle needed to get the right...
  6. Z

    Driving Linear Resonant Actuators

    Hi! Looking for some outside points-of-view. I'm trying to figure out how to drive 9x linear resonant actuators (LRAs, like this one), each potentially at a different rate. Short intro, LRA's are one of the two types of devices that cause your cellphone to vibrate. The other type is an...
  7. Z

    (PS2 Protocol) PS2 mouse movement packet bad/odd data, multiple mice

    Well, I decided to take a new approach given the output issues I was having from PS2 mice. I've now got a USB mouse, connected to a raspberry PI, connected via I2C to my Teensy3.1, connected to my PC and emulating a joystick given mouse events.
  8. Z

    (PS2 Protocol) PS2 mouse movement packet bad/odd data, multiple mice

    The PS2 mouse returns a 3 byte movement data packet. The relative movement ( since last report ) is represented by 9-bit, 2's compliment integers. Bytes #2 and #3 represent the 8 least significant bits for x/y respectively. Byte #1 contains the most significant bits ( sign bits ) for 9 bit 2's...
  9. Z

    (PS2 Protocol) PS2 mouse movement packet bad/odd data, multiple mice

    Hoping somebody can help point me in the right direction..... Note: Code Attached I'm working with a Teensy 3.1, the latest Teensyduino, the latest Arduino, and am using a self-rewritten version of the Arduino PS2 Mouse library to interface with several PS2 mice. I built an adaptor for PS2...
  10. Z

    Many axis joystick

    fixed? I recently ran into a compilation error using the extreme joystick library from post #36 in this thread. I detailed the error in a post here, but basically one of the structs in usb_desc.h was being included twice and throwing a compiler error. I fixed by wrapping the following code...
  11. Z

    [Error] Compile error using Many-Axis joystick lib and test file

    Ok, so usb_serial.h and usb_inst.cpp both include usb_desc.h. I suspected their might be some multi-including issue going on, so I wrapped the following code in usb_desc.h from the extreme joystick lib with a #ifndef.... #ifndef _usb_dec_t #define _usb_dec_t extern const uint8_t...
  12. Z

    [Error] Compile error using Many-Axis joystick lib and test file

    Hi! I'm using a Teensy 3.1 with the latest Arduino and Teensyduino on Linux. The 3.1 is set to 96MHz optimized and USB Type: Serial + Keyboard + Mouse + Joystick. I'm trying to use the extreme joystick lib located on the prjc forums here, provided by Mr. Stoffregen (attached to post too). The...
  13. Z

    T3.1 w/ TD 1.2: I2C failure after power loss, requiring re-upload to fix

    That did the trick! I added a 50ms delay and it's working great after power loss. You sir are epic! I'll gladly continue to support your great work by purchasing more Teensy boards!
  14. Z

    T3.1 w/ TD 1.2: I2C failure after power loss, requiring re-upload to fix

    Hi! I'm using a Teensy 3.1 with Teensyduino 1.20, along with a GY-521 ( MPU-6050 breakout, 6DOF I2C sensor ). I'm using the GY-521 as a source for X/Y rotation translated into Joystick output by the Teensy 3.1 using the Serial/Keyboard/Mouse/Joystick configuration. I'm finding that on power...
  15. Z

    Teensy 3.1, Overriding Core Libraries in the Arduino IDE

    Howdy folks! A new Teensy 3.1 user here, starting off using the Arduino IDE. Well, it has been a while since I programmed in C/++, usually I work with Javascript, SQL, etc, and I'm running into a few hurdles. I'm hoping someone can help me find an elegant solution. Starting off with the Teensy...
Back
Top