Tutorial: manage menu and LCD display with Arduino
Working on my MIDI ribbon controller I needed to implement a menu to easily configure several parameters, but I found information on how to handle a menu, how to manage an LCD display, but very poor info on how to combine the two things. However, thanks to Alexander Brevig Menubackend library I managed to create the menu I wanted.I downloaded the Alexander Brevig Library version 1.4 and I slightly modified it adding, at line 195 of the MenuBackend.h file , immediately before the line "private:", this method: void toRoot() { setCurrent( &getRoot() ); } I needed this method to be able to return easily to the root of the menu. In my sketch I then imported and the Menubackend library and the LiquidCrystal library which is included in the Arduino IDE. Main | Item1-------------------------------Item2----------------------------------------------------Item3 | |Item1SubItem1-----Item1SubItem2 Item2SubItem1------Item2SubItem2------Item2SubItem3 For this project you need the following components:
MenuBackend, new menu managment library
I just created a new library for menu managment.It has no limits as to what kind of logical layout you want. [size=14]MenuBackend 1.0[/size] Every item can be thought of as a cross with directional connections in these direcitons: above, right, belov, left. You can add an item to another item at these locations. Say you have two items, called A and B.If you want these to be ordered as a horizontal menu with A being the first item, you simply add B to a at the right position.A.addRight(B);Now your menu support these actions (if you have added the A item to the menu): menu.moveRight(); //now menu.getCurrent() == Bmenu.moveLeft(); //now menu.getCurrent() == A Both menu setup and menu navigation is demonstrated in the example below. This menu also support backstepping. #include <MenuBackend.h> /* This program demonstrates a menu modeled after the menubar in the Arduino IDE +root +file +edit +sketch +tools +help +new +cut +verify (V) +autoformat +environment +open +examples +ArduinoISP*/
arduino meets processing - PUSHBUTTON
The Arduino meets Processing project intends to make it as easy as possible for anyone to explore the world of physical computing. All you need is an Arduino board as well as the Arduino and Processing software, which you can download on their project websites. On this website we explain how to: set up electronic circuits with various kinds of sensors, control and measure the sensors with the Arduino board, send the data to the computer, and use the received values to generate computer graphics with Processing. For all examples you need some basic electronic equipment such as a breadboard, resistors, the sensors, and some wires. The following sensors are dealt with on this website: All examples contain a list of the parts as well as the Arduino and Processing files you need. The Processing files have a DisplayItems class which paints a grid with values, a black or white background. Feel free to play around and have fun exploring the wonderful world of Arduino and Processing!
Hobby microcontrollers and electronics
ESP8266 WiFi touch screen thermostat
In this tutorial we will show how to build WiFi controlled thermostat with ESP8266, Arduino and touch screen display. Thermostat will also show other info, like weather forecast and temperature outside. Total cost for thermostat is about 40EUR, which is price for basic commercial thermostat in shop. Basic features: 6 modes - Auto, Off, LOLO, LO, HI, HIHI Touch screen WiFi connected Four set temperatures (LOLO, LO, HI, HIHI) and weekly schedule Time display Additional data display - temperature in other room, air pressure and weather forecast See more tutorials at
Related:
Related: