Introduction: My Fantastic MobilePi

Recently, more and more people made things with Raspberry Pi and it became more and more popular. As we know, Raspberry Pi always come without screen or display, and i am a "code monkey" which means i am a programmer as my work. I don't use graphic environment all the time, I used to connect Raspberry Pi with a ssh session( secure shell session), and i love the command line prompt, it made me professional, But I was confused by figuring out which ip should i connected to when i want to connect to my Raspberry Pi, and also once it connected to the power supply, it lose mobility. So, I made this MobilePi for mobility and showing IP address of Raspberry Pi freely.

Step 1: Step 1: What We Need to Make This Mobile Pi.

First of all, let's check out what we need to make this mobile Pi.

Component List:

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

1 x Raspberry Pi 3 model B

1 x 16GB TF card with Raspbian image burned.

1 x MicroUSB cable

1 x Pi supply & USB HUB

1 x 0.91 OLED module

8 x copper screws( belongs to Pi supply & USB HUB)

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

Step 2: Step2: How to Assemble It.

It's very easy to setup, just screw the copper screws to your Raspberry Pi with Pi Supply & USB HUB board, it's fit properly. and just plug 0.91'' OLED display module to the GPIO Pin on your Raspberry Pi as shown.

Step 3: Step 3: How to Light It Up.

First of all, you should turn on I2C function on your Pi by editing /boot/config.txt file, login to your Raspberry Pi and open a terminal and typing this command to configure your config.txt file:

sudo vim.tiny /boot/config.txt

Make sure you can find this parameter in this file and uncomment it( just remove the "#" mark in the beginning of the line:

dtparam=i2c_arm=on

And save it,(press ESC and type ":wq" to save it and quit.

Don't forget to reboot your Pi to enable the i2c function.

Don't forget to reboot your Pi to enable the i2c function.

Don't forget to reboot your Pi to enable the i2c function.

Login your Pi and open a terminal, typing this command to download library:

git clone -b ArduiPi_OLED https://github.com/yoyojacky/libssd1306

Compile it and run:

cd libssd1306/

sudo make

cd example/

sudo make

sudo ./oled_demo -o 2

If you need help, you can just use this command:

sudo ./oled_demo -h

And I change a little bit of the code:

sudo vim.tiny /home/pi/libssd1306/example/oled_demo.cpp

.......

// text display tests
display.setTextSize(1);

display.setTextColor(WHITE);

display.setCursor(0,0);

display.print("IP Address:\n");

display.setCursor(0,16);

display.print("192.168.3.143\n");

.......

save it and typing this command to compile it:

sudo make

Run it by this command:

sudo ./oled_demo -o 2

have fun and wish you have a fabulous day~~~


Comments

About This Instructable

1,641views

12favorites

Bio: I am a linux fan, a maker, a boy who like make thing and have fun with my friends.
More by yoyojacky:RPI-NetSpider-BT-music-boxAcrylic DIY Retro Game Arcade Kit Assemble TutorialRemote-Boombox-Pi
Add instructable to: