RyoKosaka / HelloDrum-arduino-Library

This is a library for making E-Drum with arduino.
https://open-e-drums.com/
MIT License
234 stars 57 forks source link

Resistor and Zener values for ESP32 (3.3v boards) #48

Closed ojungleboy closed 4 months ago

ojungleboy commented 2 years ago

First, thanks for your job.

Question 1M and 5.1v are the choice for 5v boards for resistor and diode respectivelly.

In case of 3.3v logic boards, what are the resistor and diode values for protection?

Thank you so much again!

prostealth commented 1 year ago

if what you mean is for the piezo, you can use 1N4148 diode and 1M resistor will work too.

ojungleboy commented 1 year ago

if what you mean is for the piezo, you can use 1N4148 diode and 1M resistor will work too.

Thank you for your reply.

Yeah, I mean the piezo circuit. All diagrams using Arduino 5v is using 1M 4148 circuit. I am interested in the circuit for the ESP32 and I thought due to the lower logic level on the board, the piezo circuit for ESP32 had a different circuit components for 3.3v

prostealth commented 1 year ago

there are even a piezo circuit with only 1M resistor. as remember it was to prevent analog signal floating (hitting itself in case of arduino drum). the type of diode doesnt really matter. but its better to using the diode

ojungleboy commented 4 months ago

Thank you