Latest activity

  • R
    The SCSI READ_CAPACITY command returns the sector size (along with the total number of sectors - 1). There's also another catch with that; the basic version of that command is READ_CAPACITY_10 which returns 32-bit values, but some drives (larger...
  • T
    I'm about ready to redo the PCB, this time using the Teensy 4.1 as the source for the fader voltages, instead of relying on the external voltage regulator. But I don't know if this is a good idea, or if this will fix what's going on. Or if it...
  • PaulStoffregen
    On Teensy 2.0 creating custom USB types is quite difficult. The USB code was completely redesigned in Teensy 3.0 (and all later Teensy) to make creating custom USB relatively easy by just editing usb_desc.h. To accomplish this on Teensy 2.0...
  • M
    Finally got round to trying the multi-channel USB, in the hope you found something @mcginty and I missed. No such luck, I'm afraid, I still get glitches: My test code is this: #include <Audio.h> #define AUDIO_kHz ((int) AUDIO_SAMPLE_RATE /...
  • M
    Hi all I just submitted the following pull requests and wanted to get your take on them. https://github.com/PaulStoffregen/cores/pull/732 https://github.com/PaulStoffregen/Audio/pull/470 These two pull requests do the following: Allows for...
  • M
    Hi folks I've been playing around with the PCM3168, a near-alternative to the CS42448 which is now shown as discontinued on Cirrus Logic's website. From a functionality point of view, the PCM3168 doesn't have the ability to add another pair of...
  • M
    Here you go! The dangly bit at the right is the DC-DC converter, and the DuPont cabling is connecting two differential outputs back to inputs for testing. I have no idea on C50 and C52, I cribbed them straight from “Figure 60. Buffer and...
  • PaulS
    PaulS replied to the thread Teensy 4.0 / High Voltage Heater.
    Great result! Happy to be of help in reverse engineering in what was nearly a black box [but not any longer now]. Well, I hope you get the other heaters to communicate as well! I will check the wiki page every once in a while. Paul
  • jim lee
    WOW! Thanks! -jim lee
  • h4yn0nnym0u5e
    Finally got round to trying the multi-channel USB, in the hope you found something @mcginty and I missed. No such luck, I'm afraid, I still get glitches: My test code is this: #include <Audio.h> #define AUDIO_kHz ((int) AUDIO_SAMPLE_RATE /...
    • 2024-03-03 20_40_06-GoldWave.png
  • PaulStoffregen
    Excellent. Please start a new thread for each project. We're now publishing 1 article each day, after years of much slower pace.
  • MikeSound
    Dear Paul Thank you very much! I really appreciate. I`ll put the source and schematics to Github in the next days. You can use this Link: https://github.com/UTZbox There are few other projects for teensy as well :-) Kind Regards Michael
  • N
    Hi, I have recently bought a Teensy 4.1 and tried to use the USB Host capability of the board. I have not bought the official cable for the board and instead bought a normal female USB A to microUSB cable and stripped it to get the 4 wires...
  • flok
    flok replied to the thread SD card corruptions.
    True. Ok it now works. On the Teensy4.1 and when verified on the pc. Thanks for your help.
  • J
    jmarsh replied to the thread SD card corruptions.
    You'd want to flush before writing (push data out of the CPU cache into the memory) and delete before reading (discard whatever is in the cache, to ensure the memory is read). If it was up to me I would say yes, the SD library should be taking...
  • J
    I HAVE HOT WATER!!!!!! So I went to bed last night thinking about what I was missing and woke up with the thought that there might be info hidden in DATA[0] since DATA[1] was used to calculate temp and I recall Johan mentioning that the on...
  • flok
    flok replied to the thread SD card corruptions.
    Oh indeed. I now do not get an error. It's not clear to me though which one to use when arm_dcache_delete or arm_dcache_flush. For write I do now both before the file.write() call. I verified the contents of the sd card on my pc but the data is...
  • J
    jmarsh replied to the thread SD card corruptions.
    Did you add flush before writing too? Have you checked the contents of the file on a different device, to see what is actually being written?
  • flok
    flok replied to the thread SD card corruptions.
    Hi JMarsh! Something like? arm_dcache_delete(data, n_bytes_to_read); size_t bytes_read = file.read(data, n_bytes_to_read); rc = bytes_read == n_bytes_to_read; if (rc) {...
  • h4yn0nnym0u5e
    You might want to try increasing the number of buffers and their size in ResamplingSerialFlashReader.h: #define RESAMPLE_BUFFER_SAMPLE_SIZE 512 #define RESAMPLE_BUFFER_COUNT 7 This might help the "sound goes really bad", could help the...
  • J
    jmarsh replied to the thread SD card corruptions.
    If you use new or malloc to allocate the sector buffers they'll be in DMAMEM (aka RAM2) which is cached. The SD library probably doesn't handle flushing/invalidating the memory before it writes/reads it.
  • flok
    Hi, I think I'm doing something wrong but I can't figure out what. The situation is that if I write a block of data to the SD-card and then read it back again, then parts of the written data are missing (some parts are then all 0x00) or it is...
  • D
    dundakitty replied to the thread led-cube 15x.
    A simple animation is to pick one of the eight corners and draw a wire-frame cube at the corner, starting with a line of length one, then two, then three, and so on until the entire 15x15x15 cube is outlined. Start reducing the line length back...
  • D
    dundakitty replied to the thread led-cube 15x.
    I've attached a zip file of the perl code and the perl code output. For the 8x8x8 cube I'm only storing one bit per LED in flash. A random color is selected before the animation starts and every point has the same color. The...
  • L
    thanks for your answer. the solution was much more simple... I had the mouse1.mouseDataClear(); statement in my function before doing anything with the values, which resulted in no changing values of course... accidentally I had the DataClear...
  • S
    Thanks Pieter, works perfectly now.
  • BriComp
    That post was to show how to be able to (cheaply) remotely control mains (240V in UK 110V elsewhere) voltage from a Teensy. The project is still ongoing, which is intended to have whole house control of central heating down to individual...
  • P
    usbMIDI refers to the USB _device_ interface of the Teensy (the one that's connected to your computer through the micro USB connector), not USB Host. You should create a MIDIDevice instance that represents a MIDI device connected to the host...
  • B
    you can / must compose your own Can you tell me how to compose it? I only use RAW-HID+Mouse USB_mode, but I don't know how to compose it. If it's more complicated, I can only buy Arduino Leonardo hardware with my clients because they're not that...
  • J
    The SCSI READ_CAPACITY command returns the sector size (along with the total number of sectors - 1). There's also another catch with that; the basic version of that command is READ_CAPACITY_10 which returns 32-bit values, but some drives (larger...
  • W
    You can use RAW HID and Mouse together, if you are using a RAW-HID + Mouse USB_mode. As this is not in the Teensyduino list, you can /must compose your own. Or, you encode Mouse operations into RAW-HId operations in PC and decode them in Teensy...
  • B
    Can't I use Raw HID and Mouse together because I need to use C++applications on Windows to send messages to teensy2.0 for mouse operations through HID? Or can we only write code in C language and compile it into hex files for the Tensy Loader to...
  • E
    Hi Paul, Actually the T4.0 version has a lot of improvements, even if it looks pretty similar. Here are the main ones : - 2 oscillators (vs 1) - 8 voices polyphony (vs 4) - FM modulation, AM "ring" modulation (new) - noise generator with ladder...
  • B
    Yes, I have a 2.0 sale here Yes, I have a 2.0 version for sale here. I don't need a 4 or higher version, so I don't need that high performance
  • R
    @jmarsh Interesting. In my (Windows) low level reader/writer application I have not come across any device (including USB SSD or SATA HDD etc) where writing 512 bytes fails but thank you for pointing this out. I also know CD/DVDs have 2048...
  • S
    I enabled debugging output in USBHost_t36 and get the following error: USB2 PLL running reset waited 6 USBHS_ASYNCLISTADDR = 0 USBHS_PERIODICLISTBASE = 20002000 periodictable = 20002000 Setup complete. port change: 10001803 connect begin...
  • Rolfdegen
    Rolfdegen replied to the thread New Teensy 4.1 DIY Synthesizer.
    Hallo Paul Jeannie would not have been possible without your amazing audio library. Thanks for your great work and this forum :)
  • W
    You can only use the the USB mode you selected. Raw HID for raw hid only Keyboard+Mouse+Joistick for Keyboard and/or Mouse and/or Joystick etc. The different modes provide the needed USB description BTW, do you really still have a Teensy 2.0 ???
  • J
    USB drives may have sectors which contain 4096 bytes rather than 512. I believe in that case the example code would end up writing random data to bytes 512-4095 and then possibly crash (since it would overrun sectorBuffer significantly) when...
  • B
    I want to use Raw HID and Mouse, but after selecting Raw HID from Tools → USB Type and clicking on Arduino's Verify, it prompts Compilation error: 'Mouse' not found Does your sketch include the line '# include<Mouse. h>'? I added # include<Mouse...
    • 1.png
  • B
    Arduino IDE menus automatically change depending on the selected board. If you haven't selected Teensy, the IDE won't show you Teensy's examples. Click the "Select Board" drop-down if a Teensy is connected to your PC. Or if you don't have a...
  • B
    You are missing all the _Teensy examples Here this is on my screen I guess, you first need to select Teensy 4.1 as board
  • B
    Thank you
  • B
    Thank you
  • F
    I was caught off guard by Paul's page drawing attention to my old home monitoring project. The project is in the middle of some fairly broad redesign, and I am trying to avoid getting sucked into a 2.0 syndrome. I was not planning to say...
  • F
    This system has evolved quite a bit since that writeup was produced. Now that you've drawn attention to it, I feel obligated to update the description. Among other things, some components use (and all components will use) Teensy 4.1s instead of...
  • defragster
    Exactly. I wanted to see it work but not trash anything, so I buffered and restored the affected data - and that worked. Indeed @Richard H doesn't have that concern wanting just raw data space. So, nice example code that works!
  • J
    jvphotog reacted to MarkzP's post in the thread X100 inspired Guitar Processor with Like Like.
    Here's a project I finally managed to get working: https://github.com/MarkzP/X100 It's a Rockman X100 emulator - 4 presets (Dist, Edge, Cln1, Cln2), Chorus & "Echo" (I used Freeverb - I tried emulating the original BBD echo, but it sounded like...
  • wwatson
    @defragster - So basically you were saving the current contents of sector 10 to another buffer (sectorBufferPrior) before writing the first buffer filled with 0xaa to sector 10. Then you read the back the contents of sector 10 and did the...
  • A
    AndyJ replied to the thread Issues with USB hub IC.
    Hi, little update to this. I redesigned the board with a new IC (TUSB2036VFR) and am actually seeing exactly the same thing on the Teensy side, it sees the hub but no descriptors or devices. I ordered a USB host cable and will try with a real...
    • Screenshot 2024-03-02 162735.png
Back
Top