1.44" 128x128 pi zero hat

Got an idea for a project? Found a cool project you want to share? Post it here!
User avatar
JamesW
Posts: 36
Joined: Wed Sep 27, 2017 4:45 pm
Has thanked: 12 times
Been thanked: 23 times

1.44" 128x128 pi zero hat

Post by JamesW » Tue Feb 27, 2018 5:00 pm

Just got this little guy in the mail today. Curious if anyone has played around with this board yet...
It has a 128x128 LCD like some of the tiny projects kicking around here. If I can get the screen working I'm planning on designing and printing out an enclosure for it. The spacers / standoffs which came with the board are junk, too tiny to be of use really. I'll start a build log if I have any luck with it.
SpoilerShow
IMG_20180227_183625631-02.jpeg
IMG_20180227_183625631-02.jpeg (3.08 MiB) Viewed 15499 times
IMG_20180227_183606837-01.jpeg
IMG_20180227_183606837-01.jpeg (2.45 MiB) Viewed 15499 times

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: 1.44" 128x128 pi zero hat

Post by moosepr » Wed Feb 28, 2018 3:14 am

I have helped a few people (even though this is like my direct competition)

you could start with the TinyPi image http://files.pi0cket.com/TinyPi/OS_imag ... e-v4.3.zip

then change /etc/modprobe.d/fbtft.conf to adjust the reset and dc pins, while adding the led pin number too

then change /boot/retrogame.cfg to have the right pin numbers for the buttons

profit!!
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
JamesW
Posts: 36
Joined: Wed Sep 27, 2017 4:45 pm
Has thanked: 12 times
Been thanked: 23 times

Re: 1.44" 128x128 pi zero hat

Post by JamesW » Wed Feb 28, 2018 7:31 pm

Thanks for the pointers man, I appreciate it. Honestly I'd rather support your project over the waveshare board but I need the gba layout instead of the gb layout in order to fit my fat fingers. xD

I'll probably give your image a go, although in the end I'd like to build the image from scratch if I can manage it. My biggest concern is finding or making a retropie theme that is readable on the tiny screen.

User avatar
JamesW
Posts: 36
Joined: Wed Sep 27, 2017 4:45 pm
Has thanked: 12 times
Been thanked: 23 times

Re: 1.44" 128x128 pi zero hat

Post by JamesW » Fri Mar 02, 2018 11:07 am

Thanks again for your help moosepr. Got it up and running today. Moving on to a build log from here I think.
SpoilerShow
IMG_20180302_130307864-01.jpeg
IMG_20180302_130307864-01.jpeg (2.64 MiB) Viewed 15428 times

User avatar
JamesW
Posts: 36
Joined: Wed Sep 27, 2017 4:45 pm
Has thanked: 12 times
Been thanked: 23 times

Re: 1.44" 128x128 pi zero hat

Post by JamesW » Sat Mar 03, 2018 7:24 am

So after posting yesterday, I unplugged this guy and upon plugging it back in the garbage pixels on the screen had come back. It turns out that you can rotate the screen (through fbtft.conf and config.txt in combination) and remove them but upon resetting power to the screen the issue returns.

I then spent the next 6 hours trying to figure out a solution. I tried kites recompiled drivers but couldn't get the screen to initialize. Finally this morning though I came across a solution. I noticed that if I used the adafruit18_green as the device name in fbtft.conf, along with defining the screen resolution, that there were less garbage pixels than if using the fb_ili9163. Then I rotated the display through fbtft.conf, testing each time by disconnecting power, and lo and behold! The screen works when using adafruit18_green as the device name and setting rotation to 180. Now the screen was rotated in the wrong direction for its viewing orientation but this is easily fixed by rotating it back in config.txt. I used display_rotate=1 which rotates the image 90 degrees to fix it.

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: 1.44" 128x128 pi zero hat

Post by moosepr » Sat Mar 03, 2018 10:40 am

