M
Reaction score
73

Latest activity Postings About

    • M
      MarkT replied to the thread Teensy 4.1 - DAC PCM1502.
      The PCM1502 is a 3.3V chip, giving it 5V will destroy it. Or is this on a module with its own 5V->3.3V regulator? Why not provide MCLK (T4 pin 23) to the PCM1502's SCK input?
    • M
      MarkT replied to the thread ethernet on 4.1.
      Why would the chip know what hardware is present? It's going to see the signal and the signal integrity is probably bearing witness to the hardware. Well a lack of termination resistors no doubt causes reflections (and thus phase-distortion)...
    • M
      MarkT replied to the thread W25Q128JVSIQ page program issue..
      Looks like some problem with addressing, maybe SPI timing is out?
    • M
      MarkT replied to the thread ethernet on 4.1.
      Yes, ethernet uses magnetics, its a hard requirement. The pulse transformers either have to be on the PCB or in the RJ45 jack. There are also resistors in the standard configuration, not having these could be enough to cause problems - the...
    • M
      They may well be fine - the current draw of the T4.1 RTC is I believe fairly high compared to some. 240mAh spread over 1 year is only 27µA. I know some RTC chips on their own draw about 7µA, which would work well with only 240mAh cell, but the...
    • M
      Mains hum is always a problem with low level audio signals - stray mains voltage in the air is at a suprizingly high level, 20V or more isn't unknown. This means the screen for the microphone cable needs to be solid braid for best results. Also...
    • M
      I meant 9600 baud here: teensy = serialport("COM6", 9600); Not sure if that could be a problem - why not use 115200 for instance?
    • M
      Does the laptop power supply have an earth connection?
    • M
      Code tags?
    • M
      Do you need the hysteresis that a 74HC14 provides? If so you might want to keep it as-is, if not, then consider the 74HC245/74LVC245 which has a more logical pinout for an octal buffer...
    • M
      MarkT replied to the thread Teensyduino 1.60 Beta #2.
      Sonomo; B
    • M
      MarkT replied to the thread Teensy 4.1 commercial product.
      And RoHS too I think.
    • M
      You're snippet for the Teensy code doesn't give enough information - perhaps just send the whole thing, or at least the variable declarations for all the variables involved and the code that sends data from the Teensy... Why are you using a 9600...
    • M
      MarkT replied to the thread Ultrasonic PDM Input on Teensy 4.0.
      I would have thought the best approach was to create a modified version of the pdm input class (which supports 2.8235MHz), however this device isn't running at a power-of-two multiple of 44.1kHz...
    • M
      If the encoder is powered from 5V and open-collector, you only need a single pull-up to the Teensy 3.3V supply. It it's output is push-pull you will need a divider from the encoder output to the Teensy - I can't tell from your diagram where...
    • M
      Well you have lowercase filename despite the comment saying uppercase only... No idea if that's the issue, but it leaps out of the page...
    • M
      MarkT replied to the thread Finding library documentation.
      This is the benefit of open source, you can look inside.
    • M
      Yes, it just needs porting, which may not involve very much. Any hardware-specific stuff would need mapping to the Teensy hardware. From what I see its just reading a serial packet stream and driving some servos.
    • M
      MarkT replied to the thread Finding library documentation.
      My first choice for documentation is the .h file itself... At least that should be upto date for the library version... And then I would look at the .cpp file for more details.
    • M
      The K&H breadboards with 6 way rows (like the AD14 I use a lot) are my go-to well made breadboards, 6-way are so much more usable than 5-way especially when plugging in 0.6" wide devices like a Teensy...
    • M
      MarkT replied to the thread Teensyduino 1.60 Beta #1.
      Sonoma 14.4.1 currently, have another machine that's Yosemite 10.10.5, but I don't really expect support for that, its 10 years old and the keyboard has some issues (ESC key completely gone, 'N' sometimes doesn't work!)
    • M
      MarkT replied to the thread PROJECT WITH PIEZO AND FAN.
      My take on a basic piezo circuit, relies on 10k's being high enough to protect the input, low enough to prevent too much analog pin cross-talk: It might not ideal with long leads to the piezo element though - might be better with a stiffer...
      • piezo.png
    • M
      Probably my take is that a hardware library should always be written non-blocking, optionally with a narrow shim of blocking methods on top for those happy to busy-wait for hardware. You could even add a parameter to the blocking calls something...
    • M
      MarkT replied to the thread PROJECT WITH PIEZO AND FAN.
      I repeat the piezo sensor is a capacitor so you need to define the DC voltage across it, otherwise it will be at an arbitrary voltage. If for instance you connect two 1M resistors to A0, one to GND and one to Vcc, you'll define the resting...
    • M
      MarkT replied to the thread PROJECT WITH PIEZO AND FAN.
      Can't really figure out your piezo circuit from that description - do you have a schematic? Piezo's are capacitive and shouldn't be left floating, normally a high value resistor(s) is needed to define the quiescent voltage from them. Usually in...
    • M
      That's because they are not in the update method - update runs as a low priority software interrupt IIRC, so you need a critical section to change the variables that affect it atomically, but interrupt handlers are automatically atomic critical...
    • M
      No you haven't missed anything, there are only 4 possible microstep settings for standalone, 8/16/32/64, because only 2 pins are available to configure it. For non-standalone see table 5.3.2 and the MRES control register, which gives full...
    • M
      AudioConnection myNewPatchCord(); Surely that declares a function called myNewPatchCord that returns an AudioConnection object. Try AudioConnection myNewPatchCord;
    • M
      Updating firmware is not a normal case, once its finished and working you stop doing it, so perhaps don't wear the headphones while uploading code? Perhaps the update is toggling some pins connected to the audio adapter leading to this, or its...
    • M
      MarkT replied to the thread Part_2_01_First_Design_Tool_Use ?.
      Lots of stray inductance causing signal quality issues? - try shorter wires and bunched together tightly to reduce the large loop areas you currently have.
    • M
      Why is it a problem?
    • M
      Audio library on every Teensy, much faster on T4's of course!
    • M
      20MHz is pretty fast for working with in software... Perhaps you could just about get a boxcar average to work on that as the first filter stage - depends how important anti-aliasing performance is to you. IIRC sinc3 does small cascaded boxcars...
    • M
      Yes that's fine - although it would be called in-line, not in series as that means something very specific in electronics (!). Keep the wires short and direct if possible to reduce the chance of signal degradation. Any pins not connected will...
    • M
      Depends how the interrupt is 'disabled' - if a higher priority is set for interrupts I think it should only defer for when the priority is reduced again, if the individual specific interrupt is disabled in the mask then clearly it should not...
    • M
      MarkT replied to the thread Beware! T4x RTC power consumption.
      Are all pins either OUTPUT or INPUT_PULLUP as required to minimize pad power drain? Floating inputs can drain current.
    • M
      MarkT replied to the thread Issues with time_t in printf().
      Some time in 2038 I think for 2^31 seconds past 1970... With 64 bits you can have microsecond precision and last 250 thousand years or so...
    • M
      Searching for arm_dot_prod_q7 shows it does indeed exist. In CMSIS the floating-point and fixed-point types are indicated by f16, f32, f64, q31, q15, q7 in the function name... But check the documentation, you might not be wanting fixed-point...
    • M
      MarkT replied to the thread Issues with time_t in printf().
      Technically now() wasn't called inside printf - all the arguments are computed first, then the call is made. I suspect this is because time_t is a wider type than you expected, ie long long. Try %llu instead of %lu ?? Did you turn on compiler...
    • M
      Shame their front page shows nothing useful unless you happen to scroll down! I'd call that a classic blunder of style over content, literally...
    • M
      Another possibility is to use a programmable clock generator chip. Or a DDS tone generator like the AD9850? That's going to have more than enough precision and low jitter too.
    • M
      This is the 8080 interface? just /WR to write (command or data), just /RD to read data. D/C has to be correct too. However this chip seems to have separate address and data busses, so no D/C pin? I think the diagram that confuses is because it...
    • M
      What type of synth? Additive, subtractive or FM?
    • M
      MarkT replied to the thread Piezo Vibration help.
      Can you provide a diagram of the geometry - buzzers simply have electrodes on either side so the electric field strength is high with low voltage due to the thinness of the plate. So I don't understand the comment "The film also has to be a...
    • M
      I'd agree, randomized user ids are suspect...
    • M
      1/4" to 3.5mm adpators are available in both directions...
    • M
      This is a cross-post, see thread: https://forum.pjrc.com/index.php?threads/uart-logic-level.75766/
    • M
      MarkT replied to the thread UART logic level.
      Are you needing duplex serial or only simplex? There are some chips that can do 1.8V->3.3V level translation, but maybe someone does a module that can level shift in both directions 1.8V <-> 3.3V these days? Perhaps some of the 3.3V <-> 5V also...
    • M
      MarkT replied to the thread ws2812 multiple strips, one signal.
      Whoops, I meant HCT in fact, sorry about that.
    • M
      The sensitivity pattern of a microphone is due the the mechanical design mainly. Some condener mics are actually two diaphragms back-to-back that can be switch-selected to add or cancel to provide several different patterns.
  • Loading…
  • Loading…
Back
Top