Multiplication Trainer
Multiplication Trainer I designed a simple code so that my son could memorize his tables. This code generates random numbers between 2 and 12 and asks for the product of the 2 numbers. You need to enter the answer and then press the # key. If you answer correctly it will display a message with the correct answer for 3 seconds and then move on to asking a new question. If you answer incorrectly, it will display an appropriate message with the correct answer for 5 seconds and move on to asking the next question. It also displays the date, time, temperature and humidity when you press the * key for 10 seconds. Below are some images - Code - #include <dht.h> #include <Wire.h> #include <LCD.h> #include "RTClib.h" #include <LiquidCrystal_I2C.h> #include <Keypad.h> LiquidCrystal_I2C lcd(0x20, 2, 1, 0, 4, 5, 6, 7, 3, POSITIVE); // Addr, En, Rw, Rs, d4, d5, d6, d7, backlighpin, polarity RTC_DS1307 RTC; #de