My Fantastic MobilePi

2,599

13

3

About: I am a linux fan, a maker, a boy who like make thing and have fun with my friends.

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~~~


Share

    Recommendations

    • Fandom Contest

      Fandom Contest
    • IoT Challenge

      IoT Challenge
    • Gardening Contest

      Gardening Contest

    3 Discussions

    0
    None
    jgwinner

    Question 2 months ago on Step 3

    How long does it last with the 3800mAh battery? I realize that depends on how much the Pi is doing, let's assume just say idle activity.

    == John ==

    2 answers
    0
    None
    yoyojackyjgwinner

    Reply 4 weeks ago

    This depends on what application you are currently running in the Raspberry Pi. If your Raspberry Pi is in a low-power state, I have tested the 3800mAh lithium battery for about 4-6 hours.
    I use OLED mainly because of its power saving.

    0
    None
    jgwinneryoyojacky

    Reply 4 weeks ago

    Thanks. That's about my experience too, even with two 3800 batteries. Probably going to reconfigure with Arduino for my app.

    == John ==