Waveshare Eyes

After making the panda project I had ordered some Waveshare eyes because they were smaller and didnt want as much print time on the printer. The board has two round screens, one cable, and using an ESP32 create eyes that blink, look around, and change mood. This project uses the Waveshare 0.71 inch DualEye 0.71inch DualEye LCD Module programmed for a 38-pin ESP32-WROOM in the Arduino IDE. The Waveshare module is a single board with two 160×160 IPS circles. Each circle has its own GC9D01 controller. DIN, CLK, and DC are shared. Chip select, reset, and backlight are separate, so each eye can be started and rotated on its own.

What the eyes do

The pupils breathe, the gaze wanders, and the lids blink, including the occasional double blink. A phone can connect to the board’s Wi-Fi picks the eye design and the emotion. A button on GPIO 32 only walks through the emotions, because there is no dropdown on the glasses. The colors follow the 11-pin connector that comes with them and powers the module from the ESP32 3.3 V pin.

ColorDualEye pinESP32 GPIOWhat it does
RedVCC3V3Power
BlackGNDGNDGround
BrownDIN23SPI data
PurpleCLK18SPI clock
BlueCS15Eye 1 chip select, active low
GreenCS24Eye 2 chip select, active low
OrangeDC21Data or command
YellowRST122Eye 1 reset, active low
WhiteRST217Eye 2 reset, active low
BlackBL116Eye 1 backlight, on when high
GreyBL227Eye 2 backlight, on when high

The official Waveshare guide is written for an ESP32-C3 or ESP32-S3 Zero. Those GPIO numbers do not land on the same pins of a 38-pin dev board, so the table above is the one that matches this module on a WROOM. The optional button is a momentary switch from GPIO 32 to GND. The pin is held high inside the chip. Each press advances the emotion and leaves the eye type alone.

The driver

The sketch uses LovyanGFX. The panel class is named Panel_Round_GC9A01_071. The name says GC9A01. The init bytes are the 0.71 inch GC9D01 sequence: 0xFE / 0xEF, registers 0x80–0x8F, and pixel format 0x05. That matches the sequence Waveshare ships in their TFT_eSPI demo, and it matches the GC9D01N datasheet: 160×160, SPI, RGB565. Upload from the Arduino IDE with the board set to ESP32 Dev Module, after the ESP32 board package and LovyanGFX are installed.

The phone page

After the eyes are up, the board opens an open Wi-Fi network named Eyes. There is no password. Join it and open http://192.168.4.1. The phone has no internet while it is on that network.

The page has two controls. Eye type is the dropdown. Select an emotion is the grid of buttons under it. Changing the type redraws the iris, pupil, lids, shine, and gaze, and keeps the emotion you already chose. Changing the emotion keeps the type. Boot starts on Panda, with Normal eyes.

Twenty-one eye types

  • Panda is the default. Dark lids, a warm brown iris, a round pupil, and a white sclera with a soft edge shadow.
  • Pony is a glossy dark eye with a brown iris. The iris stays put and only the pupil looks around. A light arc sits on the glass. Joy is amber.
  • Cow and Glossy Yellow share one yellow glossy eye: a large yellow-green iris on a near-black sclera, a fixed iris, and the same arc.
  • Glossy Blue keeps that glossy shape and turns the iris cyan. Joy follows the iris.
  • Glossy Pink keeps the glossy shape and turns the iris pink. Joy follows the iris.
  • Hearts is a pink iris with a heart-shaped pupil and large catchlights.
  • Anime Blue is a tall blue iris, a vertical slit, big highlights, and a high upper lid.
  • Cat is a green-yellow iris, a narrow vertical slit, an orange lid, and long streaks through the iris.
  • Owl is an amber iris on a dark brown sclera, a slow gaze, and a longer blink.
  • Puppy is a brown iris with a sad tilt, a slightly closed upper lid, a raised lower lid, and large highlights.
  • Frog is a yellow-green sclera, a gold iris, and a wide horizontal pupil.
  • Robot is a small cyan iris on a dark blue sclera, a ring pupil, a short glow, flat lids, and fast blinks.
  • Cyborg is a small red iris, a ring pupil, a strong red glow, a half-closed upper lid, and a fast twitchy gaze.
  • Goat is a gold iris, a horizontal pupil, a cream sclera, and a slow gaze that often rests in the center.
  • Alien is a huge dark iris on a black sclera and a quick gaze.
  • Bloodshot is a red-tinted white with branching veins, a small green iris, heavy lids, and a restless gaze.
  • Vampire is a red iris, a vertical slit, a pale red sclera with veins, a purple lid, a small red glow, and an angry tilt.
  • Werewolf is a gold iris, a tiny round pupil, a cream sclera, a heavy angry tilt, and a partly closed upper lid. The gaze is fast.
  • Skeleton is a black sclera, a tiny red pupil, and a wide red glow. Blinks are rare.
  • Dragon is a huge orange iris, a very thin vertical slit, a dark red sclera, an orange glow, and a tilted upper lid.

