Wiring solution

Hello,

Hopefully you guys can help me with this problem. I have a button box I am struggling with. I have the code for the micro, and it works. I have three rotaries, all working. I have two on/off/on toggles, and two buttons. I have tried three different wiring solutions on them. On one nothing worked, on another the buttons worked, and on the third the toggles worked. Im frustrated to say the least. I have attached a pic of the schematic, any help to get T1&2 AND b1&2 all working would be awesome.

If You please read the first, advising topic named "How to use this Forum" You will discover that You have missed to supply the code, wiring for buttons and power supply. Telling about numerous, unknown, undocumented failures, mostly tells You don't know what You are doing. Slow down and make new efforts in posting.

T1&2 and b1&2 do not seem to connect to anything!

You cannot use INPUT_PULLUP on D14.

Your comment that you have the code and know it works is, well, curious. How can you say it works if you've never successfully wired the parts to the processor board? If the code came from a blog or the web somewhere, please, post a link to it. Otherwise, you need to post your code per the forum “how to use” rules sticky at top of every sub-forum listing.

What little bit of a diagram you posted is not helpful. What’s a rotary? An encoder? A potentiometer? The component identifiers (R1/2/3) would imply they’re potentiometers, not rotary encoders. But, we have absolutely no way to know what you have and what you’re trying to do.

Since we don’t know what parts you have, you need to either post links to the exact parts you purchased or photographs of them. Once we see the code and know what parts we’re dealing with, then can we help with the wiring. Not before.

kcduncan:
Railroader, thanks for the help, it’s always fun to read someone mock you when asking a question. Does the code need to be there when looking for a wiring diagram? And the power source is the computer I’m plugging the button into.

Paul, I left the wiring diagram off of the buttons and toggles on purpose. I’m hoping someone with the knowledge of how to wire them would take the time to help a newbie.

You are waisting our time. There are more members asking for answers.

After I finished the wiring the first time I tested it. The buttons worked and the toggles did not. I then rewired it and the toggles worked and the buttons did not. So I do know that each one can and has worked, just not at the same time.

The rotary is a rotary encoder, they work just fine. The r1/2/3 was how i labeled them as rotary encoders. Just like b1 and b2 are buttons 1 and 2, and T1 and T2 are toggles 1 and 2. They were not the issue, they work just fine.

here is the list of parts:
Arduino Pro Micro...ATmega328 Pro mini
Cylewet 360 degree rotary encoders code switch
Clyxgs momentary push button switch
Esupport on/off/on mini minature toggle switch

I used the arduino button box v2 code, same code I used on a previous button box that worked perfectly the first time out of the gate. It had twice as many switches and buttons than this one. I didnt need all the buttons from the first one so I made a smaller box. I obviously have messed up the wiring somewhere for the switches and buttons.

Railroader:
You are waisting our time. There are more members asking for answers.

See this is why people dont ask questions. I asked a legit question and got mocked. Then i got told that i dont matter. If you cant be a decent human, then why respond?

If You provide information the way You are supposed to do You woukd get useful answer.
Using numerous of replies just to help You write the question is just waisted time. We are not Your mother.

There are plenty of people here who would help, but you have provided no code or schematic for us to review. Without those, we would only be guessing.

Your picture is useless as a schematic.

You have basically said:
I have wired stuff up and it doesn't work.
For anyone to help you they will need to know how you actually wired it up and what is actually happening. Look up the forum guidelines (sticky at top of every section). It tells you how to best form a question, what information to include, how to post a picture and how to use code tags.

At the very least, post a schematic. (Please, NOT a pretty Fritzing picture)

kcduncan:
See this is why people don't ask questions. I asked a legit question and got mocked. Then i got told that i don't matter. If you cant be a decent human, then why respond?

And you post replies and then remove them because - something did not suit you?

You do not seem to be doing very well here so far. :roll_eyes:

Do it incrementally.
Choose the design you had the most success with.
Post the code and schematic.
Describe the most important problem and ask for suggestions.

I went to the discord channel and posted the same question, and they miraculously were able to help. I offered them the same information and they were willing to help without making fun of anything I said nor was I locked for my lack of knowledge. They asked one question and I answered it. The buttons now work and so do the toggles. I have read thru other posts and noticed how other are treated on here, not much different then how I was. So if your gonna be a guidance part of the forum, maybe offer some guidance instead of ridicule. Later tators.

For buttons: One side to GND, the other side to INPUT_PULLUP pin. The pin will read LOW while the button is pressed.

For toggles: Center to GND, each side to an INPUT_PULLUP pin. Both pins will read HIGH when Off. One pin will read LOW when the toggle connects it to GND.

johnwasser:
For buttons: One side to GND, the other side to INPUT_PULLUP pin. The pin will read LOW while the button is pressed.

For toggles: Center to GND, each side to an INPUT_PULLUP pin. Both pins will read HIGH when Off. One pin will read LOW when the toggle connects it to GND.

Thank you, that was the same answer I got from the discord chanel, I appreciate the straight forward answer. BTW, it worked and all my buttons and toggles now work.

If you'd answered the first reply, and posted your complete schematic or wiring diagram - this would have been answered before reply #5, but you insisted on doing it your way.

Adding the code can help also - either by fixing errors, or pointing out more efficient ways to do things...
Your fierce independence is good to see, and hopefully you learned why your original build didn't work.

Enjoy the arduino and various forums. There's a lot here.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.