Go Down

Topic: Circuitry. (Read 588 times) previous topic - next topic

Grumpy_Mike

Quote
I have reworked on the circuit in where I have three time switches and three pushbutton switches.

You might have reworked it but the push buttons are not going anywhere and you have no pull down resistors. The time switches just seem to light up some LEDs, very nice but you can't use them in your code because they are not connected to the arduino.

agrinshtein

How would you recommend making the circuit?

The link should allow you to rework the circuit.

Grumpy_Mike

Quote
How would you recommend making the circuit?

I would wire up the push buttons between an input and ground, and enable the internal pull up resistors in software.
I don't know what you want to do with the time switches but one way would be to wire them up just like push buttons and wire the LEDs to three outputs.

agrinshtein

I wish I had a clear understanding of what you are saying.
Quote
I would wire up the push buttons between an input and ground, and enable the internal pull up resistors in software.
I have changed it slightly to have the switches connected to pin 11. Is that what you meant? https://www.circuitlab.com/circuit/9tgp8z/led-switch-case-buttons-to-capture-time/

Quote
I don't know what you want to do with the time switches but one way would be to wire them up just like push buttons and wire the LEDs to three outputs.
With the time switches I want them to complete the circuit when a specific time is reached, let's say 10:00, and thereby lighting up the LED.  So I understand that I need:

  • The power in order to power the LED

  • The switch in order for it to complete the circuit provided the correct criteria are met

  • Ground - to complete the circuit



What am I not understanding? Because I feel that I am not understanding something very basic.


Grumpy_Mike

Each button must be wired to a diffrent input pin. The other end of the button should be connected to ground.
The time switches are not needed, you just connect the LED and resistor to an arduino output each.

As you seem to know so little I suggest you do some tutorials first before proceeding with this project.

Go Up