Loading...
Pages: [1] 2 3 ... 10   Go Down
Author Topic: Menu for Display  (Read 4553 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi All,
do you know something simply procedure to implement for inizialize arduino from a keypad and display the on a display ?

I'm trying to find a base code from start to implement it,

thanks in advance,

Andrea
Logged

East Anglia (UK)
Offline Offline
Edison Member
*
Karma: 48
Posts: 1420
May all of your blinks be without delay
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Did the keypad (make/model ?) come with any example programs ?
What do you mean by "inizialize arduino from a keypad" ?
Logged

Queens, New York
Offline Offline
Edison Member
*
Karma: 29
Posts: 1574
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

To get you started.
http://arduino.cc/forum/index.php/topic,137352.30.html
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino

Arduino Tutorials, coming soon.

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes I'm using the Keypad.h with Adafruit Keypad,

So My focus is built a sketch that for example when I push * appear the menu i then i start to set my parameters,

thanks
Andrea
Logged

Queens, New York
Offline Offline
Edison Member
*
Karma: 29
Posts: 1574
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You would need IF/ELSE statements and CASE statements, or you can look into the new menu library. I never got a chance to try it myself but it wouldn't hurt to give it a try. Just do a search for Arduino LCD Menu Library.
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino

Arduino Tutorials, coming soon.

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok thanks,
what I was thinking to was to implement a case with if etc etc,
but If is there more simply routines to call should better and more inside the software i thinks, i will check and then I'll to you know,

regards,
gnux
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I've tried to something with Library Menu but I retrieve several issues with the library ...

:-(

I will see the other suggestion ...

regards,
Andrea
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

liudr has once started a new section in playground:
http://playground.arduino.cc//Main/InterfacingWithHardware#ui

I also made a list of menu tools some time ago:
Library Name:             LCDMenu2
Download:             http://arduino.cc/forum/index.php/topic,73816.0.html

Library Name:             LCDMenu
Download:             http://arduino.cc/forum/index.php/topic,96104.0.html

Library Name:             MenuBackend
Download:             http://wiring.uniandes.edu.co/source/trunk/wiring/firmware/libraries/MenuBackend/

Library Name:             LCDMenu
Download:             http://www.metalgecko.com/arduino/LCDMenu.zip (does not exist any more)

Library Name:             Arduino_LCD_Menu
Download:             https://github.com/DavidAndrews/Arduino_LCD_Menu

Library Name:             MENWIZ
Download:             https://github.com/brunialti/MENWIZ

Library Name:             phi_prompt
Download:             http://liudr.wordpress.com/libraries/phi_prompt/

Library Name:             MenuSample
Download:             http://sourceforge.net/projects/arduinowifly/files/MenuSample/

Library Name:             M2tklib
Download:             http://code.google.com/p/m2tklib/

Library Name:             OpenMoCo Menu Manager
Download:             http://arduino.cc/forum/index.php/topic,131614.0.html, http://dynamicperception.com/software/openmoco-avr-libraries


I can say that discussions on MENWIZ and phi_prompt had been very active on the Display forum. I also get a lot of feedback on my own menu lib (M2tklib) and you are always wellcome to contact me if you have any trouble with M2tklib.

Oliver
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you want I can try to use your library for the menu "M2tklib" in this way will be happy togheter :-) ... so i'll learn how to use the menu and you maybe you i'll can be to improve your library ...

So, with the menu I'm starting from zero point ... anyway i'll download the library and I'll start try to understand how it's working ...

thanks in advance,

gnux
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So, for start I've available 2 kind of display,

- the first one is  a LCD (4 Rows with 20 character) --> 7 pins
- the second one is a LCD (2 Rows with 16 character) --> 2 pin I2C bus

Which is the best and simple to use :-) ?

Thanks
Gnux
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

With M2tklib only LiquidCrystal lib is supported, so you need to use your 7 pin 4x20 LCD.
Also take care to download M2tklib for LiquidCrystal.

Oliver
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,
I've downloaded:

- m2tklib_arduino_lc_1.09.zip

and now I'm looking the examples,

MENU 2L

So, I've understand how structered the menu ..., for the input I've available a keypad that has the characters from 0 to 9 plus * and #

Could i use it ?

if yes how I can define the push button ? and how I can call the right procedure ?

thansk :-) you see that I'm very young with that :-)
Logged

Germany
Offline Offline
God Member
*****
Karma: 69
Posts: 802
If you believe something is right, you won't see what's wrong (David Straker).
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi

Input:

By default M2tklib supports aktive low push buttons: Connect an Arduino pin to a push button and the other end of the push button to ground.

A keypad can be used, but you need to define your own "event source", which is not really described at the moment. Let me know if your really want to use your keypad. In this case we need to study the datasheet for the keypad and write a specific event source.

Another way is to simulate input by using the serial monitor.
With the serial monitor you can test your menus without extra input hardware. Instead, input on the serial monitor is used to navigate through the menues. For example look at the Combo.pde:
You will find the following line:
Code:
M2tk m2(&list_element, m2_es_arduino, m2_eh_2bs, m2_gh_lc);
Add "_serial" to the event source:
Code:
M2tk m2(&list_element, m2_es_arduino_serial, m2_eh_2bs, m2_gh_lc);
This enables the serial monitor to navigate through the menu. Remember to activate the serial monitor in your Arduino IDE.
This can be done for all examples, and of course it might be a good starting point for your projects, if you have not yet decided which hardware buttons to use.

Learning M2tklib:

Looking at the examples is a good starting point. And it seems that the examples are already working (I am glad the M2tklib works in your environment). I also suggest to look at the first three tutorials:

Tutorial 1: General setup
Tutorial 2: How to apply the above mentioned push buttons
Tutorial 3: How to build a simple menu/dialog
I also suggest to read
Tutorial 7: How to use the serial monitor interface
as mentioned above for quick success without additional input hardware

Oliver
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks Oliver,
Then I need to define 2 push button in arduino correct ?

and I not understood bad i can test my menu into Arduino serial monitor without lcd before to deploy it with the display,
this I think it's very useful ...

So, I will read the documentation and then I'll start immediately ...
So i think that for the moment I can implement 2 button without problem for be more confortable ... what do you mean ? Then when I'll be able to manage it maybe we can pass to keypad ...


Thanks for your precious support,
Andrea
Logged

Offline Offline
Sr. Member
****
Karma: 2
Posts: 354
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Oliver,
So, after reading your indication I've seen how to proceed more or less but I've some question for you. I'd Like to structure my Menu in this way:

Menu --> Activate pushing "Select"
  - "Date/Time 1"
      ". Set D/T 1-1"
      ". View D/T 1-2"

  - "Timer 2":
     ". E/D 2-1"
     ". Sel. Dev. 2-2"
     ". Start  D/T 2-3"
     ". Stop D/T 2-4"

    
for the moment i think should be enough :-)

But the problem is how to do that ? How i can call the procedure, Retrive Value etc?

thanks
Gnux

    
  
  
« Last Edit: January 18, 2013, 08:33:51 am by gnusso » Logged

Pages: [1] 2 3 ... 10   Go Up
Print
 
Jump to: