So you said the signal was inverted and I suspected that because of the readings I was getting and I thought this is probably different than with the 6N138 example I saw on the website... And so instead of trying to fix...
So I have tried to connect the EN pin to 5v and add a 100nf cap between gnd and vcc but it didnt change anything.
So then I did a simple program just to read the pin instead of trying to get MIDI as suggested:
...
Can you share the link of this datasheet? Doesn't sound like the same I'm looking at.
I don't have the enable pin on the supply nor the 100nf cap. I can try that.
Ok I see what you mean about the LED, my test...
Hi,
In order to protect the serial Rx pin 0 on Teensy 4.0, I've made a pcb with a 6n137s like that:
But it's not working.
My goal is to be able to connect another teensy serial Tx but also any midi din cable...
OK so finally I don't know why I had excluded doing a voltage divider, but in the end it works just fine for what I'm doing... I had to take a break to see it...
So I'm just lowering the input before the diodes so that...
Well actually I could do a voltage divider with 2 resistors like in figure 6.5 , it's just that it means 2 more resistors to add and I'm very tight on space (even SMT) .
I see also the ADS1115IDGSR is interesting,...
Ah I see, and also I only notice now that this chip has an internal voltage reference of 2.048V which Vin should not exceed... This chip might not be the right choice for me in the end...
I didn't know LTSpice thanks, I made a simulation that seems to work as expected.
Schottky diodes seems more interesting indeed and the BAT54S looks nice, I like that there is the 2 diodes in one package, I'm...
Hi,
I'm doing a board that will accept a range of 0-5v as analog input. As Teensy 4.0 accepts only 0-3.3v I was looking at ways of making this work. So I was looking at linear optocouplers, opamps, resistor...