Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Last revision Both sides next revision | ||
orangepizero:orangepizero [2017/11/09 00:43] brett created |
orangepizero:orangepizero [2017/11/09 00:58] brett |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Orange Pi Zero ====== | ====== Orange Pi Zero ====== | ||
+ | |||
+ | {{https://www.armbian.com/wp-content/uploads/2016/11/orangepizero.png}} | ||
This diminutive single board computer powered by a quad core H2 processor can be purchased for very little. At the time of writing $6.99 from [[https://www.aliexpress.com/store/product/New-Orange-Pi-Zero-H2-Quad-Core-Open-source-development-board-beyond-Raspberry-Pi/1553371_32760774493.html|Alibaba]] + shipping. | This diminutive single board computer powered by a quad core H2 processor can be purchased for very little. At the time of writing $6.99 from [[https://www.aliexpress.com/store/product/New-Orange-Pi-Zero-H2-Quad-Core-Open-source-development-board-beyond-Raspberry-Pi/1553371_32760774493.html|Alibaba]] + shipping. | ||
Line 6: | Line 8: | ||
For serial access I used a FTDI USB board. This can supply 3.3v via a jumper and from what I read the Orange PI Zero does not like 5v. | For serial access I used a FTDI USB board. This can supply 3.3v via a jumper and from what I read the Orange PI Zero does not like 5v. | ||
+ | {{http://genupicture.com/images/genu/BI/GENU-BI00171.jpg?300}} | ||
- | [[http://genupicture.com/images/genu/BI/GENU-BI00171.jpg]] | + | A good article on getting setup http://codelectron.com/how-to-setup-orange-pi-zero/ |
I tried a couple of operating systems. I found that RaspbianOS made the SoC run really hot circa 70C you can't keep your finger on its surface for too long. | I tried a couple of operating systems. I found that RaspbianOS made the SoC run really hot circa 70C you can't keep your finger on its surface for too long. | ||
Line 30: | Line 33: | ||
CPU temp: 53°C | CPU temp: 53°C | ||
Usage of /: 82% of 1.4G | Usage of /: 82% of 1.4G | ||
+ | </code> | ||
+ | |||
+ | ===== Adding an LCD ===== | ||
+ | |||
+ | This is the LCD Unit I picked up off ebay - http://www.ebay.com/itm/112411177768 | ||
+ | |||
+ | {{:orangepizero:st7735s.png?200|}} | ||
+ | |||
+ | Wiring as per this: http://www.instructables.com/id/Orange-Pi-Zero-Connect-TFT-SPI-ST7735/ | ||
+ | |||
+ | Plumbing the device driver in | ||
+ | <code> | ||
+ | root@orangepizero:~# modprobe fbtft_device name=adafruit18 gpios=reset:1,dc:0,led:3 speed=16000000 fps=25 rotate=90 busnum=1 | ||
+ | root@orangepizero:~# dmesg | tail -20 | ||
+ | [ 12.173627] vmouse_input_dev_open | ||
+ | [ 12.231171] vmouse_input_dev_close | ||
+ | [ 19.578663] gmac0: probed | ||
+ | [ 19.579056] gmac0 gmac0: eth0: eth0: PHY ID 00441400 at 0 IRQ poll (gmac0-0:00) | ||
+ | [ 19.690572] [STA] !!!xradio_vif_setup: id=0, type=2, p2p=0 | ||
+ | [ 19.771829] ADDRCONF(NETDEV_UP): wlan0: link is not ready | ||
+ | [ 22.570352] PHY: gmac0-0:00 - Link is Up - 100/Full | ||
+ | [ 40.719165] fbtft_device: SPI devices registered: | ||
+ | [ 40.719232] fbtft_device: spidev spi0.0 33000kHz 8 bits mode=0x00 | ||
+ | [ 40.719285] fbtft_device: spidev spi1.0 33000kHz 8 bits mode=0x00 | ||
+ | [ 40.719326] fbtft_device: 'fb' Platform devices registered: | ||
+ | [ 40.719577] fbtft_device: Deleting spi1.0 | ||
+ | [ 40.721361] fbtft_device: GPIOS used by 'adafruit18': | ||
+ | [ 40.721410] fbtft_device: 'reset' = GPIO1 | ||
+ | [ 40.721445] fbtft_device: 'dc' = GPIO0 | ||
+ | [ 40.721478] fbtft_device: 'led' = GPIO3 | ||
+ | [ 40.721509] fbtft_device: SPI devices registered: | ||
+ | [ 40.721554] fbtft_device: spidev spi0.0 33000kHz 8 bits mode=0x00 | ||
+ | [ 40.721603] fbtft_device: fb_st7735r spi1.0 16000kHz 8 bits mode=0x00 | ||
+ | [ 41.656063] graphics fb8: fb_st7735r frame buffer, 160x128, 40 KiB video memory, 4 KiB buffer memory, fps=25, spi1.0 at 16 MHz | ||
+ | root@orangepizero:~# fbset -fb /dev/fb8 | ||
+ | mode "160x128" | ||
+ | geometry 160 128 160 128 16 | ||
+ | timings 0 0 0 0 0 0 0 | ||
+ | nonstd 1 | ||
+ | rgba 5/11,6/5,5/0,0/0 | ||
+ | endmode | ||
+ | root@orangepizero:~# | ||
+ | </code> | ||
+ | To display an image | ||
+ | {{ :orangepizero:white-sandy-beach-of-the-derawan-islands-wallpaper-160x128-604.jpg|}} | ||
+ | <code> | ||
+ | root@orangepizero:~# apt-get install fbi | ||
+ | root@orangepizero:~# fbi -T 1 --noverbose -d /dev/fb8 white-sandy-beach-of-the-derawan-islands-wallpaper-160x128-604.jpg | ||
+ | </code> | ||
+ | See the LCD showing the [[https://photos.app.goo.gl/5N7Qz8vrU4jntWQA2|image]] | ||
+ | |||
+ | This video clip off of [[https://www.youtube.com/watch?v=UFxYWNF0-oE|you tube]] | ||
+ | |||
+ | Easily played to the framebuffer on the LCD. Watch the [[https://photos.app.goo.gl/gNk5eU3wh93iI8SN2|video]] | ||
+ | <code> | ||
+ | # mplayer -vo fbdev:/dev/fb8 Formula\ 1\ \(160x128\).mp4 | ||
</code> | </code> |