bdan
Published

Python Tkinter + Arduino Buzzer

I connected a buzzer to my Arduino UNO board using Python Tkinter module.This application, can be used in education purposes and much more:)

IntermediateProtip2 hours749
Python Tkinter + Arduino Buzzer

Things used in this project

Story

Read more

Schematics

schema1

Tkinter GUI Buzzer Arduino

work in progress...

Code

Note_tkinter

Python
## Bogdan FeBe 03.11.2019
# Music Notes using Arduino and a buzzer
# ROYGBIV color code
# red orange yellow green blue indigo violet

from tkinter import *

#arduinoMega = serial.Serial("com6",9600)
 
window = Tk()
 
window.title("Note muzicale")
window.geometry("300x300")


btn1 = Button(window, text="C / Do", bg="black", fg="red")
#btn = Button(window, text="Click Me")
btn2 = Button(window, text="D / Re",bg="black", fg="orange")
btn3 = Button(window, text="E / Mi",bg="black", fg="yellow")
btn4 = Button(window, text="F / Fa",bg="black",fg='green')
btn5 = Button(window, text="G / Sol",bg="black",fg='blue')
btn6 = Button(window, text="A / La",bg="black",fg='indigo')
btn7 = Button(window, text="B / Si",bg="black",fg='violet')
btnexit = Button(window,text='EXIT',bg="red",fg='white',command=exit)

#

btn1.grid(column=1, row=0) 
btn2.grid(column=2, row=0)
btn3.grid(column=3, row=0)
btn4.grid(column=1, row=1)
btn5.grid(column=2, row=1)
btn6.grid(column=3, row=1)
btn7.grid(column=2, row=2)
btnexit.grid(column=5,row=3)


window.mainloop()

Credits

bdan

bdan

6 projects • 3 followers
Hi! Welcome to my profile. Right now studying Arduino and Tkinter library for medical projects.

Comments