Digital Tinkering – two toggles and a piezo

This mini project is a step further in the right direction, each of the toggles turns on a the piezo. I want the circuit to remain closed when the user has pushed the button therefore I will need to use maintained switches. This means it will stay in one state until actuated into a new one and so on. These switches are often referred to as toggle or ON/OFF switches.

Before, adding a piezo I first used a LED. The was a really quick way for me to test the toggles and make sure they work as it requires no code and the set up is easy and fast.

I then decided to use both toggles simultaneously to turn the LED on. Both switches have to be in the ‘on’ position for the circuit to be complete and the light to shine.

Lastly, I amended some code written by Scott Fitzgerald, the toggles turn the piezo on. This project is the basic idea for what my project does. Turn the toggle on and sound plays. The project did not work seamlessly but, I think was because some of the connections were loose.

Screen Shot 2018-04-29 at 14.01.28

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: