I am new to Raspberry Pi. I recently wanted to connect a active buzzer (5V 30mA) like this: BUZZ to my Raspberry.
I am not sure should I use a resistor on the way to +5v pin and DATA GPIO pin. (like it was with DS18B20+ thermometer). I have searched the Internet and found that there is no resistor on the way, but the best practices tells me that there should be some Resistor on the way to DATA pin. I was thinking about 1k resistor on the DATA pin. Would this be ok? Thank you