Do I have my grounds right in this circuit?
Looks correct with the circled going to AGND on the Teensy. Add a capacitor (0.1 uF ceramic) from the ADC input (A0 ?) to AGND to filter RF and interference.
Ok added it to the circuit diagram. Did I wire it right? See pic.
You have sufficient ADC channels to connect the pot and other input to dedicated inputs (each with a 0.1 uF) -- do you need the switch ? (or is it used to set which mode the system is in ?).
Yes, I would like to keep the switch. It lets me choose the mode. Correcto!
Keep the motor and power supply wiring separate from Teensy until you join all those wires at a single point, and connect that point to the Teensy's GND (This is called a 'star' connection).
This motor has a separate, dedicated large power supply that is not shown in this circuit. Not sure if it ever will join with this Teensy circuit. I'll check the manual. Thank you for this 'star' technique. I will keep it in mind for the future.
Short circuits and errors happen -- if your wires are long, and the motor runs from over 5 V, consider adding a R (1 k ?) in series with the motor enable switch -- that way if the pin gets shorted to a higher voltage it won't immediately fry your components.
All short wires.
What voltage is at motor input A ? The Teensy can't take more than about 5.5 V. If the voltage is higher, then insert a regulator (e.g. LM7805) in there.
Only 5.25V. This enable input A only needs to be a digital high over 5V to let the motor know to activate. It is not power.
If you're looking for a low noise reading on the pot, you'll probably want to use a lower value, like 5K or even 1K. Lower source impedance really helps.
Ok. Changed it to 1K. Would this same theory apply to my voltage divider area? This is where the analog control voltage from the synthesizer is being reduced from the 0-5V to the 0-3.3V needed. If so what values would you recommend?
Of course, connect the pot to AGND.
Ha! I guess that's why they call it analog ground. Sorry, didn't hear of it until now.
But really, most humans can't mechanically manipulate a single turn pot to highly precise positioning. In other words, without looking at the numbers, try turning the pot to a particular angle 5 times, and then look at the readings. You'll quickly discover human dexterity is the real resolution limit in using a pot for any sort of user input. Even 8 bits is probably more resolution than needed.
You are absolutely correct here. I was thinking of this issue earlier. It is especially important to match the speed when I record on the tape and later try to play it back at the same speed. After I figure out all the basics, the plan is to hook up one of those graphic displays to show the current setting.
But if you really want maximum electrical performance, use a lower impedance pot and connect it to AGND.
So instead of using a pot to set the speed, have a small display and two buttons - 'faster' and 'slower'. That way you can get to precisely the same speed.
These three circled in red should go to AGND?
Yes.
Probably a good idea to add a couple of schottky diodes on the input to protect against CV outside the range 0..5V (could be ±12V or ±15V depending on what synth format you are using). Also, unless your synth uses banana sockets, a switched jack could be used instead of the manual switch. So you get the CV from the pot if nothing is patched, and the patched CV if it is.
'Being careful' in the context of a modular synth means you are one "oops, wrong patchcord" from a fried Teensy.
Not in series (that would affect the signal due to the voltage drop across the diodes). Instead, one diode from the ADC input to the positive rail, and one from the ADC input to the negative rail (ground, in this case); oriented so that they do not normally conduct. If the input voltage goes more than one diode drop below ground, or more than one diode drop above the positive rail, the diode conducts and shunts the voltage away from the ADC input. Schottky diodes are used because of their low voltage drop. 1N5817 (available from various manufacturers) is commonly used. The forward voltage depends on current and temperature but is in the range 0.1 to 0.3V (instead of 0.6V for a normal silicon diode).
To limit the current if the diodes conduct, a resistor should be used before the diodes. Don't make this too high or the ADC function will be affected; 1k is a good value.
Here is an example circuit using this configuration (that is not my circuit, but it uses this principle).
Yes, you should either use lower value resistors or follow it with a rail to rail op-amp. Either way, the ADC needs to be driven from a moderately low impedance.
The other nice thng about sending the pot wiper value to the jack switch input is that it avoids the condition where there is no cable connected, the switch is in the 'jack' position and so the input is floating at an undetermined voltage. This way, there is always a defined value. Note that the wiper voltage now goes through your voltage divider, so the top of the pot should go to +5V or so.
I can't speak to the rest of your circuit that drives motors. But I am curious as to what this circuit is for. CV controlled Leslie speaker? Animatronic lighting?
Voltage controlled musique concrète, excellent. Thanks for the explanation and photos! Delia Derbyshire would be astonished.
Nantonos, does this circuit for the cv area area look correct? I tried to implement all your suggestions. Could you double check it for me?
The first voltage divider area is to reduce the 5.25 V from the power supply to 5.0 V.
You have used the symbol for a Zener diode (ah, so did the circuit I linked to, didn't notice). These are not the same as Schottky diodes.Then the manual pot control should be disabled if the plug is inserted. Next is the second voltage divider area to take the 0-5.0 V (either from the external plug or pot) and reduce it to the 3.33V for Teensy. Diodes for protection and capacitor for cleaning. All using the AGND except at the power supply which goes to the Teensy GND.