Search results

  1. P

    Teensyduino 1.31 Beta #1 Available

    There is an error message when compiling the example eeprom_put for Teensy 3.2, compiled using Arduino 1.6.12 and Teensyduino 1.31 Beta #1 on Windos 7 x64: C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\EEPROM/EEPROM.h: In instantiation of 'const T& EEPROMClass::put(int, const T&)...
  2. P

    What are the advantages of the Teensy LC/3.x optimized speeds?

    Would the optimized code also run faster when the CPU runs at 8MHz or even 4MHz? If yes then this would be very interesting for low power applications.
  3. P

    Teensy 3.1 / Save Power / Disable ADC

    Deactivating the ADC using the code from Duff results in 80-100uA less. Thanks for the help.
  4. P

    Teensy 3.1 / Save Power / Disable ADC

    Batttery voltage is measured every 60 seconds. In between I would like to turn off the ADC in order to save power. Just a short moment befor the measurement is done I want to switch on the ADC again, then turn it off after the measurement. On Teensy 2 this can be done using ADCSRA = 0 and...
  5. P

    Teensy 3.1 / Only some GPIO pins and I2C used / How to enable low power at 48MHz?

    Duff, it will be great when you expand your Snooze library. Hope that there will be some powersavings in the end. I have to run the CPU with 16MHz in order to have enough computational power. Just an idea for your library: config might me used for other parts in the code. If someone wants to...
  6. P

    Teensy 3.1 / Only some GPIO pins and I2C used / How to enable low power at 48MHz?

    @Duff: Tried with your code, but there is no change to see with my multimeter. Looks like the power saving is only really small. @Paul: What about the idea to use a crystal with 8MHz or even 4MHz? The CPU runs at 16MHz, but also 24MHz must be possible. This should be doable and I could easily...
  7. P

    Teensy 3.1 / Only some GPIO pins and I2C used / How to enable low power at 48MHz?

    Tried to use the Snooze library from Duff, with the following simplified code example: #include <Snooze.h> void setup() { SnoozeBlock UART1_OFF; SnoozeBlock UART2_OFF; SnoozeBlock UART3_OFF; SnoozeBlock USB_OFF; SnoozeBlock I2S_OFF; SnoozeBlock SPI_OFF; } void loop() { } But there is no...
  8. P

    Teensy 3.1 / Only some GPIO pins and I2C used / How to enable low power at 48MHz?

    Please forgive me for asking numb questions. But what is the command to deactivate the UART1? Tried many combinations of setPeripheral(UART1_OFF) etc. but nothing works, there are always compile errors. The examples in the Snooze library have no example how to deactive peripherals.
  9. P

    Teensy 3.1 / Only some GPIO pins and I2C used / How to enable low power at 48MHz?

    Is it possible to deactivate everything else on a Teensy 3.1 except GPIO for some pins and I2C (A4/A5)? The reason is that I need to run some vomplex filtering with 100Hz, and would like to use the lowest power possible. Lowering down the CP frequency does not work well. With 48MHz the filter...
  10. P

    Help needed for creating a simple PWM tone using the Audio library on pin 5

    Please run the script above. The sound that gets created is somehow doddery and not clean. When running the main loop with 10Hz or even with 1Hz then the sound is ok. But I need to run the loop with 100Hz.
  11. P

    Help needed for creating a simple PWM tone using the Audio library on pin 5

    The new tone is much better than the old version, but it's still not good enough. Please run the script below, then you will see what the problem is. unsigned long loopTimer = 0; unsigned long printTimer = 0; void setup() { loopTimer = micros(); printTimer = millis(); } void loop() {...
  12. P

    Help needed for creating a simple PWM tone using the Audio library on pin 5

    Can't get it to work, even when adding pinMode(5,OUTPUT). Looks I have to wait for the fix of Paul.
  13. P

    Help needed for creating a simple PWM tone using the Audio library on pin 5

    There is no sound when using analogWriteFrequency(5,500), also when using analogWrite there is nothing to hear from my piezo buzzer that is connected to digital pin 5 of a Teensy 3.1 Hope it doesen't take too long before a fix for the tone function is available.
  14. P

    Help needed for creating a simple PWM tone using the Audio library on pin 5

    Here is the simple code example: unsigned long loopTimer = 0; unsigned long printTimer = 0; void setup() { loopTimer = micros(); printTimer = millis(); } void loop() { int potentiometerValue = analogRead(9); int frequency = map(potentiometerValue, 0, 1023, 400, 2000); if...
  15. P

    Help needed for creating a simple PWM tone using the Audio library on pin 5

    Is there a simple solution to create a simple PWM tone on pin 5 of Teensy 3.1 using the audio library? The main loop that runs with 100Hz, and I would like to adjust the tone frequency with 100Hz also. But using the tone library results in an ugly tone using Teensy 3.1. When doing the same with...
  16. P

    Battery voltage measurement / What is AREF Pin? PTD6?

    In my code I use a battery voltage measurement, described here: https://forum.pjrc.com/threads/27053-LiPo-Battery-Monitoring-Circuit-amp-Code?highlight=voltage+battery: vBat = 1195 * 1.47 * analogRead(measurePin) // analogRead(39); What is the pin of analogRead(39) of the MK20DX256VLH7? PTD6?
  17. P

    Any Chance of a Teensy ++ 3.1?

    Two other things might be very interesting for a new Teensy 3.1++: The possibility to upload firmware simply in saving the new firmware as a hex file on an SD card. So for the end customer this will result in very simple firmware updates. Additionally to that it might also be very useful that...
  18. P

    simlpe solution for firmware update of embedded Teensy 3.1?

    I am looking for a simple solution for firmware updates of an embedded Teensy 3.1. It would be great to give customers an easy solution for firmware updates for projects like XC Tracer https://www.indiegogo.com/projects/xc-tracer. It's too complicated for a non expert to install Arduino, then...
  19. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    @mconsidine, thanks for your detailed tutorial. Eigen compiles now on Arduino 1.6.3 and Teensyduino 1.22 without any problem on my Windows 7 x64 computer. Like this it's very easy to do matrix math on Teensy 3.1. @Paul, what about the idea to integrate the Eigen library into the next release of...
  20. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    mconsidine, tried to copy what you did. I am using Windows 7 x64 and a Teensy 3.1. First I installed Arduino 1.6.3, and then Teensyduino 1.22, and finally gcc (4.9-2015-q1-update). But it looks like there needs some configuration to be done of gcc (4.9-2015-q1-update), but I don't know what and...
  21. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    kpc, the workaround with the custom abort function work with Arduino 1.0.6 an Teesyduino 1.20. The other versions do not compile. I will try to get my code working with the custom function workaround. Paul, I tried Linux, but couldn't install it on my mac where I have Windows installed. And on...
  22. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    Is there a chance to get the Eigen library compiling on Windows? I should code matrix math next week, and the Eigen library would be a great help...
  23. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    Tried this on Windows 7 x64 with Arduino 1.0.6 and Teensyduino 1.21. There are still the error messages when compiling. Now I try to install Ubuntu as a virtual machine; maybe that the Eigen library will compile then. But it would still be great to be able to use the Eigen library when Arduino &...
  24. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    Paul, is it possible to get a fix for that problem in the near future? It would be great to be able to use the Eigen library for solving complex mathematical problems on a Teensy 3.1.
  25. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    made a mistake, not selecting Teensy 3.1, instead an Arduino Uno was selected. Here are now the correct error messages for Teensy 3.1 and different versions of Arduino / Teensyduino on Windows 7 x64: Arduino 1.6.1 and Teensyduino 1.21 / Teensy 3.1 / 48MHz / Eigen313 In file included from...
  26. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    kpc, installed 1.6.1 and 1.21 on a new installed Windows 7 x64 machine. There is nothing else than arduino and teensyduino. But there is still the following error message: In file included from C:\Program Files (x86)\Arduino\libraries\Eigen313/Eigen313.h:35:0, from...
  27. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    Kpc, did you try with 1.6 or 1.6.1? The kill and getpid error appear with Arduino 1.0.5. With 1.6.1 the code simply does not compile. There is only the message "error compiling".
  28. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    With Arduino 1.0.5 and Teensyduino 1.19 or 1.20 the error messages are as follows: c:/program files (x86)/arduino/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/lib/thumb2\libc.a(lib_a-signalr.o): In function `_kill_r': signalr.c:(.text+0x14)...
  29. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    Detailed logging enabled. Maybe it has something to do with Arduino 1.6.1. Christoph, what were the versions of Eigen, teensyduino and Arduino that you have successfully used? Might it be possible to get the Eigen library that you have used together with a sample script? The sample script I...
  30. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    It just stops with a "Error Compiling".
  31. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    There is an error compiling: Using library Eigen313 in folder: C:\Program Files (x86)\Arduino\libraries\Eigen313 (1.0.x format) C:\Program Files (x86)\Arduino/hardware/tools/arm/bin/arm-none-eabi-g++ -c -Os -g -Wall -ffunction-sections -fdata-sections -MMD -nostdlib -fno-exceptions...
  32. P

    Eigen library for linear algebra / Teensy 3.1 / Help needed

    For matrix math it would be great to be able to use the Eigen library http://eigen.tuxfamily.org on Teensy 3.1. Eigen is a C++ template library for linear algebra like matrices, vectors, numerical solvers, and related algorithms. I found a link http://forum.arduino.cc/index.php?topic=144446.0 at...
  33. P

    Tone Function For Variometer

    I am working on a variometer for hang gliding / paragliding, based on a custom built Teensy 3.1. Now I would like to make the tone function a bit smoother. The actual code is as follows: if (toneEnable == 1){ tVario = millis(); tone(tonePin,frequency); toneEnable =...
  34. P

    Simple and configurable HEX uploader like XLoader or AX Loader needed

    Thanks WMXZ, this SW is very useful! This is exactly what I needed. And it's no longer necessary to press the reset button, perfect! So it will be very easy for customers to upload new code. Might it be possible to port the code for that one can also update the firmware using a Mac?
  35. P

    Simple and configurable HEX uploader like XLoader or AX Loader needed

    Thanks WMXZ! The only thing that's missing for my purpose is the need to press the button to initiate the download. My device I am working on is in an enclosure. And the customers should be able to upload the code in a simple way without having to install software, and also without the need to...
  36. P

    Simple and configurable HEX uploader like XLoader or AX Loader needed

    Ok, I got the point. Looks like the mk20dx256 is not included in the program. But I don't know how to modify and compile the source code of teensy_loader_cli.2.1 in order to get a working exe file for Windows. I only have limited skills in Arduino programming.
  37. P

    Simple and configurable HEX uploader like XLoader or AX Loader needed

    The simple uploader is still a problem. Tried with the teensy_loader_cli command line uploader, but couldn't make that work with Teensy 3.1. It would still be a good idea to have a simple and configurable Teensy 3.1 uploader for embedded Teensy 3.1 projects that use the Mini 54 chip on a custom...
  38. P

    Simple and configurable HEX uploader like XLoader or AX Loader needed

    I am looking for a simple and configurable HEX file uploader. The idea is to give the enduser a simple possibility to upload the firmware of an embedded Teensy 3.1 project, without the necessity to install Arduino and Teensyduino. The idea is to have something similar to XLoader...
  39. P

    SD FAT & GPS / Checksum Errors

    Problem Solved Increasing the RX buffer of Serial1 did the trick. Now data logging works for hours without any checksum error.
  40. P

    SD FAT & GPS / Checksum Errors

    Thanks for the reply. I don't know if there are bytes lost, since the checksum errors appear after parsing the NMEA strings. But I guess that it's probably the case. How can I enable the UART FIFO? Could you give me advice how to do that?
  41. P

    SD FAT & GPS / Checksum Errors

    The complete code is here: The schematic is very simple. The GPS is connected to RX1 / TX1, and the SD card is connected to pins 10,11,12 & 13. Data get's written to the SD card, that's not the problem. And the GPS NMEA strings will get parsed with no checksum errors when not writing to the SD...
  42. P

    SD FAT & GPS / Checksum Errors

    When logging data to an SD card using SD FAT and reading/parsing GPS NMEA strings using TinyGPSPlus in the same loop then the there there are checksum errors. On an average 1 of 30 or 40 GPS readings is corrupt when logging lots of data from an AHRS, baro and GPS with 50Hz. When using dummy...
  43. P

    Teensy 3.1 / How To Increase Buffer Size For Serial1?

    I would like to increase the buffer size of Serial1. Is there an easy way to do that with Arduino code, or is it necessary to modify the HardwareSerial.cpp?
  44. P

    LiPo Battery Monitoring Circuit & Code

    Here is a simple but reliable circuit and code for lipo battery monitoring. The battery powers a Teensy 3.1 and is connected to the Vin pin. A resistive voltage devider is used to bring down the voltage to be measured below 3.3V. You can use 4.7k and 10k for the resistors. When using 1%...
  45. P

    9- and 10-DoF LSM9DS0 shield for Teensy 3.1

    Maybe it's at least partly a software problem. When logging data with the command dof.calcMag(dof.mx) and in the same time also just dof.mx it looks that sometimes the dof.mx is changing, too high or too low, just as it would be a scaling problem, like the LSM9DO would be configured to another...
  46. P

    Embedded Teensy 3.1 / schematics correct?

    ok, thanks for the advice.
  47. P

    advice for embedded & simplified Teensy 3.1 needed

    There is no PCB yet, but I haver ordered a first prototype. The board will be powered by a lipo battery, but that circuit is not shown on my schematics. VREF_OUT is not right in that schematic, there must be a capacitor between VREF_OUT and GND.
  48. P

    9- and 10-DoF LSM9DS0 shield for Teensy 3.1

    I also had the magnetometer problem with the LSM9DSO. When logging data then suddenly the z-axis value of the magnetometer is completely wrong, ouputting a a value that is 10000x higher than what it should be. Looks like a software problem, how the data is read from the sensor. Using the...
  49. P

    Embedded Teensy 3.1 / schematics correct?

    Thanks for the advice. VREF_OUT should be wired correctly now.
  50. P

    Embedded Teensy 3.1 / schematics correct?

    Is this schematics for an embedded Teensy 3.1 correct? Analog read is just used to monitor battery voltage, all other signals are digital, I2C. I tried to simplify the schematics as much as possible. But the question is if I got everything right.
Back
Top