Hi.
I'm wanting to use the ky-380 microphone (TkkrLab) for a project with the due so I need to know what I have to do to safely and correctly power it. Do I use the 5v pin or can I use the 3.3v pin? Just want to make sure that I don't damage the board.
It depends on wether the module properly works if powered with 3.3v. If so, just power it with the 3.3v pin of the Arduino.
If not, things get more subtle. If the module outputs a signal based on its Vcc, then you must not directly use the 5v pin, otherwise the signal you will input in return of the module will exceed the 3.3v accepted by the Due.
I had the same issue with an accelerator module. I bought a level converter (e.g. Logic Level Converter Bi-Directional IIC 4 Way Level Conversion Module Sale - Banggood USA sold out-arrival notice)
With such a module, you safely convert 5v <-> 3.3v. Of course, the drawback is that you have more wires
I do not know if there is some other solutions.
Best,
Okay thanks. Using a level convertor sounds like the best idea. Is there a schematic or guide anywhere that I could read on how to use one because I'm not too confident with electronics.
On such a module, you have 2 grounds, and one 5v, and one 3.3v. Power each Vcc with its related voltage. For the ground, the common one of the Arduino is fine.
Then, wire what you want on the 3.3v / 5v according to the level it requires.
Best,
Power from 5V, reduce the output voltage to 2/3rds of its value with a resistor divider,
remember its an analog output, a logic level converter will not work at all.