Arduino Based Personal Assistant. (BHAI)

3,381

3

7

About: Writer, Poet, Graphic Designer, Programmer, Techie, Arduino lover. :) Oh and yes, Engineer in making.

Introduction:

Made in collaboration with Kundan Singh Thakur

This is my first instructable so please ply with any mistakes I might have made. Also do leave comments in case of any doubts or issues.

The arduino based personal assistant is like your virtual roommate. If you feel lazy and don't want to open that door, just connect your android phone to the bluetooth and start giving commands. :)

The personal assistant connects to your android phone via bluetooth and works on voice commands you give it and performs the process requested like opening the door or turning on the lights.

How I came up with this idea was the laziness of me and my roommate. Whenever somebody knocked on the door, neither of us wanted to go and open the door. therefore i came up with an idea that what if we had another roommate, a virtual one to help us with work we're too lazy to do ourselves like opening the door, turning off the lights etc. I could have easily done this using IR communication, but what's the point of a roommate who doesn't speak. Therefore I named him BHAI (Brother in hindi). and the name perfectly fit for Basic Home Automation Interface. :)

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: Requirements.

The following components or parts are required to be able to continue with this project:

Requirements:
1x Arduino Uno (I used an arduino uno with this, you can use any board you like. )

Mind that if you use other board(s), you might have to manipulate the code to match the pins on your board..

1x Hc-05 bluetooth module.

1x Nokia 5110 LCD module.

1x 8ohm speaker or buzzer(anything you like).

1x l293d motor driver module.

2x 6 volt motors

1x android phone.

2x LED's (as substitutes for Light bulb)

Arduino IDE from arduino.cc

Step 2: Setting Up the Circuit.

make the following connections on your Arduino Uno:

1. Connect the Nokia 5110 LCD

VCC -> Arduino 3.3V
LIGHT -> Arduino 5v(I am going to be using it on and mine works this way. If your is not on this way, connect it to the arduino ground)

GND -> Arduino GND

CLK (SCLK) -> Arduino pin 7

DIN (MOSI) -> Arduino pin 6

DC -> Arduino pin 5

CE or CS -> Arduino pin 4

RST (RESET) -> Arduino pin 3

2. Connect the HC-05 Bluetooth module.

Vcc -> 5v of the arduino (I used the 6 volts module so I could connect to the 5 volt supply. If you have a 3-5 volts module, connect it to the 3.3volt supply else you might damage the circuit.)

GND -> Ground of the arduino

RX -> TX of the Arduino

TX -> RX of the Arduino.

3. Speaker

Connect the positive wire of the speaker or the buzzer to the 9 pin on the arduino uno and the ground pin to the GND pin of the arduino.

4. Motor Driver

connect the connections of one motor to the A5 and A4 of the Arduino Uno and the remaining connections to the A3 and a2 of the Arduino Uno. (you can later interchange these pins according to your needs).

5. Motors

