Search results

  1. T

    KSF AI Autopilot Suite - multi-Teensy sailboat autopilot with NMEA2000, private CAN, and iPad UI

    Oh I see, on the back silkscreen it has the Vio pin, which is the NC pin on the topside. I assume you feed 3.3 volts into the NC/Vio, and 5v into the VCC.
  2. T

    KSF AI Autopilot Suite - multi-Teensy sailboat autopilot with NMEA2000, private CAN, and iPad UI

    So do you feed the Vcc pin with 3.3V or 5V. I see some versions have a Vio pin, which sets the CAN level to whatever the microcontroller can handle.
  3. T

    KSF AI Autopilot Suite - multi-Teensy sailboat autopilot with NMEA2000, private CAN, and iPad UI

    Wow, awesome project. One question, what can bus transceiver you using. Have a project I want to use can bus and whatever transceiver you are using seems to be working well. Thanks.
  4. T

    Using NAND Flash with IMU SPI

    I currently have a project where I will be measuring vibration, so thought about using NAND flash soldered to the bottom of the teensy 4.1. I am using the W25N02KVZEIR chip, which works to save files using simple program examples. My code using built in SD card works perfect using a ring buffer...
  5. T

    Teensy 4.0 using underside SD pads for NAND Flash

    I am using ring buffer and have no issues. I was looking for an alternative to sd card due to vibrations and thought I could just use soldered memory to help. However I found lots of discussions on how to over come sd card issues and vibration, like using adhesive to lock it in place or a...
  6. T

    Teensy 4.0 using underside SD pads for NAND Flash

    Adafruit SPI SD flash card Here is the product from Adafruit, so if I used the teensy 4.0 underside SD pads, I could use this the same as BUILT-IN, then utilize full SDIO speeds? Currently my data rate is only ~40KB/s, so wonder if worth the hassle when I could just use the normal SPI pins. My...
  7. T

    Teensy 4.0 using underside SD pads for NAND Flash

    Thanks for that info. Think my original msg was confusing. I am using qspi with the teensy4.1 and W25N02. Just to confirm, I could use the W25N02 if I used normal SPI along with SPINAND in the littleFS library (on the teensy 4.0).
  8. T

    Teensy 4.0 using underside SD pads for NAND Flash

    Hi, Been searching for a while and can't seem to find anyone that has done this. I am working on a project that is measuring vibrations and worried about SD card reliability. I have been using a 4.1 with Winbond W25N02 and it works great. However due to size constraints, we are wondering if you...
  9. T

    manchester decoding teensy 3.2 with uart

    Hi, Well this was long time ago, pulled up my old code from end of 2017 and had to look at it. I don't remember what exactly I did or what worked. I think I had it so I had to determine the frequency values and LD value (not sure what that is), but once I knew those I could calibrate the...
  10. T

    choosing FET for fuel gauge

    Not sure if this will be any help, but this is what I have used in a project to monitor a lipo battery, and use this library to do all the calculations on battery life etc I use an FDV302 p-ch mosfet along with a BC846 NPN I am no expert and maybe this is wrong, but seems to work very well and...
  11. T

    Remotely update firmware via ethernet

    I don't know the answer to this, but I do want to know your method for updating 50 devices at one. Just starting to work on a project where I will use an esp8266 and updating all devices at once would be nice.
  12. T

    New project code named: teensquitto

    Pretty sure I have narrowed it down to how my libraries are set up. All I do is download the zip from Github and install the zip file using arduino IDE install library option. Spent all night trying to make it work, but nothing seemed to work. I removed the #include <arduino.h> and that fixed...
  13. T

    New project code named: teensquitto

    Thanks, maybe things are in the wrong library etc? I installed your library plus all the other ones linked in teensiquitto.ino, which must go on the ESP I assume. I didn't change anything in that code and tried both zip files from github. I will investigate more tomorrow and see what I can...
  14. T

    New project code named: teensquitto

    Hi, Finally getting around to testing this all out, and I can't even get past the point of installing the ESP sketch. I assume the one in the zip file is what has to go on the ESP. I have installed all the libraries that seem included, however still not sure what i'm doing. All new to me and...
  15. T

    New project code named: teensquitto

    Sorry, missed the most important part. The data is a binary file that can be any where from 100kb to 10Mb, so of course I need to figure out how to send packets of data, I just need to figure out if I can read off the teensy SD card and send it via an ESP. Have not even thought about the server...
  16. T

    New project code named: teensquitto

    Hi tonton, not much action on the teensyquitto thread, so thought I would revive it. I am not sure if right place to ask, but I am in early stages of a project where I am saving data to the SD card on a teensy 3.6. What I am looking to do is add an esp8266 that will allow the data saved to the...
  17. T

    Circular_Buffer

    Now I am getting confused. The system I am using now seems to be working great and don't get repeat values. From your github readme you have this listed under Circular Buffers: T pop_front(T *buffer, uint16_t length) { return readBytes(buffer,length); } // read the front of the queue into a...
  18. T

    Circular_Buffer

    No, I sometimes have 2048 values, this happens when the cyclists do a standing start and are pedaling slow, but producing a lot of torque (high Hz values). However as the cyclists speed up, they are producing less torque (lower Hz), which means I might only have 10 Hz samples for every 10 degree...
  19. T

    Circular_Buffer

    Starting to get a little lost, however could be because of jetlag. The issue with my system is that HzSamples is different value for every 10 deg segment and can vary from 2048 samples to 10 samples, depending how fast the people are cycling. If I am using push.back, should I just use pop.back...
  20. T

    Circular_Buffer

    I really want to try out some of these examples with my code, but just got to Australia for work and away from my device for 2 weeks. When I get back I will try it. My only question is how to I fill the two different CB that are currently being filled using the freqmeasure libarary. if...
  21. T

    Circular_Buffer

    Wow, you guys are taking this and running with it. Gives me ideas also. I know I only posted a snippet, but how my system works is I have a 36 or 72 tooth gear that an optical sensor reads, this is what I call DT (degree time), I also have an index sensor to reset when the cyclists are at the...
  22. T

    Circular_Buffer

    Hi, For my needs I am filling an array with a frequency value based on a gear and optical sensor. What is interesting with my system is the collection rate varies because I am measuring the power output from cyclists, so depending on their cadence or power, the frequency varies. The other issue...
  23. T

    Circular_Buffer

    Finally got around to implementing your circular buffer library. At first it seemed way above my knowledge, but once I did a few examples, implementing it into my existing code was so easy. Just want to say thanks for all the hard work you put into these libraries. Now its time to figure out the...
  24. T

    Well system monitoring... Use Teensy?

    I just wanted to say thanks for sharing your project. I don't have a well to monitor, but have been able to use some of your code to send data packets with an rfm69. So thanks for sharing and excited to see the final product.
  25. T

    Teensy 3.2 with USB and external power

    Thanks, funny I remember looking at that couple years ago for another project. That makes more sense, and a small package, so won't take up much room. Thanks a lot.
  26. T

    Teensy 3.2 with USB and external power

    Sorry for bringing up such an old thread, but I am working on a project with a Teensy 3.6 and have implemented the exact schematic as above, where i have a diode on voltage from the battery and also from VUSB, and I have cut the trace between VIN-VUSB. Now I am far from an electronics person and...
  27. T

    Circular_Buffer

    Been following this thread, however still waiting to use it when school is done in a month and can get back to projects. Just letting you know so you don't lose interest.....and really I am waiting to see if someone comes up with a logging to SD card system using your circular buffers.
  28. T

    "async write" SD card access, filesystem library (Teensy 3.6)

    Here is a program by a user TNI that I have used with great success. It might meet your needs. Here is a link to the github https://github.com/tni/teensy-samples/blob/master/SdFatSDIO_low_latency_logger.ino , but there is also a thread about this, you will just have to find it.
  29. T

    "async write" SD card access, filesystem library (Teensy 3.6)

    So you want to write 512 bytes every 1ms? Like I said, there are a few great examples in the forum that use low latency logging for analog collection. All of these examples use the pre-allocated file size formate, which set a file size based on number of 512 blocks, which can be as big as you...
  30. T

    "async write" SD card access, filesystem library (Teensy 3.6)

    Take a look at the low latency logger example in the sdfat library. This should easily meet your needs. However if you don't post your code, its hard for anyone to see if there might be an issue with your code. However sd writing is known for large latency at times. If your data is simple, you...
  31. T

    baudrate problem with teensy to teensy byte package communication

    I agree with rcarr, the lag is due to SD card write time. You are opening and closing the file each time, which is not ideal. You need to use a binary system with preallocated space. There are a lot of examples out there, but if you have a packet of 512, it should be easy to fill it, write and...
  32. T

    writing binary file on SD card in Teency 3.5

    There are a few ways to do this, but a place to start is looking at the sdfat low latency example. If you search the forum, you will find many other example of people writing a lot of data very quickly to the sd card...
  33. T

    manchester decoding teensy 3.2 with uart

    Quick update,got it working exactly as it should. Just changed frequency to 98khz and it lined up perfect. Still have to learn exactly what all the code is doing, but have already learned a lot from implementing this code. Thanks again.
  34. T

    manchester decoding teensy 3.2 with uart

    Awesome, thanks, I knew I was missing something. Will try it now.
  35. T

    manchester decoding teensy 3.2 with uart

    Thanks, and I adapted your code and it worked. Now to hook it up to the scope to make sure its the right values. I have searched for the answer and maybe its not possible, but how did you get the clock signal into your logic analyzer. Is the clock being output on a pin, i assumed PIT timers were...
  36. T

    manchester decoding teensy 3.2 with uart

    No real experience, but thats the fun in figuring it out. I assumed that is what the 456E3 was. Guess my only two last points of confusion are why the PIT timer is set to 1E6 and are you reading the PIT clock, if so, what PIN is this on a T3.2? I guess the other option is to ignore the clock and...
  37. T

    manchester decoding teensy 3.2 with uart

    Hi, I am working on a project where a sensor responds with manchester signal when you request an eeprom read. Seems this code will work great, I am just not sure how I would adjust it to work with a 100kbs signal versus 500kbs (I assume that is what the above code is using). I am not well...
  38. T

    Double counts with magnetic hall effect sensor--desperate for help.

    Here is code I used for an optical encoder, running as fast as 3 ms per tooth. The cap should not effect your rate, plus more of an issue if reading the rising edge, which the cap with slow the rise time. I feel you need to see more of the code let me know and will send you a pm. //Trigger on...
  39. T

    Double counts with magnetic hall effect sensor--desperate for help.

    Do you have an oscilloscope? That would let you see the issue. My guess is you are getting a bounce in the signal due to capacitance. I would add a 100pf capacitor from the signal to ground and see if that fixes the issue. If not, try a large one until it does. I had a similar issue with an...
  40. T

    Adding countToNanosecond to FreqMeasure

    Thanks that is awesome. After asking the question I realized how easy it was to change. I does not matter anymore, but I am still interested why freqMeasureMulti can't use pin 3, but freqMeasure can only use pin 3. I tried to search for the answer but could not find it. Thanks again.
  41. T

    Adding countToNanosecond to FreqMeasure

    Hi, I am working on a project where I need the nanosecond count that FreqMeasureMulti provides, however need to use pin 3 due to already made circuit board. Can I just add the same bit of code that does the nanosecond into freqmeasure.cpp? I guess another question is why can't we use pin 3 with...
  42. T

    Real low latency logging for Teensy 3.5/3.6 SDIO SD

    Hi, Been using your logging program with great success, however I am now trying to use it for another application and stuck on a few things (due to limited programming knowledge). My current device is unique in that I need a huge buffer for about 1-2 seconds and then this buffer gets smaller...
  43. T

    FreqMeasureMulti nanosecond issue

    Ok thanks, guess I thought ns could be 2^32 max. But does that mean max count is 2^32/1000? That does not seem right to me also. Thanks again for the information.
  44. T

    FreqMeasureMulti nanosecond issue

    Hi, I have been using the freqmeasuremulti library to measure frequency very well, however now I want to use the function freqmeasuremulti.countToNanoseconds() and I am getting some odd results. I tested it in my own program that is measuring the rpm of a bicycle crank and noticed an issue, so...
  45. T

    A simple SerialFlash datalogger

    Well the first issue is you are using Serial.print(buf[i], HEX);, which means hexadecimal. So that is a good place to start, but sorry don't have the answer on exact fix....maybe just remove the HEX part.
  46. T

    concept2 rowing machine

    If you have not done so already, you can download the PMI application for the concept 2, which is an SDK for the device. I have not used it connected to a teensy, however have used it to interface the erg with labview and read the data directly for purpose of data collection during experiments...
  47. T

    attachInterrupt , digitalPinToInterrupt question

    There is no code , just put digitalReadfast... Not sure if that is correct because of capitals , but will turn yellow if correct if using arduino ide.
  48. T

    attachInterrupt , digitalPinToInterrupt question

    If they arrive at the same time, just use NR and then digital read fast the other pins, then report which one is high. However if any delay in arrival of the signal it might miss read the signals as low. On the teensy all pins are interrupts, but for max performance you can separate them out so...
  49. T

    Optical sensor bounce issue

    So even though I fixed the issue with the capacitor, it was driving me crazy the code was not working as I thought it should. Well I figured it out. If there is no capacitor the interrupt triggers again, which I thought the software would filter out. But I guess since I calculate the...
  50. T

    Optical sensor bounce issue

    Thanks, will try that tomorrow to see what happens. Edit: So tried it, no different. Even with 30pf on the digital output it still gave false readings, but if I put 100nf it works. The thing I don't get is why the void counterDeg is allowing small numbers, usually 2, but sometimes 1 or 3. I use...
Back
Top