Search results

  1. P

    Signatures have been disabled

    I say block signatures. Why? 1) at best they are a distraction from the point being made in the post and at worst they are irrelevant. 2) they are a form of self promotion and we don't need that. A pertinent, insightful post is the best form of self promotion. 3) they are an attempt to create...
  2. P

    Ltc4311

    brtaylor, it is all about capacitance on your signal bus. An oscilloscope should reveal the slew rate limiting caused by the bus capacitance. This information might help https://www.ti.com/lit/ds/symlink/p82b96.pdf
  3. P

    Struggling with programming side

    OK, now I understand why the pin count is important. Have you considered using a Raspberry Pico? It is really cheap, has the required pin count and is more than powerful enough. I suggest it because you can then use your Python skills since Micro Python and Circuit Python work well on the Pico...
  4. P

    Struggling with programming side

    Hi Rev_Smarm, just to clarify, is this a 'real' 10 position rotary switch? I.e does it have ten pins, one for each position and an eleventh pin for the contact wiper? Or is is a standard rotary encoder switch with five pins that rotates endlessly? And thus can encode an arbitrary number of...
  5. P

    Why should we use a Teensy?

    Why should we use a Teensy? Let's face it, we makers are a promiscuous lot. We have a large selection of tools available and we will use the closest at hand at the lowest cost that fits the need. That is just how the cookie crumbles. Brand loyalty has nothing to do with it. Or so I thought...
  6. P

    Arduino CLI And IDE now Released - Teensy Supported!

    Yes, I am looking forward to be able to use the arduino-cli with the Teensy 4. It will greatly simplify using external editors. I am already using the arduino-cli very effectively with my Raspberry Pico.
  7. P

    Looking for advice on choosing an IDE and how to debug.

    Hi Warpigs, once we get past the simple stuff I think all of us confront this question. I tried Platformio and Visual Studio Code and hated them. Other people love them but I could not. I have used Geany for other programming tasks and love it for what I thought was just the right combination of...
  8. P

    Raspberry Pi Pico

    I smiled when I read that and can relate to it. Bill, have you had a look at the recently announced Raspberry Pi Zero 2W? To me at least, this seems to be a really exciting development for some classes of problems. Though nothing can diminish my love affair with the Teensy 4.0!
  9. P

    Raspberry Pi Pico

    The Pico makes it easy to attach sensors directly to your laptop/PC, something that I have wanted to do for a long time. The Pico acts as an inexpensive and simple bridge between the PC and the hardware/sensor world. It supports ADC, I2C and SPI and the full complement of GPIO. There are times...
  10. P

    Programming the Teensy 4.0 with GCC. Examples?

    Defragster, Yes, you and Frank B did a more complete job than I did. For example, if I change my board, etc then I have to once more inspect the command line in the Arduino IDE and correct my bash script accordingly, whereas Frank B makes that process easier. I did not use yours and FrankB's...
  11. P

    Programming the Teensy 4.0 with GCC. Examples?

    Oops, I posted the wrong bash script, above. I have corrected it
  12. P

    Programming the Teensy 4.0 with GCC. Examples?

    There remains the problem of how to load the code into the teensy This is how I do it #!/bin/bash # upload Teensy BASE_PATH=$1 TARGET_PATH=$2 TARGET_NAME=$3 echo "Teensy upload" echo $BASE_PATH echo $TARGET_PATH echo $TARGET_NAME suffix="/manufacturer" string=`ack -s -l "Teensyduino"...
  13. P

    Programming the Teensy 4.0 with GCC. Examples?

    Hi Dettus, As defragster said, an .ino file is a .cpp file. If you prefer to work with .cpp files (as I do), then all you need do is add #include <Arduino.h> to your list of header files and then your .cpp file will behave exactly like a .ino file. You then need to provide setup() and loop()...
  14. P

    Writing to flash or sd card on power loss

    This is a fascinating question since most of us face the same problem, one way or another. I considered the big capacitor solution, liked it but had to discard it when I found there was not enough space on my board. Instead I do this. 1) I use a FRAM instead of an SD card because I can write to...
  15. P

    Teeny based full featured radio control system

    I am impressed by the ambitious scope of your project and by how much you have done so far. That is much recommended. The motto of a former boss was 'lead and others will follow'. The best reason of all. This kind of enthusiasm motivates all the best projects. We always learn from the way...
  16. P

    GUI interface

    Hi Nico, They only supply .apk downloads so I presume this means they only develop for Android. I develop on a low cost Teclast A80X tablet and then upload to a Blackview A80pro and a Meizu M5 Note. These are devices with different resolutions and more importantly with different aspect ratios...
  17. P

    EEPROM Write endurance optimization

    I don't have a good coding answer to your problem. I faced a similar problem because my application updates a large set of data structures once per second in permanent storage and has been doing so reliably for the last year. I dodged the wear levelling problem by using FRAM which is not subject...
  18. P

    GUI interface

    This is a very interesting project, quite similar to mine but with a different emphasis. You are concerned with monitoring modern high performance engines whereas my emphasis is on fuel usage of old fashioned diesel engines that lack electronic fuel injection. That was my brief, which was just...
  19. P

    GUI interface

    Hi Nico, you can use the library that is supplied with Virtuino. I didn't like it so wrote my own. The principle is very straightforward. 1. Every widget has a simple two to four character identifier that you assign to the widget when you drag and drop widgets in the builder. 2. The widget...
  20. P

    GUI interface

    I will make an extract and post it tomorrow.
  21. P

    GUI interface

    Yes. See my alarms and settings screens below where I do this, sending alarm and settings information from Android to Teensy 4.0
  22. P

    GUI interface

    If you are wondering about the large text size in my Android app that is because I needed something that could easily be read at a glance while driving, even in bright sunlight conditions, which applies to my part of the world.
  23. P

    GUI interface

    Hi Nico, I have wrestled with the same problem and having considered several alternatives settled on Virtuino. See https://play.google.com/store/apps/details?id=com.virtuino_automations.virtuino&hl=en I have found this to be an excellent means of building an Android frontend for my Teensy 4.0...
  24. P

    Cheap quadrature encoder jumps values greatly when turned quickly

    If I may chime in here. I am using the first version of Luni's encoder library(now somewhat modified by myself) with ultra cheap Chinese encoders. Luni's library works perfectly for me. It counts reliably, with no bounces or skipping, no matter how fast I turn the encoder. The real problem is...
  25. P

    Teensy 4.0 - PC does not reconnect after Watchdog reset

    I suspect he has done something like this: #define MySensorSerial Serial5 to make his code more readable.
  26. P

    Serial.addMemoryForWrite

    Thanks for the answers. Yes, my concern, as Frank noted, was to transmit big blocks of data over Serial without adding undue delays within the main loop. But my blocks are in any case going out suspiciously fast, so it appears there are already quite big buffers in place.
  27. P

    Serial.addMemoryForWrite

    I know I am late to the party but I have only recently discovered the very useful methods such as Serial1.addMemoryForRead(s1RxBuffer, sizeof(s1RxBuffer)); Serial1.addMemoryForWrite(s1TxBuffer, sizeof(s1TxBuffer)); which work nicely for me. But when I try this...
  28. P

    Advice on Serial buffers (SERIAL2_RX_BUFFER_SIZE)

    Hi Jensa, like you I would like to know what caveats are attached to changing the Rx and Tx buffer sizes. The one problem I can think of is more administrative in nature. Your changes to the core files will be over written every time you update Teensyduino, which is quite often. Will you...
  29. P

    what is the best method for access to interrupt variables?

    See https://www.nongnu.org/avr-libc/user-manual/group__util__atomic.html As far as I can tell 1) cli() - sei() disables all interrupts and then enables ALL interrupts 2) ATOMIC_BLOCK(ATOMIC_RESTORESTATE) also disables all interrupts but then only enables interrupts that were previously...
  30. P

    Use Sublime Text as an Arduino IDE replacement.

    Hi Kurt, I have exactly the same problem using Geany under Linux. I simply dodge the problem by going back to the proper source .h file but it is a downright nuisance.
  31. P

    Can 3.3 V be safely applied to a Teensy 4 I/O pin while the Teensy 4 power is off?

    Paul, thanks for your informative reply. Happily I have some IO bus buffer chips (74AHC126N) on hand. From the datasheet: I am thinking of tying the buffer output enable pin to the Teensy's power supply so that when it is switched off the output enable goes low, placing the buffer output in a...
  32. P

    Can 3.3 V be safely applied to a Teensy 4 I/O pin while the Teensy 4 power is off?

    No harm done. We all do the best we can. We are all in the same boat, though happily not a cruise ship.
  33. P

    Can 3.3 V be safely applied to a Teensy 4 I/O pin while the Teensy 4 power is off?

    Can a +3.3 voltage be safely applied to the I/O pin of a Teensy 4 while the Teensy 4 power is off? I can't get a clear answer from the datasheet, which says 4.2.1.3 Power supplies usage All I/O pins should not be externally driven while the I/O power supply for the pin (NVCC_xxx) is OFF. This...
  34. P

    COVID-19: A thread to share some thoughts and events

    This is all fascinating stuff. As a keen endurance runner I am wondering whether a regime of running improves resistance to the virus. I hope so. I am puzzled by the decline of new cases in China. This could be due to 1) high natural immunity of their population. 2) draconian enforcement of...
  35. P

    Teensy 2.0 and LC Not Writing to USB Serial

    RSchuster, To help diagnose the problem I suggest you provide the following information: 1) The output from the command lsusb For example, from my machine Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 018: ID 1546:01a8 U-Blox AG [u-blox 8] Bus 001 Device 007: ID...
  36. P

    Teensy WIKI

    Has Paul been told?
  37. P

    Teensy WIKI

    I love it. This is just the thing we need to create a more organized body of knowledge around the Teensy.
  38. P

    VisualTeensy upgraded to support Teensy 4 projects

    Yes, this will be a very useful capability. Imagine this scenario. I am developing a system on my favourite, powerful workstation. But then I need to visit the client to show him work in progress and discuss some options. With this facility I would copy the minimal but complete system to a...
  39. P

    VisualTeensy upgraded to support Teensy 4 projects

    Hi Luni, I am impressed by what you are doing with VisualTeensy. I think it fills an important need. Because I use Ubuntu Linux I am unable to use it. I tried to run it under Wine but that did not work. It would be really nice if you produced a platform agnostic version written in, for example...
  40. P

    New MCP23S17 Library

    I look forward to it.
  41. P

    New MCP23S17 Library

    Very nice. Is this only for SPI? What about the MCP23008 and MCP23017 chips that use I2C? Coverage of these chips as well would be the icing on the cake.
  42. P

    using Teensy Makefile

    Tim, what you are doing is a great educational exercise and for that reason is well worth doing. But is it a practical necessity, given your goals? That is your call. All I can do is quote my own experience. I needed to get results and the Arduino IDE was a formidable obstacle. Embedding the...
  43. P

    using Teensy Makefile

    Tim, this is why I think the 'arduino-builder' approach is the better way to go. It takes care of all the details, is simple and is guaranteed to work. And you can embed it into the workflow of your choice so that you no longer have to use the Arduino IDE, although you must have it installed.
  44. P

    Reboot Teensy programmatically ...

    This is what I do on the Teensy 4.0 void doReboot() { saveStatus(); // send reboot command ----- SCB_AIRCR = 0x05FA0004; } saveStatus() is my routine to save the machine state in a FRAM. This works for me.
  45. P

    arrays, buffers, ring buffers and pointers...

    Joey, Perhaps you should consider using a circular buffer library, like the one contributed by Tonton. Here is the long thread where it is discussed. You can learn a lot from that. https://forum.pjrc.com/threads/50395-Circular_Buffer And you can get it here, on Github...
  46. P

    using Teensy Makefile

    I should have mentioned that my programming environment is Ubuntu Linux 19.10
  47. P

    using Teensy Makefile

    Tim, like you I found the Arduino to be impossibly limiting for serious work. The main problem is this. Large programs became difficult to edit in the Arduino IDE because I was spending too much time scrolling back and forth through several thousand lines hunting for specific functions...
  48. P

    using Teensy Makefile

    Tim, if you don't mind me asking. What is your goal using make? Is it an educational experiment? Do you need a makefile so that you can integrate Arduino into your favourite editor/programming environment? Or do you have certain very specific needs that can only be met with a customized build...
  49. P

    Access to USB port via backside pins?

    Michael, this breakout board looks like just the thing I need. How would you solder the Teensy to the breakout board?
Back
Top