Seventeen emotions

Normal eyes sits on the top row. Under it are Joy, In Love, Starstruck, K.O., Dizzy, Cheerful, Wink, Sad, Crying, Angry, Scared, Excited, Tired, Suspicious, Curious, and Shy.

Joy, In Love, Starstruck, K.O., and Dizzy replace the eyes with a symbol. On Pony, Glossy Blue, and Glossy Pink, the Joy mark uses that type’s color. The other emotions keep the eyes and move the lids, the pupils, and the gaze. A choice stays until the next press or the next tap.

Code

Can be found on my gitlab: https://gitlab.com/illwill/waveshare_eye

ESP32 3D Printed Panda with Animated LCD Eyes

One of my recent 3D printing projects was taking a cute panda model and giving it a little personality with a pair of animated LCD eyes. The project combines 3D printing, a couple of round LCD displays, and an ESP32 microcontroller to bring the panda to life. The eyes blink, look around, and can change expressions using a simple web interface accessible from your phone.

The project is based on the Cute Panda with Animated LCD Eyes (Multicolor) model by Meuwi on MakerWorld.The original model includes the animated LCD eye concept and accompanying code. I used that as the starting point and modified the electronics and software to run on a 38-pin ESP32-WROOM development board instead of the ESP32-C3. The result is a panda with two animated round displays that can show different expressions and movements.

Hardware and Components

The electronics are relatively straightforward. The project uses an ESP32 development board connected to two GC9A01 round LCD displays. Here’s what I used:

  • ESP32-WROOM 38-pin development board: The main controller responsible for running the animations and hosting the wireless interface.
  • Two GC9A01 240×240 round LCD displays: These serve as the panda’s animated eyes.
  • LovyanGFX library: Handles display initialization and graphics rendering.
  • Optional momentary push button: Allows cycling through expressions without using a phone.

Parts List

ComponentLink
ESP32-WROOM 38-pin development boardAmazon
GC9A01 240×240 round LCD displaysAmazon

Both displays share most of their connections to the ESP32. The only independent signal is Chip Select (CS), which allows the controller to address each eye separately. The wiring is as follows:

Display SignalESP32 GPIO
VCC (Both)3.3V
GND (Both)GND
SCL (Both)GPIO 18
SDA (Both)GPIO 23
DC (Both)GPIO 21
RST (Both)GPIO 22
Left CSGPIO 5
Right CSGPIO 4

Important: The displays must be powered from 3.3V, not 5V or VIN. Both displays share the ESP32’s 3.3V and ground connections.

Also, leave GPIO 6–11, GPIO 12, and GPIO 34, 35, 36, and 39 unused for this display configuration.

Rather than having the eyes constantly display the same animation, I added a Wi-Fi-based interface that allows you to change the panda’s expression directly from your phone. Once the ESP32 boots, it creates an open wireless network named Panda. Connect your phone to that network and navigate to:

http://192.168.4.1

A simple web page loads with a selection of expressions. Choose one, and the panda immediately changes its eyes without needing to upload another Arduino sketch. Available expressions include:

  • Joy
  • In Love
  • Starstruck
  • K.O.
  • Dizzy
  • Cheerful
  • Wink
  • Sad
  • Crying
  • Angry
  • Scared
  • Excited
  • Tired
  • Suspicious
  • Curious
  • Shy

