Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: doughboy

Page 1 of 6 1 2 3 4

Search: Search took 0.00 seconds.

  1. hmm, turns out the teensy I thought was 3.2 is...

    hmm, turns out the teensy I thought was 3.2 is actually a purple version 3.1. I thought all my purple teensies are 3.2. I guess not.
    I'll get a couple 3.2 to try. The last 3.2 I was using started...
  2. I used 1.5k pullup and program runs and I am able...

    I used 1.5k pullup and program runs and I am able to upload programs without having to pull the teensy out of the socket.
    There might be an optimal value, but I don't want to spend more time on this...
  3. yeah I figured that, so in my final circuit, I...

    yeah I figured that, so in my final circuit, I used 10k. It works to run the program, but I am unable to upload a new program. I have to unplug the teensy to upload a new program. No wonder there is...
  4. ok, I connected a 1k resistor from pin 33 to 3.3v...

    ok, I connected a 1k resistor from pin 33 to 3.3v and that seems to fix the issue, even on teensy 3.1.
  5. I just ran into this pin 33 issue on teensy 3.2....

    I just ran into this pin 33 issue on teensy 3.2.

    pin 33 is connected to a ULN2003 input, so I am using the pin as output.
    when teensy is powered up, it immediately shuts down. If I pull it out of...
  6. Replies
    39
    Views
    6,900

    I have a teensy 3.2 that's been working for...

    I have a teensy 3.2 that's been working for months then suddenly stopped working and runs hot.
    I tested resistance on all pins and compared with a new teensy 3.2, and the only difference I see is...
  7. Replies
    675
    Views
    380,344

    I did not specify timeout. Is timeout the only...

    I did not specify timeout. Is timeout the only way auto retry can be triggered?
    the send then receive signals looked fine, and the resend went out immediately after the receive. Come to think of it,...
  8. Replies
    675
    Views
    380,344

    I2C_AUTO_RETRY I used this library because I...

    I2C_AUTO_RETRY

    I used this library because I need to use the alternate i2c pins for teensy 3.2, and noticed I am getting an error (or the slave device is returning an error message).

    I hooked...
  9. Thread: K66 Beta Test

    by doughboy
    Replies
    1,558
    Views
    530,816

    do you have the back side pinout?

    do you have the back side pinout?
  10. Thread: K66 Beta Test

    by doughboy
    Replies
    1,558
    Views
    530,816

    does the K66 chip have 100 GPIO? I frequently...

    does the K66 chip have 100 GPIO?
    I frequently need a lot of IO lines, and arduino mega with 70 total works nicely. wish there was something closer to this in teensy.
    if the board is 2.4in, then...
  11. Thread: K66 Beta Test

    by doughboy
    Replies
    1,558
    Views
    530,816

    how many total digital i/o pins will this have?

    how many total digital i/o pins will this have?
  12. Replies
    1
    Views
    1,190

    this does not exactly answer your question, but...

    this does not exactly answer your question, but may be an option to what you are trying to do.

    I posted this code in another thread.
    It self calibrates the touch sensor and gives you the...
  13. Replies
    7
    Views
    2,723

    interrupt numbers are defined in kinetis.h. ...

    interrupt numbers are defined in kinetis.h.

    The second link is for AVR chip, not ARM.
    The command enables calling the interrupt routine, and you must have the matching isr. So if you enable...
  14. The idea is the same. I take the time between 2...

    The idea is the same. I take the time between 2 highs, which is time for half revolution. (2 pulses per revolution).
    I use CHANGE (interrupt on both high and low) to make sure the 2 highs are really...
  15. that code is generating json data. The client...

    that code is generating json data. The client webpage use javascript ajax calls to get the rpm value to display. I run a webserver on the arduino mega.
    the teensy version I am working on will use...
  16. Replies
    13
    Views
    4,872

    I guess I answered my own question. The only...

    I guess I answered my own question. The only difference is the hi/lo input level, but does not make any difference using teensy 3 as input. So it is not really necessary to use the chip with the "T" ...
  17. Replies
    4
    Views
    1,923

    the isr code will auto recalibrate as needed (on...

    the isr code will auto recalibrate as needed (on the fly at runtime). you can move touch plates, change size, etc. and the code will auto recalibrate. The base value is different with my circuit on...
  18. for the pwm part, you can simply set the pwm...

    for the pwm part, you can simply set the pwm frequency and do the usual analogWrite command.
    given pin 4 is connected to fan pwm pin, pin 7 is pulled up to 3.3v and connected to tach pin

    ...
  19. Replies
    4
    Views
    1,923

    I posted code in another thread...

    I posted code in another thread that use interrupts for touch sensor, and initialization is self calibrating so you don't need to do trial and error with different parameter values. The code prints...
  20. Replies
    13
    Views
    4,872

    what would be the difference, or a good reason...

    what would be the difference, or a good reason not to use HC version?
    I asked because I went and bought a 74HCT245 from a local (arrow electronics) store, and they gave me 74HC245 and charged me for...
  21. Replies
    1
    Views
    1,301

    saw in local news yesterday

    I saw in yesterday's local news about thieves high jacking wireless car key codes and thought the device looked like it is using a teensy.
    sure enough, I found this on a google search
    ...
  22. Replies
    21
    Views
    5,678

    I'm pretty sure you can orient the SD socket...

    I'm pretty sure you can orient the SD socket opening to the side.

    where did you get the pcb done?
  23. I was losing connection when I had ping/pong...

    I was losing connection when I had ping/pong enabled. You can always reconnect because you can get notified with OnDisconnect callback. With Wifi, there is no guarantee.
    my implementation only...
  24. I've been running my test for over a month non...

    I've been running my test for over a month non stop, and for my application, I think it is quite stable.
    I also implemented websocket ping/pong, and I think the firefox implementation is not quite...
  25. I have implemented websocket. I use my own...

    I have implemented websocket. I use my own esp8266 library and customized webduino webserver library. The websocket part is basically an extension to the webduino library.
    Note that since esp8266...
  26. Replies
    21
    Views
    5,678

    6966 This is how I connect microSD. So if you...

    6966

    This is how I connect microSD. So if you meant pins 1 and 8, just leave them unconnected.
  27. Replies
    7
    Views
    3,464

    As per specs, the tach pin is open collector, you...

    As per specs, the tach pin is open collector, you can connect the tach pin to a 3k resistor pullup to 3.3v. I use this on my fan circuit.


    https://youtu.be/DwWnl3bREww

    Also, as per specs, if...
  28. Replies
    7
    Views
    2,246

    you can do something like IntervalTimer...

    you can do something like



    IntervalTimer myTimer ;
    const int PWM_pin = 6 ;
    void pulse() {
    digitalWriteFast(PWM_pin,HIGH);
    myTimer.begin(countTime,2000);//adjust as necessary to get your...
  29. Replies
    11
    Views
    2,461

    you did not say if you configured pin 3 as output...

    you did not say if you configured pin 3 as output or not.
  30. you can wire a teensy (or a mega) between the...

    you can wire a teensy (or a mega) between the teensy and the Pro mini.

    the sketch of the middleman teensy will just be a passthru code

    something like


    if ( Serial.available() ) {
    ...
  31. Replies
    3
    Views
    1,813

    sdfat library use this for ARM processor ...

    sdfat library use this for ARM processor



    extern "C" char* sbrk(int incr);
    int SdFatUtil::FreeRam() {
    char top;
    return &top - reinterpret_cast<char*>(sbrk(0));
    }
  32. Replies
    100
    Views
    31,727

    So today I had to reinstall teensyduino so I...

    So today I had to reinstall teensyduino so I figured I'll use the default serial1 that comes with 1.27. It did not work. I think using software to control RTS is not able to keep up. I renamed the...
  33. Replies
    21
    Views
    5,231

    http://mcuoneclipse.com/2014/08/09/hacking-the-tee...

    http://mcuoneclipse.com/2014/08/09/hacking-the-teensy-v3-1-for-swd-debugging/


    I still use the good old Serial.println for debugging/iterative development and for ISR code, blinking the LED.
  34. Replies
    34
    Views
    7,446

    I know you said you are using 4 touch pins, but...

    I know you said you are using 4 touch pins, but here is the code I use for 2 pins (pins32 and 33). You can probably expand this to 4.
    With the 2 pins, I simulate 3 buttons (3rd button if both pins...
  35. I ran into the same issue. Unfortunately, as you...

    I ran into the same issue. Unfortunately, as you found out, the way this is implemented in teensy, your user code will "lack elegance". This is not the case with AVR library. What you want to do is a...
  36. Replies
    8
    Views
    5,580

    uc berkeley has the dreambox 3d printing vending...

    uc berkeley has the dreambox 3d printing vending machine.
  37. Replies
    11
    Views
    2,224

    you need to calibrate to find a base value when...

    you need to calibrate to find a base value when the program starts. This takes care of the situation you described. Any reading > base (I use base + 20%) value means the pin was touched.

    I wrote...
  38. Replies
    100
    Views
    31,727

    You do know how the idle interrupt works right?...

    You do know how the idle interrupt works right? and you know the original source handles idle interrupt right?
    if say there is one more byte that arrives and then no more, your receive interrupt...
  39. Replies
    100
    Views
    31,727

    I think I tried this method and it did not work...

    I think I tried this method and it did not work as it leaves data stranded in the fifo if it was during an idle interrupt when you set RTS in software. You will have to add code in read function to...
  40. ok, try removing the virtual from the...

    ok, try removing the virtual from the declaration.

    it must work, as that will be no different than declaring foo() function for your class.

    I have the exact same requirement (to pass a serial...
  41. try to add this to your Comms class public...

    try to add this to your Comms class public section



    virtual void begin(uint32_t baud) {_serial.begin(baud);};
  42. Replies
    53
    Views
    9,703

    if you can read/understand the logic of my AVR...

    if you can read/understand the logic of my AVR code here

    https://github.com/d0ughb0y/I2C_GPS_NAV_v2_2_PPMSUM/blob/master/PpmSum.ino

    you can convert it to work on teensy.

    It basically enables...
  43. Replies
    100
    Views
    31,727

    In my final code here...

    In my final code here
    https://forum.pjrc.com/threads/30536-Complete-implementation-of-UART-hardware-flow-control

    I kept the change/diff from the original code minimal, so I left the RX threshold...
  44. This issue is resolved here ...

    This issue is resolved here

    https://forum.pjrc.com/threads/30536-Complete-implementation-of-UART-hardware-flow-control
  45. Replies
    4
    Views
    1,669

    FWIW, MCGIRCLK is just as easy to setup. ...

    FWIW, MCGIRCLK is just as easy to setup.



    MCG_C1 |= MCG_C1_IRCLKEN; //enables 4mhz clock
    MCG_C1 |= MCG_C1_IREFS; //set IREFS to switch to 32.768khz clock



    I tested this to work on...
  46. FWIW, I am using ACS712 and connected the output...

    FWIW, I am using ACS712 and connected the output directly to teensy 3.1 analog input pin and not getting correct reading. I use the 5amp module and since I am measuring DC current, simply connected...
  47. Replies
    12
    Views
    2,882

    how do I use SCL1 and SDA1 on pins 29 and 30? ...

    how do I use SCL1 and SDA1 on pins 29 and 30?

    or do I need to use the other i2c library to use it?
  48. Replies
    16
    Views
    7,647

    I tried that. I added that because the ADC...

    I tried that. I added that because the ADC analogRead sample has it. Maybe I should ask ADC library author.
  49. Replies
    16
    Views
    7,647

    I am running into this same problem. In my case,...

    I am running into this same problem.
    In my case, the input voltage range is from 2.5 and decrements down to around 2.0 volts then returns straight to 2.5 and repeat.
    The voltmeter reading shows the...
  50. Complete implementation of UART hardware flow control

    This change is based on the other thread on adding rts/cts flow control.
    https://forum.pjrc.com/threads/29446-Teensy-Hardware-Flow-Control-RTS-CTS

    I initially tried that and found out it still...
Results 1 to 50 of 255
Page 1 of 6 1 2 3 4