Search results

  1. 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...
  2. 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...
  3. 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.
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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...
  9. 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...
  10. 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...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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.
  17. 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.
  18. 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...
  19. 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.
  20. 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.
  21. 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...
  22. 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...
  23. 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...
  24. 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...
  25. 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.
  26. T

    manchester decoding teensy 3.2 with uart

    Awesome, thanks, I knew I was missing something. Will try it now.
  27. 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...
  28. 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...
  29. 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...
  30. 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...
  31. 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...
  32. 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.
  33. 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...
  34. 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...
  35. 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.
  36. 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...
  37. 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.
  38. 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...
  39. 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.
  40. 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...
  41. 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...
  42. 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...
  43. T

    Optical sensor bounce issue

    Hi Everyone, I have been working on a project and getting some odd behaviours when using an optical slotted switch (http://www.digikey.ca/product-detail/en/tt-electronics-optek-technology/OPB625/365-1090-ND/498727) It is set up on a indoor bicycle that is reading a custom chainring that has 72...
  44. T

    Part for Teensy 3.2 USB pads?

    @adrian, yes that was my other idea. Not sure why I changed my plan, Should work either way, plus easy enough to trim the header pins smaller. Think if I end up making more boards I will run it on the first row and have the headers facing inside. I assume using either VUSB or VIN will be fine...
  45. T

    Part for Teensy 3.2 USB pads?

    Here is an image of what I mean. It is not soldered yet, still waiting for my boards to finish them. The only thing you have to do is trim the black plastic piece where the right angle headers insert. On all the header pins I have there is a think plastic piece on one side of the header, which...
  46. T

    Part for Teensy 3.2 USB pads?

    If you are making your own pcb, a solution I came up with is to run a row of headers from 3v to digital pin 1, but only populate the 2nd and 3rd position with a right angle pin, which you can then solder to the digital usb pads. I am waiting for my boards from osh to test it, but can't see any...
  47. T

    Board design - MicroSD pins

    This would work great with the prop board on the bottom side, assuming they would play nice together sharing the miso/mosi/sck. Would make everything nice and compact. Great job.
  48. T

    Custom USB wiring

    Does anyone actually know the exact PTC fuse specifications? I found an older post where they assumed it was 200ma hold with 500ma trip. But that is all the info. I found this package on digikey that is similar, does anyone know if it would work similar to what is already on the Teensy 3.2...
  49. T

    Custom USB wiring

    You make a good point. Guess i can just add my own fuse. Via digikey the only package I can find is a pretty large 2920, but guess I can try to fit it in. Thanks again for the help.
  50. T

    Custom USB wiring

    Hi, I have a project where in need to use a USB-B receptacle due to it being plugged in and out often. I am making a custom pcb and was wondering if I should route the power from the new USB to Vin or VUSB. On the schematic it would seem to indicate that I could use either, however how can I...
Back
Top