Awesome work 😀
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
JamesW
Posts: 36
Joined: Wed Sep 27, 2017 4:45 pm
Has thanked: 12 times
Been thanked: 23 times

Re: 1.44" 128x128 pi zero hat

Post by JamesW » Sat Mar 03, 2018 2:16 pm

Thanks moosepr. Was pulling my hair out there for a while with the dang garbage pixels.

I was looking online for a small battery to fin in this guy and I remembered seeing a tiny powerbank, if you can even call it that, at a local store for $4. I bought one in hopes it would work. Upon opening it, the battery is physically a bit smaller than I'd like but on the other hand it will leave enough room for a little piezo element and possibly a power boost 500c.
SpoilerShow
IMG_20180303_155309530-01.jpeg
IMG_20180303_155309530-01.jpeg (2.28 MiB) Viewed 15386 times
I decided to plug it into the pi to see if it would even power it and it did surprisingly. I still may use the power boost instead of the power bank circuit board so I have the ability to charge while playing along with the low battery warning so I can implement safe shutdown. There's room for one with this little battery. I peeled back the tape and it says it's 400mAh. Labeled as a 851730.
SpoilerShow
IMG_20180303_155936557-01.jpeg
IMG_20180303_155936557-01.jpeg (2.52 MiB) Viewed 15386 times

User avatar
moosepr
Posts: 524
Joined: Wed Jan 25, 2017 6:18 am
Has thanked: 69 times
Been thanked: 241 times
Contact:

Re: 1.44" 128x128 pi zero hat

Post by moosepr » Sat Mar 03, 2018 3:05 pm

plot twist!!! you dont need to boost to 5v!!! the pi will happily run down to 3v, and the screen will be happy with it too!!

the numbers on the battery relate to the size. im guessing it will be 8.5mm x 17mm x 30mm, 400mah should get you just over an hour with no boosting, maybe just under an hour if you use boost. You could add low battery warnings but you will actually see the backlight start to flicker a little once the battery is getting low, so you kinda know its coming
Get a small cheep LCD in your project https://www.sudomod.com/forum/viewtopic.php?f=22&t=2312
Wrap it all round a battery https://www.sudomod.com/forum/viewtopic.php?f=13&t=2292
Or use a custom PCB to make it really small https://www.sudomod.com/forum/viewtopic.php?f=13&t=2512
or make it really really really really tiny!! https://www.sudomod.com/forum/viewtopic.php?f=13&t=2919

User avatar
JamesW
Posts: 36
Joined: Wed Sep 27, 2017 4:45 pm
Has thanked: 12 times
Been thanked: 23 times

Re: 1.44" 128x128 pi zero hat

Post by JamesW » Sun Mar 04, 2018 5:08 pm

Ha, that's awesome! I suppose you lose the ability to plug in things via USB and also maybe the HDMI, but in my case that's fine. I still want to add a low battery signal though so that in the worst case I don't drain the battery to the point of no return. I plan on adding a mosfet board to allow for the battery to be completely disconnected from the circuit when the pi shuts down. Question though, in your image you linked, do you use stereo for the piezos? I think I need to adjust the pins because the hat I'm using has buttons routed to pwm pins 13 & 19. I think I'll have to down mix the stereo to mono on pin 18 to avoid issues.

HerrOttesen
Posts: 2
Joined: Sat Mar 10, 2018 7:44 am
Has thanked: 1 time
Been thanked: 1 time

Re: 1.44" 128x128 pi zero hat

Post by HerrOttesen » Sat Mar 10, 2018 9:18 am

Hi,

FINALLY found a post regarding setup of this little (dirt cheap) PiHAT.

Could you PLEASE post your config-file, as I've been tearing my hair for weeks with setup ...

So far I've downloaded the image (TinyPI), flashed it, edited fbtft.conf
"options fbtft_device name=adafruit18_green gpios=reset:25,dc:24,led:18 speed=16000000 bgr=1 display_rotate=1 custom=1"

But there is only white on the screen :roll:

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest