Simple Menu Project for Beginners

:wink: Hi There

I would like to come up with a simple menu sketch for beginners using the switch/case for selecting functions.
Could someone could offer how to use collaborative involvement in this forum.

I would also like to edit out negative remarks from trolls if someone could offer suggestions.

:wink:

check out the finite state machine threads here - there's a standard way to do this.

regards

Allan

That's quite an opening for a new person to the forum.

Making an attempt then asking for help when you run into a problem is the normal way to get help.

.

Please this:
http://forum.arduino.cc/index.php/topic,148850.0.html

.

0-0-0-0-0-0:
I would also like to edit out negative remarks from trolls if someone could offer suggestions.

What trolls?
Your post however is just asking for it, and it is not help.

Grumpy_Mike:
What trolls?
Your post however is just asking for it, and it is not help.

@Grumpy_Mike,
consider the OP's user name and Icon and Motto. If all are accurate they paint an inconsistent picture.

  • the discard-able user name says this is a troll.
  • The Icon is either a mutated solorization of a photo, or a skilled hand drawn image.
    But, why attach and accurate image to a discard-able handle?
    It is suspect.
  • The actual request is passive aggressive in nature. First it states the OP will create a menu system, describes the acceptable structure and purpose, then asks how to pawn off the work on others?
  • Finally, the real smack between the eyes! "I know you all are just a bunch of trolls that are impolite and abusive, I will politely ignore you!"

I guess I am a troll. I will stand back and allow all you trolls to produce the acceptable example.

Chuck.

consider the OP's user name and Icon and Motto.

You just know as soon as you see a name like this, the person has no intention of being a part of the community long term.
They come, they get, they go.

OMG i guess I am a troll too. :confused:

for collaborate involvement, is not the best place to post the gigs and collaboration section ?

Do you think telling us what hardware you are using might be necessary in getting the answer?

.

Also, give us a good schematic of the way you are thinking to interconnect these parts..

.

I recommend you use Mr. Gammon's SwitchManager library for your switch handling:
http://gammon.com.au/Arduino/SwitchManager.zip

See this example:
http://forum.arduino.cc/index.php?topic=350287.msg2416931#msg2416931

Edit:

In this code, is there a simple way to latch the leds on or off.

You are doing it already, please explain yourself better.
digitalWrite(ledPinA, HIGH);
.
.
.
digitalWrite(ledPinA, LOW);

Never use the delay() function as it freezes sketch progression for that amount of time.

.

"Simple Menu Project for Beginners"

  • This implies a display, are you using an LCD? If not what does the title mean?
  • Which Arduino board is this meant for?
  • Also implies this is for you to present to a class, is this correct?
  • Are you using resistors with the LEDs?

Have you used millis() i.e. BWD BlinkWithoutDelay, in a sketch to avoid using the blocking delay() function?

Please use code tags. Use the </> icon in the posting menu. [code] Paste sketch here. [/code]

.

I really like that on forums. Somebody log the issue, as they are new to Arduino and they don't even know how to start. I am just after the 5th approach of making a menu as I want to have it. Up and Down works, but enter and exit don't. I am trying to use keypad matrix 4x5 and LCD I2C.

Definition of troll for me - A person who intentionally misleading me, having fun from it. They not necessary may even know how to help, but they will direct you to Help section and tell you that when they started programming 20 years ago (having the age of 17 today), they read a lot of books and did a lot of simple sketches. They would tell you the story of their life, how good they are, but they will never try to understand what you are trying to achieve.

I will have to simplify my design and then build it up on top of it. I cannot access sub-menus and I cannot do anything else apart of scrolling up and down. I will get it working. Same way as I get a keypad and LCD "talk" to each other. Lots of unslept nights.

Yes. You do have to know the basics of programming to start playing around with Arduino. They can be tricky, as you are using different languages and modules. If you want to hook up something to it. I was given a task to build (prototype) the CNC machine for industrial metalwork manufacture. It will be so much fun ... and headaches. Something that I have 1-2 days for, takes me a 1 or 2 weeks. Luckie me, that I don't have the real deadline. It was for tomorrow, but we (me and the engineer) will probably do it within like 6 months or something. This is just a prototype rig for Beckhoff Developers, to do it properly in Beckhoff system. This project will work using Arduino (at least that is the plan), but it will be just a little sister of Beckhoff. For home, or very small company.

Definition of troll for me - A person who intentionally misleading me, having fun from it.

I don't see that as a feature of this forum at all. If that were to happen then there would be at least 20 posters ready to correct this.

The big problem here is that people post only a small part of their problem, or have an X-Y Problem and they fail to read the How to use this forum link which will tell them how to ask a question to maximum effect. Then we enter the twenty questions phase of trying to drag this information out of them. In the mean time others try and second guess what the problem might be, and offer up potential solutions.

Yes you do get the odd post giving bad advise but this is almost always corrected within one or two posts. It is more often caused by ignorance rather than malice. Can you post a link to where you think someone deliberately gave advice to cause mischief?

However, this is engineering and any problem might have many possible causes and many possible solutions. I like to say given N engineers there will always be at least N+1 strongly held opinions. Especially when the original poster has missed out what he thinks is not important, but is in fact vital information.

For example I recently had a poster who wanted to get data out of a MAX7219 chip. I told him to wire the serial out of this chip to the MISO pins of the Arduino. He insisted there was no output he could do this with. Eventually it turns out that he did not have a chip at all, but a breakout board with a built in display. That changes the picture altogether.

As to your particular problem if you want help in looking at menu structures their are many on the web. One example of a complex menu was in my project http://www.thebox.myzen.co.uk/Hardware/RFID_Sequencer.html you can download the code from that page to look at it.

As the forum guidelines state, if you don't understand some advice you are given then ask specifically about what you didn't understand, don't just reply "that went over my head", or worst still simply ignore it.

Sadly a lot of problems stem from an absolute beginner attempting a complex project because they think it will be easy, or lazy students wanting to cheat on class assignments or projects.

As to the original poster of this thread he has 4 posts. In one of them http://forum.arduino.cc/index.php?topic=518158.msg3530951#msg3530951 he has deleted his original question which is expressly forbidden in the rules, because the point of this forum is to provide a database of knowledge, not only for the poster, but those searching for the same sort of problem. In my book that comes across as extremely selfish and is into the Troll category of things.