Search results

  1. K

    IntervalTimer/ISR question

    I was able to resolve my issues by putting only a boolean variable in the ISRs and all other activities in the main code in an if statement for when the flag is set. To speed up the SD card and i2c writes, I tidied the individual peripheral commands (lcd.write... write.file) by first writing...
  2. K

    IntervalTimer/ISR question

    Actually, those are only changed when the program is not running. They are not dynamic variables. Do I still need to declare them as volatile even though they do not change? I am using a teensy3.2. I am a noob on interrupts and timers. I have an interrupt which is triggered by an external...
  3. K

    IntervalTimer/ISR question

    I know the ISR must run quickly and have tried to make them small. I have some code running, currently, and do not have consistent run times. My guess is I am trying to do too much in the ISR. Can someone give be some guidance on dos and dont's in the ISR? Paul's example shows this void...
  4. K

    Teensy 3.1 GPIO interrupts

    I get it now. If I disable interrupts, I have trouble with many of the functions I am trying to use as well as cannot upload code. disable/enableInterrupt is what I have done and things are working correctly. Thanks for the help!
  5. K

    Teensy 3.1 GPIO interrupts

    Yes, I have volatile variables. yes it works, I just cannot use cli and sei to disable interrupts. the only way the interrupt gets disabled is if I use attachInterrupt and detachInterrupt I'll simplify it and post it tomorrow. THX!
  6. K

    Teensy 3.1 GPIO interrupts

    I'm struggling with this as well. Running a Teensy 3.2. I have a GPIO ISR which is reading a pin and gets the time (millis()) when it goes low. All works just fine except cli() and sei() do nothing. The only way I can reliably get it to not check interrupts is to detachInterrupt(Pin); and...
  7. K

    Can't compile SD card functionality (Teensy 3.1 / TeensyLoader 1.18 / Arduino 1.0.5 )

    Paul, Thanks! That was it. I removed all the libraries I am not currently using from the libraries directory and now they compile. We will now see if I can write a file to the SD card! Keith
  8. K

    Can't compile SD card functionality (Teensy 3.1 / TeensyLoader 1.18 / Arduino 1.0.5 )

    Trying to get SD capability going as well. I have Arduino 1.6.7 installed and teensyduino 1.27. When I try to compile any of the examples, I get compile errors. To duplicate, grab the example 'cardinfo.ino' file from the example directory and try to compile it. I get these errors and it does not...
  9. K

    Mbed API compatibility layer

    A couple questions on this old thread. I looked at the github files. Does the target-teensy_3_1 work with the 3.2 as well? Also, If I have a fairly large Mbed LPC1768 project I have been working on converting over to teensy 3.1. Can I just compile it in the online mbed IDE then convert to hex...
  10. K

    Internal pull up and pull down resistors on teensy 3

    Anything new on this functionality? The pins_teensy.c has become a bit more complicated in the last year and I am unsure of how to implement this.. Can Paul add this? Is there a reason it is not added? Keithg
  11. K

    Teensy 3.0 - Engine Management System

    Do you have a link to your work on Teensy EMS? I have not found it via google search... Keith
  12. K

    Teensy 3.0 - Engine Management System

    hellandsen, I am considering a similar but much smaller and less complicated project and would like to look at your code, if possible. The project is mapped timing: 2d lookup of advance. (much simpler than full fuel injection). Distributor input (hall sensor on interrupt), MAP (analog input...
  13. K

    24 bit audio boards

    whollender's board looks awesome, but is probably overkill for me. I'm more interested in making a DAC and, following this, an ADC (Based on the PCM1803). Is there any interest in this board with the teensy and the PCM5122? I do not have the time right now to build it and all the rest that goes...
  14. K

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    Can we set pin mode using GPIOx_PDIR as well? I ran across this in my adventure converting this mbed code and it appears that they use something similar. On the Teensy 3.x, do these commands work/make sense? GPIOD_PDIR &= ~(1 << 2); // Set pin D2 as input. ... GPIOD_PDIR |= (1 << 2); // Set...
  15. K

    Tutorial on digital I/O, ATMega PIN/PORT/DDR D/B registers vs. ARM GPIO_PDIR / _PDOR

    I am pretty novice at all this, but am converting over an mbed LPC1768 project to Teensy 3.1. It is a can/bdm project. I am in the process of wading through the code and changing it over to Teensy and am trying to get some port register stuff working for the BDM portion. The code I am trying to...
  16. K

    24 bit audio boards

    @ kpc I did some testing tonight. I did not have a spare SD cars, so no grabs. I did photo the scope. Will try to do it again tomorrow. I will need help interpreting. 2 pics attached. 1 of the 2 channels combined and the other which shows the output of 1 channel driven at 0 and the other...
  17. K

    24 bit audio boards

    @kpc Update. I got the boards back and soldered one together tonight. It 'works', but there is a huge 60Hz buzz when I touch the ground (USB shield for example). Did a little checking and I have the pinouts on the rca jacks wrong (gnd and pin reversed). The 3.5mm jack is correctly connected...
  18. K

    Teensy 3.1 and CAN Bus

    Me too. I ordered the boards and will put one together when I receive it. I also am having trouble finding the sd card socket... No on DigiKey, SparkFun, AdaFruit and Newark... Any hints? As the link shows, these are available from Seed Studio...
  19. K

    24 bit audio boards

    kpc, I changed the pads to be like the example 3. I did not make that 'final touch' change, though, as I forgot before I sent it off. I'll not be using the external 5V, though. We have a sophisticated scope here at work but no dedicated spectrum analyzer. After I get the boards back and...
  20. K

    24 bit audio boards

    kpc, You rock! I am sure I did not comprehend all of it, but definitely have a little bit better understanding of this complex process. Also, thanks to the forum for bearing with me here. I will use this thread and my board layouts as I go along when I have to do something like this again...
  21. K

    24 bit audio boards

    kpc, Thanks again. I think I follow most of your suggestions, but a couple have me stumped. "but as there are now 4 C's at the output close together, I would move one of these C' as a 10/100nF input decoupling C" The supply has 10uf/10nf on its output and the chip has 10uf/10nf as well. Do you...
  22. K

    24 bit audio boards

    kpc. The Gerbers are attached. One thing that was not clear to me was if I should connect the charge pump to the digital ground or the analog ground. I have it on the digital. Also, the low noise regulator is set up for the analog side of the 5122 chip. I use the on board regulator for the...
  23. K

    24 bit audio boards

    kpc, Thanks for the help. I have not had time to work on it. Maybe this weekend. I spoke too soon, though. I do not think I have to rotate the part, but do have to move the regulator to the other side to do what you have outlined. I'll make these changes and see if I understand all of it and...
  24. K

    24 bit audio boards

    kpc, Thanks for the instruction. I really appreciate it. Yes, this is a dedicated digital to analog device (playback only). No analog in to deal with. My (faulty) logic was to split the ground on the bottom and connect the analog and digital at J1. The ??? on your jpg refers the portion of the...
  25. K

    Teensy 3.1 and CAN Bus

    This is great work. I just ordered the board from OSHPark. I'll start putting together when I get it. I am converting an mbed project over to Teensy 3.1. Just4Trionic This library will make that much easier, thanks. Also the board will make it much easier to get this into the car to see what...
  26. K

    24 bit audio boards

    @kpc Thanks for the reply. I am an ME with audio interests, so I am a bit light on the theory and experience for board layout. I did not get that analysis from the published graph of only 14.3 bits, but nice to know. I am wondering if I need to do anything more/different to get the best...
  27. K

    24 bit audio boards

    Paul, I recently made some boards to interface a pcm5122 to a Raspberry Pi. I read this comment and am wondering if I need to add this level of complexity. I do not believe the i2c is used except to change volume or filter, etc, so during a 'listening session' I assume it is not contributing...
  28. K

    Processing, USB Serial and Teensy 3.0/3.1

    I believe that is what is happening. I have seen mention of doing some wait command on the serial port. Is that what is appropriate here? I intend to run the code currently with the serial port for debugging/tuning and will be using it periodically without using/needing the serial port...
  29. K

    Processing, USB Serial and Teensy 3.0/3.1

    I have an arduino running a sketch controlling a heater. I also have a Processing sketch to graph the output. I want to move this to a Teensy 3.0. I have set everything else up on the Teensy 3.0 (sensors all working over SPI, display, buttons). The system works. Now to graph a run... No go. I...
  30. K

    ChibiOS/RTand FreeRTOS for Teensy 3.0

    Can anyone post a simple recipe to get this going on a teensy 3.0? I am not savvy enough to figure this out, but want to see if it may be a solution for a simple/small ethernet connected device. If not chibi, then some sort of an OS... KeithG
  31. K

    Teensy 3 clock code change

    Paul, I have been using this code for a while to set the time on my teensy 3 clock. Just upgraded to 1.0.5/teensyduino(current as of 6/13/2013). Tried to compile this code and it fails: setSyncProvider(Teensy3Clock.get); // the function to get the time from the RT if (set_flag == true) {...
  32. K

    Need pointers in converting a program from mbed to teensy 3

    I have built 2 teensy 3 projects and am really enjoying working with this board. Now I am looking at converting an mbed project to teensy 3.0. Is this possible? Are there any pointers that may be able to help me along the path? The project is this: Just4Trionic EDIT: I guess the most...
  33. K

    Teensyduino 1.12 Released

    Paul, No, I do not. When I added 4.7k pullups, it all came back. Thanks! I figured it was something I was doing wrong. Keith
  34. K

    Teensyduino 1.12 Released

    Paul, I use the New Liquid Crystal library and a PCF8574A to control a display. I hope it is not a mistake I made, but this code compiles and runs correctly on Beta 11+Arduino 1.0.3 but not with 1.12+Arduino 1.0.3. It compiles with no errors, but nothing displays on the LCD. edit1: I am using...
  35. K

    Need help with analogWrite and digitalWrite on same pin

    D'oh! Sorry for the sideshow. I was using a pin which is not PWM capable... Now I can get it to work, but have to redefine the pin when I use it as digital or PWM. I get it now. Keith
  36. K

    Need help with analogWrite and digitalWrite on same pin

    Group, I have ported a working sketch from Arduino to Teensy 3.0. All of it works beautifully except when I try to get a PWM output from a pin. It seems I am behind the times because this simple code does nothing on the pin when I try to analog write to it. I am running Beta11 on Ubuntu 12.04...
  37. K

    digitalWrite doesn't work after analogWrite on the same pin

    Digging up an old thread. I have a sketch that needs to turn a pin full on (digitalWrite) then in another mode, it needs to be a PWM (analogWrite). It worked on an Arduino, but analogWrite happens later in the code, after it has already been digitalWritten and any PWM value in analogWrite...
  38. K

    Teensy 3.0 Beta11 Software

    Paul, I am not really sharp at diagnosing the syslog stuff... Now, it is a bit variable. SOmetimes it will reboot on the 12th time, others it tries 50 times and quits. I am reloading the blink sketch just to make it consistent and reliable. I am set at USB type serial. Jan 17 21:06:11...
  39. K

    Teensy 3.0 Beta11 Software

    Michael, I neglected to mention that. It its still intact and present. I also restarted udev and arduino. Same result.
  40. K

    Teensy 3.0 Beta11 Software

    Paul, It seems to work here with the one sketch I have tried. I have another project at work and will try it tomorrow. The only thing I notice is that auto reboot no longer works on the laptop I am using. I suspect it is an 'upgrade issue' as I am running 12.10 Ubuntu on it currently and it has...
  41. K

    Errors during code load Ubuntu 12.10 x64

    I recently updated a laptop to 12.10 from 12.04. This always worked flawlessly on 12.04. With 12.10, sometimes it will load, but mostly, it takes a while then I get 49 attempts then it asks me to push the reset button. When I enable verbose output during upload, it gives 49 of these... status...
  42. K

    Installing on Ubuntu 12.04

    That has not been my experience. I am running 64 bit Ubuntu. I have not added any 32 bit libraries that I am aware of. My convoluted install process: I originally installed the ubuntu package 'sudo apt-get install arduino'. This gets an old version of Arduino installed. I then downloaded the...
  43. K

    Internal pull up and pull down resistors on teensy 3

    Paul, Is there any plan to have INPUT_PULLDOWN functionality similar to the INPUT_PULLUP? Keith
  44. K

    Teensy 2.0, Attach interrupt question

    Thanks for the tip. It wasn't the ground. Even without the scope ground connected, it would run when I touched the scope probe. I put a 0.01 uf cap to ground on that lead and it works consistently, now.
  45. K

    win7 x64 will not auto-reset

    This appears to be user error. :o I was working on it yesterday and noticed that there was a windows info box behind the IDE and in it I could tell windows to quit looking for a driver. Once I did that, it works like the linux machine, just slower. Keith
  46. K

    win7 x64 will not auto-reset

    I tried this on another laptop today which is XP (home is all Linux and work is all windows) and had no issues programming the Teensy 2. It auto-rebooted every time. This just seems to be with Win7 x64... I do not know which is the driver the win or the x64. All of our windows machines at work...
  47. K

    Teensy 2.0, Attach interrupt question

    Group, I have converted a sketch which I was running on an Arduino Mega to teensy 2.0. Most everything works, but I am having a strange problem and wanted to make sure I was coding the interrupt correctly. This is snippets of the code: int zc_pin = 7; // external interrupt Teensy...
  48. K

    Controlling a pump with teensy3

    Alexander, I believe the teensy3 can provide 9mA of current on an output pin from what I read here. That opto may work, but it looks like it is rated at 10mA. On the drive side, it can only drive 0.5A, is that enough for the motor? Have you considered using a logic level FET to drive the motor...
  49. K

    win7 x64 will not auto-reset

    Paul, I cannot reliably auto-reboot program any of my teensies (2 or 3) on win 7 x64 (java is 1.7.something). I have never had an issue with any arduino board. I can pretty regularly get them to program after I hit the reset button, but an 'auto-reboot' re-program happens only once in maybe 20...
  50. K

    Programming a Teensy via Win 7

    New thread started Sorry
Back
Top