Thanks for the help, got it running now.
Here is a working example sketch:
/*
example sketch to drive up to 1 + 8 monochome OLED displays using a TCA9548A i2c MUX
display on wire 0...
Type: Posts; User: snowsh
Thanks for the help, got it running now.
Here is a working example sketch:
/*
example sketch to drive up to 1 + 8 monochome OLED displays using a TCA9548A i2c MUX
display on wire 0...
I have declarations for multiple OLED displays running via an 8 channel i2c Mux:
Adafruit_SSD1306 display1(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire2, OLED_RESET);
Adafruit_SSD1306...
Apologies for bumping a thread from 2018, but I suspect i am experiencing a similar problem. Was a solution ever found? Right now I have fixed a crash that was happening very quickly during runtime....
t4.1
I am developing a midi sequencer. At present its timer is based on a couple of counters. the first counter measures the steps in each pattern, and the second increments on each round of the...
@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...
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...
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...
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...
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...
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
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...
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!...
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...
What console do you have? Im working on a Soundtracs Eric, its quite a beast.
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...
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...
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...
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...
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...
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...
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...
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 :...
yes thanks guys! All a bit mixed up, but the confusion was writing decimal when it should have been hex......
getting there.
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
...
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...
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...
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...
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.
got it.....
Looked at the new examples for SD....... SdFat_Usage.ino
needed to update:
SD.begin
to
I removed C:\Program Files (x86)\Arduino\hardware\teensy\avr\libraries\SdFat
//------------------------------------------------------------------------ includes
#include <WS2812Serial.h>...
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...
can of worms! So I have done a full fresh install of the latest arduino IDE, teensyduino......
here are my includes:
...
fileSystem: In function 'void saveConfigToSD()':
fileSystem:1135: error: 'File' was not declared in this scope
File sdfile; // File...
ah, I will check that right now...
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...
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...
thanks Paul, I will look closer at the library..
using WS2812Serial, is it possible to set brightness on an individual pixel?
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...
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...
caveat: some of my interval arrays could be up to 12 entries, some might be 5.
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...
yes, this is kind of what I am doing but without all the expense of calculating a hash.
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...
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...
no i need to compare the whole thing - it represents the game which is being displayed on a 8*32 neopixel panel.....
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...
ok, so lookng closer at memcmp(), is it as simple as this?
int compare;
arrayTemp[i] = (byte) array;
i++;
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...
I just sent you a PM