Connect the motors to the motor driver module on specific pins. Make sure that the motor you are going to use as a fan is connected to the same output which responds to instructions related to the fan.(You'll understand this in the following steps).

6. LED's

Connect the positive(the longer leg) of one LED to A0 pin of the arduino and the positive pin of the second LED to the A1 pin of the arduino.

Ground the other two pins.

and your circuit is ready to go.

Step 3: The CODE

Here is the big daddy of this project. The Circuit was simple and easy to copy. The main issues with this project is to handle and make the program. Okay, here is how the code works:

First of all, for this project and for the Nokia 5110 LCD to work, you will need the LCD5110_BASIC library from HERE.

How the code works is:

1. You show the basic introduction( As in my case, I showed that "Booting" text) in the setup function to run only once.

2. in the loop function, to run repeatedly,

you scan the serial for any input given by the user via Bluetooth and store the value in string datatype in the variable named voice.

Now, if the length of the string stored in voice variable is greater than 0, i.e. there exists some value in the variable,

compare the string to some predefined values like "Lights on" or "Hello", if the value matches, i.e you have said hello on your android phone, the conditional "else if" will be true and the code block will execute.

There is an else block at the end of all the predefined conditionals so as to let the arduino have a reply when you give a command which it is not programmed for. I have typed "Pardon?" to be a little polite. You can modify anything in the code.

After this, the value of the voice variable is reset to null, " " to make it ready to receive the next command.

Download the code from my github: BHAI CODE


BHAI also shows graphics to give itself a personal touch. The .c file present along with the .ino file should be placed in the same folder as the code as it contains all the bitmap arrays in the form of c code.

For more information on how to display graphics on your nokia 5110 LCD display, Click here.

Step 4: The App and Control.

For this project to function and for yourself to be able to give it commands, you need an android device and an app which will send the voice input tothe HC-05 module.

Now since we are working with HC-05 module, this project wont be able to work with an iPhone because iPhone only supports BLE(Bluetooth Low Energy).

Download the app for android devices from HERE

Download and open the app and connect your phone to the HC-05 module and open up the app.

Establish a connection with the HC-05 in the app and try speaking one of the commands you have included in your program.

Enjoy and do let me know if you have any issues.

Microcontroller Contest

Participated in the
Microcontroller Contest

Be the First to Share

    Recommendations

    • Instrument Contest

      Instrument Contest
    • Make it Glow Contest

      Make it Glow Contest
    • STEM Contest

      STEM Contest

    7 Discussions

    0
    None
    azaj_19

    3 months ago

    Bro I'm getting this error message. What should I do to run this program.
    Arduino: 1.8.9 (Windows 10), Board: "Arduino/Genuino Uno"
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino: In function 'void loop()':
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:183:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Basic", LEFT, 0); //
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:184:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Home", LEFT, 12); //
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:185:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Artificial", LEFT, 24); //did not use the function here because the function i made takes only two trings as the parameters.
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:186:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Intelligence", LEFT, 36); //
    ^
    C:\Users\asus\AppData\Local\Temp\ccPdmzt4.ltrans1.ltrans.o: In function `hi_bye()':
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:273: undefined reference to `HI'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:273: undefined reference to `HI'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:275: undefined reference to `HI_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:275: undefined reference to `HI_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:277: undefined reference to `HI_3'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:277: undefined reference to `HI_3'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:279: undefined reference to `HI_4'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:279: undefined reference to `HI_4'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:281: undefined reference to `HI_5'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:281: undefined reference to `HI_5'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:283: undefined reference to `HI_4'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:283: undefined reference to `HI_4'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:285: undefined reference to `HI_3'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:285: undefined reference to `HI_3'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:287: undefined reference to `HI_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:287: undefined reference to `HI_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:289: undefined reference to `HI'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:289: undefined reference to `HI'
    C:\Users\asus\AppData\Local\Temp\ccPdmzt4.ltrans1.ltrans.o: In function `display_face()':
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:256: undefined reference to `FACE_AN_1'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:256: undefined reference to `FACE_AN_1'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:258: undefined reference to `FACE_AN_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:258: undefined reference to `FACE_AN_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:260: undefined reference to `FACE_AN_3'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:260: undefined reference to `FACE_AN_3'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:262: undefined reference to `FACE_AN_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:262: undefined reference to `FACE_AN_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:264: undefined reference to `FACE_AN_1'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:264: undefined reference to `FACE_AN_1'
    C:\Users\asus\AppData\Local\Temp\ccPdmzt4.ltrans0.ltrans.o: In function `dance':
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:300: undefined reference to `DANCE_1'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:300: undefined reference to `DANCE_1'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:302: undefined reference to `DANCE_2'
    D:\BHAI-master\BHAI_CODE/BHAI_CODE.ino:302: undefined reference to `DANCE_2'
    collect2.exe: error: ld returned 1 exit status
    exit status 1
    Error compiling for board Arduino/Genuino Uno.
    This report would have more information with
    "Show verbose output during compilation"
    option enabled in File -> Preferences.

    2 replies
    0
    None
    punit13azaj_19

    Reply 2 months ago

    check the contents of the downloaded code files and see if there is a file named "GRAPHICS_C_CODE.c" in the folder.
    If it exists, put it file in the same folder as that of the main code that is with the "BHAI_CODE.ino" file. ****in the same folder***
    after this when you will open the code in the arduino IDE, you should have two tabs open in the IDE, one for the main code and the other for the bitmap matrices. upload the code now and it sould run fine.

    0
    None
    azaj_19punit13

    Reply 6 weeks ago

    I did what you said and still there is an error
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:33: error: 'bitmapdatatype' has not been declared
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:99:3: error: 'regtype' does not name a type
    regtype *P_SCK, *P_MOSI, *P_DC, *P_RST, *P_CS;
    ^
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:100:3: error: 'regsize' does not name a type
    regsize B_SCK, B_MOSI, B_DC, B_RST, B_CS;
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino: In function 'void setup()':
    BHAI_CODE:34:12: error: 'A1' was not declared in this scope
    #define TV A1
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:47:11: note: in expansion of macro 'TV'
    pinMode(TV, OUTPUT);
    ^
    BHAI_CODE:35:19: error: 'A2' was not declared in this scope
    #define DOOR_OPEN A2
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:48:11: note: in expansion of macro 'DOOR_OPEN'
    pinMode(DOOR_OPEN, OUTPUT);
    ^
    BHAI_CODE:36:21: error: 'A3' was not declared in this scope
    #define DOOR_CLOSED A3
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:49:11: note: in expansion of macro 'DOOR_CLOSED'
    pinMode(DOOR_CLOSED, OUTPUT);
    ^
    BHAI_CODE:37:14: error: 'A4' was not declared in this scope
    #define FAN1 A4
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:50:11: note: in expansion of macro 'FAN1'
    pinMode(FAN1, OUTPUT);
    ^
    BHAI_CODE:38:14: error: 'A5' was not declared in this scope
    #define FAN2 A5
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:51:11: note: in expansion of macro 'FAN2'
    pinMode(FAN2, OUTPUT);
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino: In function 'void loop()':
    BHAI_CODE:34:12: error: 'A1' was not declared in this scope
    #define TV A1
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:82:16: note: in expansion of macro 'TV'
    digitalWrite(TV, HIGH); //turns the TV pin on.
    ^
    BHAI_CODE:34:12: error: 'A1' was not declared in this scope
    #define TV A1
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:91:16: note: in expansion of macro 'TV'
    digitalWrite(TV, LOW);
    ^
    BHAI_CODE:35:19: error: 'A2' was not declared in this scope
    #define DOOR_OPEN A2
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:118:16: note: in expansion of macro 'DOOR_OPEN'
    digitalWrite(DOOR_OPEN, HIGH); //turns on the pin for opening rotating the motor in one direction
    ^
    BHAI_CODE:36:21: error: 'A3' was not declared in this scope
    #define DOOR_CLOSED A3
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:119:16: note: in expansion of macro 'DOOR_CLOSED'
    digitalWrite(DOOR_CLOSED, LOW); //keeps this pin off
    ^
    BHAI_CODE:35:19: error: 'A2' was not declared in this scope
    #define DOOR_OPEN A2
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:130:16: note: in expansion of macro 'DOOR_OPEN'
    digitalWrite(DOOR_OPEN, LOW);
    ^
    BHAI_CODE:36:21: error: 'A3' was not declared in this scope
    #define DOOR_CLOSED A3
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:131:16: note: in expansion of macro 'DOOR_CLOSED'
    digitalWrite(DOOR_CLOSED, HIGH); //turns this pin high to rotate the motor for door in the opposite direction
    ^
    BHAI_CODE:37:14: error: 'A4' was not declared in this scope
    #define FAN1 A4
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:142:16: note: in expansion of macro 'FAN1'
    digitalWrite(FAN1, HIGH); //turns on the fan motor
    ^
    BHAI_CODE:38:14: error: 'A5' was not declared in this scope
    #define FAN2 A5
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:143:16: note: in expansion of macro 'FAN2'
    digitalWrite(FAN2, LOW);
    ^
    BHAI_CODE:37:14: error: 'A4' was not declared in this scope
    #define FAN1 A4
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:152:16: note: in expansion of macro 'FAN1'
    digitalWrite(FAN1, LOW); //turns off the motor connected to the fan
    ^
    BHAI_CODE:38:14: error: 'A5' was not declared in this scope
    #define FAN2 A5
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:153:16: note: in expansion of macro 'FAN2'
    digitalWrite(FAN2, LOW);
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:183:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Basic", LEFT, 0); //
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:184:33: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Home", LEFT, 12); //
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:185:39: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Artificial", LEFT, 24); //did not use the function here because the function i made takes only two trings as the parameters.
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:186:41: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
    myGLCD.print("Intelligence", LEFT, 36); //
    ^
    BHAI_CODE:205:13: error: 'A1' was not declared in this scope
    pinMode(A1, LOW);
    ^
    BHAI_CODE:206:13: error: 'A2' was not declared in this scope
    pinMode(A2, LOW); //all devices off
    ^
    BHAI_CODE:207:13: error: 'A3' was not declared in this scope
    pinMode(A3, LOW);
    ^
    BHAI_CODE:208:13: error: 'A4' was not declared in this scope
    pinMode(A4, LOW);
    ^
    BHAI_CODE:209:13: error: 'A5' was not declared in this scope
    pinMode(A5, LOW);
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino: In function 'void display_face()':
    BHAI_CODE:256:44: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, FACE_AN_1, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:258:44: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, FACE_AN_2, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:260:44: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, FACE_AN_3, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:262:44: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, FACE_AN_2, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:264:44: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, FACE_AN_1, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino: In function 'void hi_bye()':
    BHAI_CODE:273:37: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:275:39: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI_2, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:277:39: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI_3, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:279:39: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI_4, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:281:39: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI_5, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:283:39: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI_4, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:285:39: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI_3, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:287:39: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI_2, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:289:37: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, HI, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino: In function 'void dance()':
    BHAI_CODE:300:42: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, DANCE_1, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    BHAI_CODE:302:42: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0, 0, DANCE_2, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino: In function 'void finger()':
    BHAI_CODE:312:40: error: invalid conversion from 'uint8_t* {aka unsigned char*}' to 'int' [-fpermissive]
    myGLCD.drawBitmap(0,0, FING, 84, 48);
    ^
    In file included from D:\BHAI-master\BHAI_CODE\BHAI_CODE.ino:2:0:
    C:\Program Files (x86)\Arduino\libraries\LCD5110_Basic/LCD5110_Basic.h:96:8: error: initializing argument 3 of 'void LCD5110::drawBitmap(int, int, int, int, int)' [-fpermissive]
    void drawBitmap(int x, int y, bitmapdatatype bitmap, int sx, int sy);
    ^
    Multiple libraries were found for "SPI.h"
    Used: C:\Users\asus\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SPI
    Not used: C:\Program Files (x86)\Arduino\libraries\SPI
    Multiple libraries were found for "SoftwareSerial.h"
    Used: C:\Users\asus\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.0.0\libraries\SoftwareSerial
    Not used: C:\Program Files (x86)\Arduino\libraries\SoftwareSerial
    exit status 1
    'A1' was not declared in this scope

    0
    None
    azaj_19

    7 weeks ago

    Hi bro, I am not getting any idea how to do this. I request you to make a short video on how to upload this code into arduino and please send me to my whatsapp number 9182485841. Please bro, I want you to do this because from now I have exactly 20 days to complete this project.

    1
    None
    nbl_1330

    1 year ago

    hahaha... kia kr raha hai bhai....
    nice humorous touch... ..

    have a good day...
    bhai dance ;)