Axoloti w/Teensy


#32

i see. so yeah go with din-midi


#33

So I can connect midi from teensy to axo and from axo to teensy by wiring the right pins?


#34

yes. usually you need a protection circuit on the midi in side, the optocoupler. but if you connect two micro controllers it should work without. if you encounter any problems later on, i.e. hum on the audio path you might need to add the opto. it also depends on the power you feed the axoloti and teensy.


#35

I'm feeding power to axo via micro USB. And I was thinking of wiring teensy to get power from axo. Is it OK to use the optocoupler in any case? Or is there a minus side to it? Do you know what kind of optocoupler do I need?


#36

the opto is ok in any case. there are multiple schematics around for midi in, i.e. here for teensy:

https://www.pjrc.com/teensy/td_libs_MIDI.html


#37

Could I use this gpio method? Could it be easier?

Oops, this : https://sebiik.github.io/community.axoloti.com.backup/t/mongiloti-synth/1839/3

Using PA2 and PA3

"Hugo's patch example contained a great fix. Using the Midi IN objects from Hugo's patch, I connected my Teensy TX -> 220Ohm Resister -> PA3 on the Axo. Wallah, instant MIDI in without any interferance on the external socket. Niiice."


#38

not sure what you mean by that, sorry.


#39

Whoops I forgot the link, edited :slight_smile:


#40

that is midi in to the axo. you wanted midi out to the midi in of the teensy, right?


#41

I want midi out from teensy to axo and vice versa.

"Hmm, Here's my pinout for connecting a Teensy to Axo UART

UART (Midircv) Teensy pin 0, Axo PA2 Rx
UART (Midisnd) Teensy pin 1, Axo PA3 TX"


#42

Do I need optocoupler even if using tx and Rx from teensy to axo TXand Rx?


#43

you can skip the optocoupler.


#44

So you powered teensy 3.6 from axos 5v pin? How did you wire it? Why did you use 5v when both of the microcontrollers are 3.3v?

Edit:

I read from teensy website that its ok to connect 5v to teensy vin exactly as you wrote. So no need to answer :slight_smile:


#45

Work in progress
Teensy3.2 is powered by axoloti.
For the moment 4 multiplexers with 16 channels (64 analog) + 2 analog, 8 digital inputs and LCD (other 7 digital inputs)


#46

I got this problem: i have axoloti with 12 pots and oled connected to it. It also has teensy 3.6 with 12 pots connected to it. I have wired the teensy to get power from the axo 5v. Everything seems to power up but the pots are not working. When I unplug the teensy then the pots wired to axo work with smaller range than normally. So I assume that they don't get enough power. All the pots get power from axo. I use the micro USB for axolotis power. Any ideas?


#47

If you can make a picture of the connections I can do some checking


#48

I guess it wasn't a power problem afterall, It seems that I got about 3/12 of the pots interfering with each other. I wonder how to fix that.

Edit:

I found out that pots are not actually interfering, just two pots or axo pins are not working correctly. Need to dig in deeper. So far 10/12 axo pots working. Still got to get the 12 teensy pots to work.


#49

I’m using 10k pots, all connected to GND and 3,3V rails. I’m using multimeter to meter pots: black meter wire on side pin of the pot and red meter wire on the middle pin of the pot. Most of the pots give metering of approximately 490 ohm when pot is turned to full. Zero when turned off. Few pots give metering of about 600 ohm. Few gives metering of 23kohm when turned to full on. What the heck is going on?


#50

you should get readings from 0 to 10k on each pot. so either your wiring or your pots are somehow bogus


#51

I get 0- 10k when the pots are unwired. When they are wired I get 0-490ohm when pot is turned full on. When its turned to the middle I get about 3k reading. I don't get it