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

Search:

Type: Posts; User: Dave X

Search: Search took 0.00 seconds.

  1. Replies
    0
    Views
    1,163

    Barometer using Teensy2.0, BMP085 and LCD

    Hi All,

    I made a simple barometer for my son's Cub Scout belt loop:

    https://raw.githubusercontent.com/drf5n/BarometerLCD/master/Breadboard.png

    The code is on github at...
  2. Teensy3.0 with Txtzyme/Arduinozyme to bypass PWM fan control on a broken motherboard

    I used a Teensy 3.0 to save replacing a Sun Ultra 40 M2 375-3476 motherboard ($500 refurbished) when the fan speed controllers seemed to be shorted out.

    By cutting three the blue PWM control...
  3. If you change the last rule of 49-teensy.rules to...

    If you change the last rule of 49-teensy.rules to read:



    KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", MODE:="0666" \
    , SYMLINK+="cu.teensy.p$attr{idProduct}...
  4. And for the Teensy 3.1 the compiler flag is ...

    And for the Teensy 3.1 the compiler flag is
    -D__MK20DX256__ so for teensy 3.0 and 3.1 specific code you could wrap it in:



    #if defined(__MK20DX256__)|| defined(__MK20DX128__)

    ...

    #endif
  5. Replies
    82
    Views
    45,488

    https://www.pjrc.com/teensy/loader_cli.html has...

    https://www.pjrc.com/teensy/loader_cli.html has the sources files.
  6. This worked on mine: $ OS=MACOSX...

    This worked on mine:


    $ OS=MACOSX SDK=/Developer/SDKs/MacOSX10.6.sdk make
    cc -O2 -Wall -DUSE_APPLE_IOKIT -isysroot /Developer/SDKs/MacOSX10.6.sdk -o teensy_loader_cli teensy_loader_cli.c...
  7. Replies
    87
    Views
    141,969

    I took the PJRC SD adaptor and put a 7-pin...

    I took the PJRC SD adaptor and put a 7-pin right-angle header on it with the two extra pins extending beyond MISO, I then connected the +5V to the pin adjacent to MISO and the pad next to the 'V' in...
  8. Replies
    36
    Views
    46,877

    Some small details for the Teensy 3.0: The...

    Some small details for the Teensy 3.0:

    The internal reference is 1.2V, can be read with analogRead(39). The internal reference may be chosen with analogReference(INTERNAL),...
  9. Replies
    4
    Views
    4,919

    The library at...

    The library at http://playground.arduino.cc/main/DHT11Lib worked for me with a Teensy 3.0:



    #include <dht11.h> // from http://playground.arduino.cc/main/DHT11Lib
    dht11 dht;

    // Plug DHT11...
  10. Replies
    3
    Views
    2,852

    On the older thread, Madox pointed to some hints...

    On the older thread, Madox pointed to some hints that might help make the relatively unmaintained USBIP work without the BSOD.
  11. Replies
    19
    Views
    15,415

    I think Ian started the thread as...

    I think Ian started the thread as http://forum.pjrc.com/threads/23741-remote-programming-with-openwrt but it looks like the issue might be that USB/IP cli connects a specific remote USB to a local...
  12. Replies
    4
    Views
    3,715

    There seems be one in (SIM_UIDH,SIM_UIDMH,...

    There seems be one in (SIM_UIDH,SIM_UIDMH, SIM_UIDML, SIM_UIDL).

    Note that this sketch sometimes seems to hang/or kill the USB serial on my teensy3 after powerup or reload after the '...'. I'm...
  13. Replies
    4
    Views
    3,715

    @taskman: I seem to crash my teensy at the ...

    @taskman: I seem to crash my teensy at the FTFL_FSTAT = FTFL_FSTAT_CCIF; line in the setup()->read() code below. If I comment out the initiation of the flash command in read(), it produces the full...
  14. Thread: Teens3 Makefile

    by Dave X
    Replies
    7
    Views
    5,629

    http://www.pjrc.com/teensy/loader_cli.html...

    http://www.pjrc.com/teensy/loader_cli.html version 2.0 doesn't look like it supports Teensy 3.0

    http://www.pjrc.com/teensy/beta/load_linux_only.c looks like it does Teensy 3.0, but linux-only.
    ...
  15. Replies
    3
    Views
    5,603

    OT--SysTick documentation: I thought that since...

    OT--SysTick documentation: I thought that since this SysTick stuff in doesn't seem to be in the MK20DX128 reference manual at http://www.pjrc.com/teensy/datasheets.html, folks might want to look at...
  16. Replies
    6
    Views
    4,148

    Blend the ReadASCIIString example and the Blink...

    Blend the ReadASCIIString example and the Blink example.
  17. Replies
    2
    Views
    2,504

    Teensy 3.0 Makefile and "Hello world!" over USB in plain C

    I've been working on porting a c (non-c++) program to Teensy 3.0 and found this to work to get to a fairly plain hello world response:



    mkdir JUNK
    cd JUNK
    cp -a...
  18. Replies
    2
    Views
    2,504

    The Makefile doesn't process .ino files into C or...

    The Makefile doesn't process .ino files into C or C++ files, so I think that all you are getting is a bare 0x4f4 byte file based solely on the mk20128dx.ld file.

    You are missing a main() routine...
  19. Paul, Would it be good to add a ...

    Paul,

    Would it be good to add a -D__MK20DX128__ to in the CPPFLAGS in the Makefile to make it consistent with the Arduino compile?

    Or maybe in mk20dx128.h add a #define __MK20DX128__ or an...
  20. Thread: AVR-like ISR()

    by Dave X
    Replies
    5
    Views
    10,575

    Thanks. That helps a lot. I'm sort of messing...

    Thanks. That helps a lot. I'm sort of messing with porting some ISR()-using code, and I'm happy to not have to mess with it.

    Maybe pasting your message on...
  21. CORE_TEENSY seems to be defined during Makefile...

    CORE_TEENSY seems to be defined during Makefile compilations, but not during default Arduino compilations. I modified the above sketch to check for CORE_TEENSY.

    Edit: if I #include "WProgram.h"...
  22. That works in Arduino, but it doesn't seem to get...

    That works in Arduino, but it doesn't seem to get defined using the Makefile. With verbose Arduino compliation output, I see that it is set. And the command line option seems to be set on my Mac...
  23. Uisng ifdef to differentiate between teensy 2.0, teensy 2.0++, and teensy 3.0

    What's the best way to test for the chip/device being compiled & maybe provide for alternate code for programs on the the teensy 3.0?

    I saw some tests in...
  24. Thread: AVR-like ISR()

    by Dave X
    Replies
    5
    Views
    10,575

    If I put that into main.cpp and try to compile it...

    If I put that into main.cpp and try to compile it with a Makefile, I get warnings that the attributes are ignored:

    main.cpp:44:1: warning: 'signal' attribute directive ignored [-Wattributes]...
  25. Replies
    42
    Views
    39,347

    FTM and interrupts.

    I think the mk20dx128.c & mk20dx128.h files now have the appropriate lines to let you set up your own interrupts without modification . The only one that isn't predefined as a weak alias to...
  26. Non-periodic timing with FTM1

    If one needed non-periodic interrupts, like for coordinated-axis stepper motor control as in https://github.com/triffid/Teacup_Firmware/blob/Gen7/timer.c#L85, would trying to use FTM1 (and...
  27. Here's another differential ADC code for the...

    Here's another differential ADC code for the Teensy and Teensy++:



    #define MUX_1V1 0b011110 // works for both
    #define ADMUX_MASK 0b11111 // MUX4..0 in ADMUX works for both
    #define...
  28. Replies
    6
    Views
    3,726

    640x480*10fps at 8 bits/pixel = 3Mbyte/sec. To...

    640x480*10fps at 8 bits/pixel = 3Mbyte/sec. To get it down to 2Mbit/sec, you'd have to compress it more than 12:1, so you'd have to do all your input, processing, compression, and transmission in...
  29. From the measurements above, it looks like my...

    From the measurements above, it looks like my alligator-clip-breadboard circuit has about 8 counts of noise. At x200 gain and 2.56V AREF, 1 count is 2.56/512/200=25uV, so that's already...
  30. Using Differential ADC atmega32U or at90usb1286 (Teensy or Teensy++) w/Thermocouple

    I've been fiddling with the x1 X10 and X200 gain differential ADC on the Teensy++ and hooked it up to a Type K thermocouple. Here's my code so far:



    /* SPICE-ish Connections:

    USBcable...
Results 1 to 30 of 30