Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: snowsh

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    167

    @MarkT Thanks for the advice, how does this look?...

    @MarkT Thanks for the advice, how does this look?

    26757

    I was thinking if two diodes to just keep the line from being driven in reverse as I have patch points everywhere to modify the...
  2. Replies
    2
    Views
    167

    help needed to choose 2 dioodes.

    I have the following circuit block:

    26751

    I am building a prototyping board that allows me allot of options. I may be skipping this part of the circuit and driving AAT-REQ-5V or ATT-REQ-3.3V...
  3. I keep running into dead ends on this. Im thiking...

    I keep running into dead ends on this. Im thiking I will be moving midi over the serial lines from the t4.1 to the mega and back. Now I wonder if I go with opto isolators as you would with a midi...
  4. link a teensy 4.1 to an arduino mega 2560 R3

    I want to link a teensy 4.1 to an arduino mega 2560 R3.

    What is the best way to hook these two together to exchange data? Serial? a parallel bus? SPI etc? Are there any libraries available to...
  5. Replies
    3
    Views
    268

    found it:...

    found it:
    https://forum.pjrc.com/threads/25549-What-is-the-difference-between-the-74HCT245-and-sparkfun-s-logic-level-converter



    I suppose in this case Paul is talking about using it in one...
  6. Replies
    3
    Views
    268

    I still havent found the post where paul explains...

    I still havent found the post where paul explains more, but here is somthing:

    https://forum.pjrc.com/threads/68108-WS2812E-teensy4-1-logic-level-shifting?p=287739#post287739
  7. Replies
    3
    Views
    268

    74hct245 3.3 to 5v level shifting

    I am working on a project to replace a z80 based controller board on a large studio mixing console.

    I have a fully functioning replacement using an arduino mega2560 rev 3. Now I move to building a...
  8. yep its seems to be passing data through now. BRD...

    yep its seems to be passing data through now. BRD is already taken are of. the motherboard select bits set all the trancievers to active and the chip select line decoder ICs1 and 5.

    Nice console!...
  9. thanks for the advice Foxhood. In reference to...

    thanks for the advice Foxhood. In reference to your query if the pin mode was set correctly, I was running a check within my write function to determine if it was in read mode. You will note the...
  10. What console do you have? Im working on a...

    What console do you have? Im working on a Soundtracs Eric, its quite a beast.
  11. well I think I may have found a solution. ...

    well I think I may have found a solution.

    reading this thread using answer #4 from Fungus, this seems to allow me to pass data through this 74LS245

    here is my modified function to put data on...
  12. Thats correct. I have removed motherboard id 3...

    Thats correct. I have removed motherboard id 3 for my bench testing. The jumpers set the address and IC2 is a comparater. writeBoardAddress() does exactly that and works fine.



    yes conn 2 is...
  13. I just double checked the board. The line showing...

    I just double checked the board. The line showing pin 19 connected to the common of the resistor package is an error. It is only connected to pin 19 on IC2, 18 IC1 and IC5 19 The is the motherboard...
  14. yes there are some ommisions in the schematic. I...

    yes there are some ommisions in the schematic. I have spent weeks noting the circuit and tracing lines. Pin one is connected to RD, and when the motherboard is selected, the OE pin (19) is pulled low...
  15. I should make it clear: I can see the voltage...

    I should make it clear: I can see the voltage change HIGH / LOW on the a side (a0 - a7) of the LS245 which is connected to the mega. The b side (b0-b7) is allways HIGH - dont forget the 22k pullup...
  16. The OE is LOW, and the DIR pin is HIGH. ...

    The OE is LOW, and the DIR pin is HIGH.

    Schematic for the motherboard is here:

    https://drive.google.com/file/d/1qv4...ew?usp=sharing

    I am connecting at conn 4 top right. The LS245 in...
  17. some trouble with a 74LS245 octal bus tranceiver...

    OK, start at the start....

    I have a mixing console that was built in the 80s and uses a z80 to control switching of audio routing, leds and detect button presses.

    The console consists of 7...
  18. correct: digitalWrite(ADDR[0], ((j &...

    correct:



    digitalWrite(ADDR[0], ((j & 0x01) ? HIGH : LOW)); // bit-fiddle to set the i-th pin to HIGH IFF binary version of j
    digitalWrite(ADDR[1], ((j & 0x02) ? HIGH :...
  19. yes thanks guys! All a bit mixed up, but the...

    yes thanks guys! All a bit mixed up, but the confusion was writing decimal when it should have been hex......

    getting there.
  20. doh! of course it should be written in hex.......

    doh!

    of course it should be written in hex....



    digitalWrite(ADDR[0], ((j & 0x01) ? HIGH : LOW)); // bit-fiddle to set the i-th pin to HIGH IFF binary version of j
    ...
  21. trying to set pins to control an 11 bit parallel bus. Bit fiddle?

    I am working on replacing a Z80 controller board in an analog recording console with a teensy replacement. The z80 board handles some input from switches and sets electronic switches.

    I have...
  22. Replies
    1
    Views
    278

    WS2812E teensy4.1 logic level shifting

    I see that Paul S suggests not to use mosfet level shifters...



    is this reccommendation only for teensy 3.x? I have used a BSS138 based board (https://www.sparkfun.com/products/12009) on my...
  23. Replies
    14
    Views
    1,051

    well I found this particular issue. This week I...

    well I found this particular issue. This week I added serial midi with 5 pin din. I had been using just usb until now. I was working on another area in my project and of course neglected to test all...
  24. Replies
    14
    Views
    1,051

    Well I got it to complie. But I am still having a...

    Well I got it to complie. But I am still having a slow down. I have isolated to one section of my project, wading through now.
  25. Replies
    14
    Views
    1,051

    got it..... Looked at the new examples for...

    got it.....

    Looked at the new examples for SD....... SdFat_Usage.ino

    needed to update:


    SD.begin

    to
  26. Replies
    14
    Views
    1,051

    I removed C:\Program Files...

    I removed C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SdFat


    //------------------------------------------------------------------------ includes

    #include <WS2812Serial.h>...
  27. Replies
    14
    Views
    1,051

    I think Paul is on the right track here......

    I think Paul is on the right track here... "overlapping MPU regions" Since working with WS2812Serial and DMA I have been seeing some weird things happen. memory getting overwritten where it shouldnt...
  28. Replies
    14
    Views
    1,051

    can of worms! So I have done a full fresh install...

    can of worms! So I have done a full fresh install of the latest arduino IDE, teensyduino......

    here are my includes:


    ...
  29. Replies
    14
    Views
    1,051

    fileSystem: In function 'void saveConfigToSD()':...

    fileSystem: In function 'void saveConfigToSD()':
    fileSystem:1135: error: 'File' was not declared in this scope
    File sdfile; // File...
  30. Replies
    14
    Views
    1,051

    ah, I will check that right now...

    ah, I will check that right now...
  31. Replies
    14
    Views
    1,051

    4.1 with 8meg EXTRAM upgrade. I have had these...

    4.1 with 8meg EXTRAM upgrade. I have had these odd moments throughout the last 4 months of developing this code. sometimes it just hits these lags, I continue and it goes away. I am reaching a point...
  32. Replies
    14
    Views
    1,051

    debugging.......

    looking for pointers....

    So I have a project that has got pretty large.

    Apart from Serial.print to dump out debug info, how can I get more insight into what is going on in my program. As I code...
  33. Replies
    2
    Views
    306

    thanks Paul, I will look closer at the library..

    thanks Paul, I will look closer at the library..
  34. Replies
    2
    Views
    306

    WS2812Serial brigtness

    using WS2812Serial, is it possible to set brightness on an individual pixel?
  35. Replies
    7
    Views
    666

    yes, its all a bit unclear... lets try to recap...

    yes, its all a bit unclear... lets try to recap and ignore any mention of midi, music or quantise.....

    I think odsons answer #5 has it, but I was wondering if there is another approach.

    I have...
  36. Replies
    7
    Views
    666

    no, the intervals in the array define the note...

    no, the intervals in the array define the note from the root. its all semitones. I have a full definition of arrays in place and already have it working in other scenarios where my sytem is just...
  37. Replies
    7
    Views
    666

    caveat: some of my interval arrays could be up to...

    caveat: some of my interval arrays could be up to 12 entries, some might be 5.
  38. Replies
    7
    Views
    666

    quantise midi note data

    My midi sequencer project....

    I have a function that generates numbers. I need to "quantise" these numbers to the nearest number that fits a desired scale.

    example of the array that holds the...
  39. yes, this is kind of what I am doing but without...

    yes, this is kind of what I am doing but without all the expense of calculating a hash.
  40. well after a tense evening and a fruitfull...

    well after a tense evening and a fruitfull morning, I decided I had to roll my own. This is what I came up with, it seems to do the job niceley. I can see how on a larger grid this approach would...
  41. yeah, this is what I am trying to avoid.... Hence...

    yeah, this is what I am trying to avoid.... Hence my thinking that taking the whole array[][] as a single block of memory, poping that value into the temp array and doing the comparison on that is...
  42. no i need to compare the whole thing - it...

    no i need to compare the whole thing - it represents the game which is being displayed on a 8*32 neopixel panel.....
  43. ok, I am running a game of life program and...

    ok, I am running a game of life program and trying to detect when it gets stuck. I already have it resetting fine when it run out of moves, that was trivial. The issue is it can get stuck in a...
  44. ok, so lookng closer at memcmp(), is it as simple...

    ok, so lookng closer at memcmp(), is it as simple as this?




    int compare;

    arrayTemp[i] = (byte) array;

    i++;
  45. read a multidimensional array as an integer only for comparison

    I posted this question earlier on Stack overflow https://stackoverflow.com/questions/68235976/c-read-a-multidimensional-array-as-an-integer-only-for-comparison



    UPDATE: Considerations: this is...
  46. I just sent you a PM

    I just sent you a PM
  47. _drummer:62: error: use of deleted function...

    _drummer:62: error: use of deleted function 'drummerLibraryDataUnion::drummerLibraryDataUnion()'
    drummerLibraryDataUnion data;
    ^
    _drummer.ino:57:15: note:...
  48. Aha! OK, I think I see it now..... will give this...

    Aha! OK, I think I see it now..... will give this a go right now!
  49. im guessing this: typedef union...

    im guessing this:



    typedef union drummerLibraryDataUnion {
    drummerLibraryStruct structure;
    uint8_t structureSaveAndLoad[ sizeOfDrummerLibraryStruct ];
    }...
  50. const int sizeOfDrummerLibraryStruct = sizeof[...

    const int sizeOfDrummerLibraryStruct = sizeof[ drummerLibraryStruct ];

    is that correct? how come [] not () after sizeof?

    I still dont see how the union references the drummer pattern struct...
Results 1 to 50 of 68
Page 1 of 2 1 2