Post has attachment
hello i was needing something like episode 42. it will work great. how do i change the code for a lcd shield with buttons? something like this.
Photo

hello!
I am trying to make a timer using arduino uno. But the twist here is that I want the arduino to store the value of the timer in case of any power loss. And restart from that value again when power is restored. How can I do this?

Hi Tech-Zen,

I'm trying to interface a 4x4 hex keypad and a 16 x 2 LCD c/w I2C comm. using an Arduino UNO. The code from episode 11 on your show doesn't work for me.
Any help here would be great. There seems to be a problem in the loop.
Thanks in advance

#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
#include <Wire.h>

LiquidCrystal_I2C lcd(0x27, 16, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display
int greenLed = 12;
int redLed = 13;

char code = "1234";
int currentPosition = 0;

const byte ROWS = 4; //four rows
const byte COLS = 4; //three columns
char keys[ROWS][COLS] = {
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};
byte rowPins[ROWS] = {9, 8, 7, 6}; //connect to the row pinouts of the keypad
byte colPins[COLS] = {5, 4, 3, 2}; //connect to the column pinouts of the keypad

Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

void setup()
{
lcd.init();
lcd.backlight();

displayCodeEntry();

pinMode(redLed, OUTPUT);
pinMode(greenLed, OUTPUT);
digitalWrite(redLed, LOW);
digitalWrite(greenLed, LOW);
}

void loop()
{
int i;
char key = keypad.getKey();
if (int(key) != 0) //if key is pressed
{
lcd.setCursor(8, 2);
lcd.print(" ");
lcd.setCursor(8, 2);


for (i = 0; i <= currentPosition; i++)
{
lcd.print("*");

}
if (key == code[currentPosition])
{
++currentPosition;
}
if (currentPosition == 4)
{
unlockDoor();
currentPosition = 0;
}


else
{
invalidCode();
currentPosition = 0;
}

}
}

void displayCodeEntry()
{
clearScreen();
lcd.setCursor(0, 0);
lcd.print("***************");
lcd.setCursor(0, 1);
lcd.print("**Enter Code**");
}

void clearScreen()
{
lcd.setCursor(0, 0);
lcd.print(" ");
lcd.setCursor(0, 1);
lcd.print(" ");
}
void unlockDoor()
{
digitalWrite(greenLed, HIGH);
clearScreen();
lcd.setCursor(0, 0);
lcd.print(" ACCESS GRANTED** ");
lcd.setCursor(0, 1);
lcd.print(" *WELCOME* ");
delay(5000);
digitalWrite(greenLed, LOW);
displayCodeEntry();
}

void invalidCode()
{
digitalWrite(redLed, HIGH);
clearScreen();
lcd.setCursor(0, 0);
lcd.print("*ACCESS DENIED*");
lcd.setCursor(0, 1);
lcd.print("*INVALID CODE* ");
delay(5000);
digitalWrite(redLed, LOW);
displayCodeEntry();
}





Hello letsmakeit!

My 7th grade students and I have been watching your helpful YouTube Arduino videos as well as other videos (we are fairly new to Arduino). We are trying to use an Arduino and keypad to act as the control center. I was wondering if you would be willing to give us some assistance.

Here is what we have done:
When powered up the Arduino lights up a green LED (a signal that tells people the train is moving)
When code 126 is entered on the keypad, a servo is triggered (that will stop the train) and the LED turns red (a signal that tells people the train will be stopping)
Here is what we want to accomplish:
In addition to using the keypad to trigger the servo and red/green LED lights, we want two additional codes to turn on two additional LEDs (and then codes to turn those LEDs off).
For example, code 123 will turn on a white LED (car lights) and code 456 will turn on a yellow LED (street lights). Then, 321 could be used to turn off the white LED and 654 will turn off the yellow LED. We'd also like a universal button, like the #sign to be able to turn off both whtie and yellow LEDs at the same time.

I know this is a lot to ask, but we learning this Arduino stuff together. We would appreciate any help you can give us, preferably sample code as well as some schematic that we can use to build it.

Thank you.

Ms. Baskas

Hi how u doin,
                 Am watching regularly your videos clip in online, i appreciate it, its really helping me lot.. And am happy to see you lot ..
                Actually i was trying   to do keyboard eliminator in arduino leonardo and its working fine in USB port in my CPU , But the requirement is I want to communicate through PS2 keyboard port in my CPU, and there is the problem its not communicating.

Actually the way am communicating is, from Arudino having USB cable and am using converter USB(female) TO PS2 (male) and male PS2 from converter to female PS2 port in CPU.

please help me out..
here is my program, I did it vary simple to know the function.
 
// So when ever i give input to 3rd pin in arduino caps lock should on its working if i plug it in USB port in CPU but not working in PS2 port(through converter)//


------------------------------------------------------------------------------------------------------------------------------------------------

char ctrlkey = KEY_LEFT_GUI;
#include <PS2Keyboard.h>
void setup() {

  pinMode(3, INPUT_PULLUP);
  Keyboard.begin();
  Serial.begin(9600);
}

void loop() {
 
if (digitalRead(3) == HIGH) {
  delay(500);
  Keyboard.press(0xC1);
  delay(100);
  Keyboard.releaseAll();
}}

----------------------------------------------------------------------------------------------------------------------------------------------------

Thanks
Arun

Hello, please i'm making a project in school on door system using RFID and keypad on arduino. I've tried different method, watched different videos but to no avail then i came across your site where i watched your videos and tried doing it that way using an em-18 RFID reader with your programming codes but its still not working. I would like to ask if its possible for you to send me the schematics diagram for the RFID and keypad project you did in your show.
Your help would be deeply appreciated thank you

Does anybody know of a diagram? or how the LCD connects to the arduino in Episode 11? And does anyone know what resistor they have used? Is it a 0.6 watt 330 ohm? 

 
i want simulator proteus 8 Countdown Timer With An Arduino - Episode 42

Hello, I am new here and to arduino. I'm trying to integrate several codes for make a bridge. I have stepper motors opening and closing a popscicle stick bridge, I want this to communicate with several sensors to detect water/road traffic. I am in need of some real help. Any advice or help you can give me?

i want simulator proteus 8 Countdown Timer With An Arduino - Episode 42
Wait while more posts are being loaded