There is also a normal eyes option. Some expressions replace the eyes with symbols, while others modify the eyelids, pupils, and gaze to create different emotions. The selected expression stays active until another one is chosen.

I also included support for an optional momentary push button. The button connects between GPIO 32 and GND. Pressing it cycles through the same list of expressions available through the web interface. This is optional and can be added later without changing the rest of the wiring.

The project runs using the Arduino IDE with the ESP32 board package and LovyanGFX library. The main project files are available on GitLab:

  • panda.ino – Main Arduino sketch.
  • LCD-Eye-Studio.html – Editor used to generate the original eye artwork.
  • Panda_LCD_Eyes_Guide.pdf – Guide accompanying the original studio export.

To get started:

  1. Install the ESP32 board package in Arduino IDE.
  2. Install the LovyanGFX library.
  3. Open panda.ino.
  4. Select ESP32 Dev Module as the board.
  5. Upload the sketch.

On startup, the displays perform a wiring test with different colored backgrounds and orientation markers. This makes it easier to identify display rotation or wiring issues before running the animations. I’ve published the project source code on GitLab so anyone interested can check it out, modify it, or use it as a starting point for their own build.

GitLab Repository: https://gitlab.com/illwill/panda The repository includes the Arduino sketch, the original eye editor, and additional project documentation.

This was a fun little project combining 3D printing, electronics, and programming. I particularly like the ability to change the panda’s expressions from a phone instead of having to reprogram the ESP32 every time I want a different look.

Using the ESP32-WROOM also leaves room for additional functionality down the road. It’s a good example of how you can take an existing 3D model and turn it into something a little more interactive with inexpensive hardware and some custom code.

RV Project Part 2

So now it was time to remove the whole roof. I had NFI how to repair a regular roof let alone an RV roof. Luckily my Uncle was a little more handy than me. We started by pulling off the side rails then just straight ripping off the Luan/insulation completely from the bathroom wall to the front overcab bed. This paint scraper was a life safer in removing the old aluminum roof, wood, glue, and nails. Roughly about a 8’x13′ area was ripped out, we had to also remove the angle brackets holding the cabinets to the ceiling, the old TV antenna, and also remove the fridge vent and bathroom fan.

We had to go with thinner insulation to accommodate the thicker wood but had to make sure we didn’t go over the height of the original sidewalls so we could get the siderails back on afterword, which we actually trashed the broken side because it was damaged from the tree. Not realizing that the rails were not really a standard sizing. Also would have cost a lot in shipping if Winnebago actually had replacements. I ended up finding a smaller curved piece at a local RV dealership and used a hot air gun to kind of bend it back straight. I also fiberglassed the side damage and a hole in the front area near the running lights that the tree limbs caused. After getting all the new plywood down and cutting holes for the fans, vents, and pipes we spread all the glue down then used a roller to roll out the PVC replacement roof from classacustoms.com.

Then we reinstalled the original bathroom fan , added a new fan above the over-cab bed, and a new fridge vent cover, plumbing vents, and radio antenna. Everything got sealed with Eternabond tape and Dicor self-leveling lap sealant.

Then it was time to work on the ceiling. I ended up choosing some cedar wood from Home Depot because it smells good, naturally resists mildew, odors and repels some bugs. I also put in some aluminum channels and multi-color LED lighting to keep the power usage down since I was planning to install solar at some point. Originally I was going to put in recessed lights but it would have bee a pain in the ass to do all the wiring and holes, and for some reason when I was testing the recessed lights with the generator they were blinking off and on. So stuck with the LED lights and multicolor so I can change colors to whatever mood. (Update: I recently replaced the LEDS strips with different ones because they ended up having color match issues on each side, so now its one complete strip going around.)

RV Project Part 1

