Professional Documents
Culture Documents
Build Your Own Smartphone
Build Your Own Smartphone
Table of Contents
Test FONA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Rotate Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
http://www.instructables.com/id/Build-Your-Own-Smartphone/
Intro: Build Your Own Smartphone
This tutorial brings you from start to finish in constructing your very own smartphone. You will start by 3D printing a case, then soldering printed circuit boards together,
assembly, and finally installing a mobile OS onto your phone and using Python to make it yours. You can learn more about this project at hackaday.io/project/5083
1. Raspberry Pi A+ 256MB
2. Adafruit FONA uFL Version
3. 3.5in PiTFT Assembled
4. Raspberry Pi Camera 5MP
5. Powerboost 500 Basic
6. GSM Antenna
7. 1W 8 ohm Metal Speaker
8. USB Wifi Adapter
9. Electret Microphone
10. 1200mah Lithium Ion Battery
11. 4-40 x 3/8in screws
12. M2.5 x 5mm screws
13. M2.5 x 20mm screws
14. M2 x 5mm screws
15. Slide Switch
16. Wire
While waiting for your parts to ship, you can 3D print the enclosure.
http://www.instructables.com/id/Build-Your-Own-Smartphone/
Step 2: 3D Print the Enclosure
The smartphone consists of two 3D printed parts that make up the enclosure: The top and the bottom. Download the .stl files on thingiverse
http://www.thingiverse.com/thing:752746. If you do not have access to a 3D printer, you can pay a company like Shapeways to do it for you. If you would like to customize
the case to suit your needs, download the Solidworks files from my Github page.
WHILE TESTING, MAKE SURE YOU DO NOT PLUG IN A 5V MICRO USB. THE PI IS ALREADY BEING POWERED BY THE LITHIUM ION BATTERY
If you slide the slide switch the LEDs on the Power Boost should illuminate and the Raspberry Pi should power up. The PiTFT backlight should also turn on. If you have a
PiTFT image on your Pi's SD card the screen should also boot up. Otherwise, it will just stay solid white, which is just fine for now. Most likely, no LEDs will illuminate on
the FONA. To turn on the FONA, hold in the Key button on the device for two seconds or pull GPIO 18 on the Raspberry Pi high for two seconds. If you can power the Pi,
TFT, and FONA from the battery and turn it all off from a switch, you are ready for the next step.
http://www.instructables.com/id/Build-Your-Own-Smartphone/
Image Notes
1. This header is the exact same as the first 26 pins on a Raspberry Pi
1. Solder the 8 ohm speaker to "spk +" and "spk -" on the FONA. The polarity doesn't matter.
2. Solder the red wire on the electret microphone to the Mic + pin on the FONA.
3. Solder the black wire on the electret microphone to the Mic - pin on the FONA.
4. Connect the "RI" (Ring indicator) pin on the Adafruit FONA to pin 7 (GPIO 4) on the PiTFT.
5. Connect TX on the FONA to pin 10 (RX) on the PiTFT.
6. Solder RX on the FONA to pin 8 (TX) on the PiTFT.
7. Solder Vio on the FONA to bat, also on the FONA. If you want, you could also use a 3v3 line on the Raspberry Pi.
8. Snap the uFL antenna onto the uFL connector on the FONA.
9. Double check your connections.
If you power everything on now, it should behave the same as it did in the last step. In the next step, we will be setting up the FONA by adding a SIM card making it
capable of communicating over a cellular network.
http://www.instructables.com/id/Build-Your-Own-Smartphone/
Step 6: Setup SD Card
Now that you have all the hardware wired up, we can setup the Raspberry Pi to communicate with it all. Start by flashing the latest version of the PiTFT OS onto a micro
SD card for your Raspberry Pi. Click here to Download. Once your SD card is prepared, insert it into your Pi and power it on. You should get the raspi-config utility on
your PiTFT. It may be small but it will do for now. There are a few things you must set up it raspi-config:
By typing startx the Raspberry Pi will enter LXDE on the PiTFT. To enter LXDE over the HDMI port type
FRAMEBUFFER=/dev/fb0 startx
http://www.instructables.com/id/Build-Your-Own-Smartphone/
Step 8: Finish Software Installation
Test FONA
Then run:
sudo minicom -D /dev/ttyAMA0 -b 9600
you should get "OK" back. If you don't, check your connections. If you do, the FONA is ready for operation.
Rotate Screen
You may have noticed the text on the PiTFT is sideways and not in the orientation for a phone. Lets change that with the command:
sudo nano /etc/modprobe.d/adafruit.conf
Finally, to get the Pi to automatically boot to LXDE on the PiTFT, follow this step in the adafruit guide:
https://learn.adafruit.com/adafruit-pitft-28-inch-resistive-touchscreen-display-raspberry-pi/extras#boot-to-x-windows-on-pitft
Now lets install the software used to take pictures with the Raspberry Pi camera. First type:
sudo apt-get install python-pip
http://www.instructables.com/id/Build-Your-Own-Smartphone/
Step 9: Install TYOS
TYOS is the mobile operating system used to give your phone the capability to send and receive SMS messages, and make calls. In the command line, type
wget <a href="https://github.com/spadgenske/TYOS/archive/0.1.0.zip" rel="nofollow">https://github.com/spadgenske/TYOS/archive/0.1.0.z</a>ip
In TYOS, make a call and send a text message to make sure everything works. Once everything is working perfectly, we can set up TYOS to start on boot so no ssh is
required.
Type sudo nano /etc/rc.local to get into the configuration file. At the bottom, right before the "exit 0" line, add a line saying the following:
sudo python /home/pi/tyos/src/main.py --power
1. Using some hot glue, glue the speaker and the microphone it the their slots.
2. Using the M2 screws, screw in the Raspberry Pi camera. Route the ribbon cable so it is out of the way of any other electronics.
3. Using M2.5 screws, screw the Raspberry Pi A+ with SD card and USB Wifi down into the case.
4. Connect the Pi camera ribbon cable to the Pi with the blue facing the camera.
5. Also using M2.5 screws, screw the FONA SIM card up into the case.
6. Organise the wiring making sure it does not interfere with any of the other electronics.
7. Wrap the Power Boost in electrical tape to prevent a short.
8. Sandwich the Power Boost and battery between the Raspberry Pi and PiTFT.
9. Hot glue the slide switch into the switch slot on the top part of the case.
10. Using 4-40 screws, screw the top and bottom halves of the case together.
11. Test everything out.
Congratulations! You have just built your own smartphone! If you don't like the phone to be called "tyfone" just change the logo in /home/pi/tyos/graphics/logo.png to
whatever you wish.
http://www.instructables.com/id/Build-Your-Own-Smartphone/
Related Instructables
Raspberry Pi
powered time
DIY iPhone lapse dolly iPhone remote Wireless Phone IsoLocker - Raspberry Pi
controller for (RasPiLapse) by controlled lamp Remote- cooling lock & water alarm
Raspberry-Pi rickadam by Samuel LIU Controlled LED storage box system by
(OSC) by Strips: RasPi w/ facade element Gourmesso
Greg0reo Fadecandy by s0m3guy
driver w/
WS2811/WS2812
Addressable
LED Strips w/
TouchOSC
Smartphone
App w/ Iphone
or Droid by
GhostStrype
Advertisements
Comments
http://www.instructables.com/id/Build-Your-Own-Smartphone/