I got this 1994 Winnebago ‘Minnie Winnie’ 421RB (Ford E350 cutaway van bodystyle) from a car auction for $1200 in August 2021. I was looking around for RVs/Vans that I could convert into a remote work-from-home office. My dad decided to jump the gun and bid on it without telling me, it was a WTF moment when I first saw the pics on the auction site, but eventually decided I was up for the challenge. It had some good things like a built in generator, 90k miles. I ended up finding the original owner and found that he had bought it for 13k in 2008 and in Summer 2021 a thunderstorm knocked a tree down in his yard and it fell onto the RV (insurance company gave him 20k). As you can see from the pics it fell through the roof , crushing the AC unit. It also poked a hole near the front antenna mount, and part of the tree limb knocked out the plumbing, you can see the small hole by the left rear wheel well ( oddly perfect hit to knock out the plumbing/drainage pipe).

The biggest problem is that it sat for about a month in the previous owners driveway until the insurance company could come out and look at it due to COVID etc, then it say another month in the auction lot until it was auctioned. There was significant water damage in the ceiling and floor due to other rainstorms also dumping water in there for those 2 months.

So the game plan was somehow fix the holes in the roof originally. But come to find out first that the roof consisted of a layer of thin aluminum, which i could not figure out where to source anywhere. Coupled with the fact the more i looked into it that the water damage was too much because Winnebago uses very thin Luan plywood panels glued to foam insulation and all that wood was pretty much rotted because Luan is relatively inexpensive and easy to work with, but it is not very durable or resistant to moisture.

I started doing a lot of research on RV restoration/remodeling and came across an awesome resource on YouTube from AZExpert. His video were tremendously helpful in seeing what the insides of RV roofs looked like and how to fix/replace them. So after calling numerous places for 8×13 aluminum rolls with no luck, I decided I would go with an alternative. After searching around I found a really good price on a PVC kit from classacustoms.com for $189. Stay tuned for ripping apart the roof in Part 2…

Telephreak Tactical Lunchbox

One of the cooler swag I received @ Defcon this year was a lunchbox for the Telephreak party, filled with candy, gadgets, and toys from telephreakbadge. I do some ‘red teaming’ occasionally and always had my stuff all janky in my backpack with no way to really keep it all pretty and was a pain in the ass to go through everything to find what tools I needed. Plus stuffing them all in a box tends to get shit broken eventually. I was thinking I needed something like a pelican box but I didnt feel like spending a huge amount on something simple. So I was thinking one day that this lunchbox sitting on my desk would do the trick. I ended up getting a few pieces of Polyethylene off ebay for $9, They arrived pretty quick and i spent about an hour or so arranging some of my most used tools onto each layer and cutting out the foam to fit them all in. I used a small knife (the ones that have a knife/scissor/toothpick) and a razor blade to cut out the foam. Here’s all 3 layers that fit inside with descriptions of each tool’s usage.

Continue reading →

Raspberry Pi 3 Arrives

Got my new RPi3 today , I was able to get it ordered early Monday morning by poking around Element14’s website. Even though they didn’t have it posted they did an available part number, 77Y6520, so I used that to place an order and I got notified on Tuesday that it was sent 🙂 The CPU is a little beefier and its 64bit and the board now has wifi and bluetooth onboard. So I’ll probably implement some bluetooth geo-fencing with IFTTT in my home automation project.

pi1pi2pi3

Automated Signal Capture

Using Flask and JQuery, a friend helped me out with automating capturing the 433mhz signal from remotes so you don’t have to manually add them in the code.

Basically the Flask starts a webserver when you click n the add button, the code executes the RFSniffer binary and receives the data when a signal is received, then displays it to the webpage. Still have to finish the code for adding the data to the MySQL db , but thats the easy part.

Raspberry Pi touch display

So I received an official 7″ touch display for xmas. Even though it’s $60, it brings my total cost over 200$ for the project. But I thought it would be an awesome addition to the project because you don’t have to whip out your phone just to control everything. I’s a pretty sweet 800 x 480 10 point capacitive touchscreen display all you need to do is connect the DSI ribbon cable and feed ground/5v from the Pi’s GPIO pins. Im thinking starting the browser in kiosk mode should suffice once I finish the node.js interface. The only issue I havent resolved was to power down the screen fully when the Pi shutdowns. If anyone knows how to let me know.
front-centred-500x365