#portal gun

LIVE

Fully animated Wheatley!

Build time to this point: 2 years

#portal    #portal 2    #wheatley    #portal gun    #personality core    #animatronics    #cosplay    #tutorial    #finally complete    #raspberry pi    #adafruit    #companion cube    
Wheatley made his debut this weekend at Anime Iowa! So far, Wheatley, the companion cube, and the po

Wheatley made his debut this weekend at Anime Iowa!

So far, Wheatley, the companion cube, and the portal gun have taken two years of work. We’re not done yet though! We still have plans to complete the portal gun and add more to Wheatley, keep an eye out for those in the future!


Post link

Wheatley is in his last few days before his first convention!

Wheatley has been painted and reassembled, now with handles. He was re-balanced after the addition of the handles and final electronics placement. We also cut the poles of the companion cube so he will be able to fit through a 6ft door. We just have a few more animation scripts to finish, a little bit of wiring to do, and to configure the Pi to auto-boot. 

Our main focus now is finishing the Portal Gun, as without the Portal Gun we have no way of controlling Wheatley… 

The center rod now has lights for each end, either blue or yellow depending on your selection. This is accomplished by mounting four high brightness leds (two blue and two yellow) in a plastic end that mounts securely on the end of the acrylic rod, which was sanded to refract light better. 

image
image
image

We painted all black parts of the gun inside and out–those portions were made of blue pvc and formed the ‘nose’ of the gun with pvc and epoxy putty. The front shell of the gun was made with EVA foam and gaps were filled with silicon filler. All the electronics are in the gun and the battery life with the lights on was tested and ran for four hours without issue. We also did this with the companion cube, which lasted for a similar amount of time. 

What we have left is to finish assembling the back shell, paint them, and attach them to the main body with velcro. We also have to mount the interior lights and OLED screen and update the software to auto-boot. We also ordered a transparent plastic tube that should be in by Wednesday to replace the one we attempted to make, which frosted up when we heated it to bend it. 

For the human side of things, the orange jumpsuit and long fall boot socks have arrived. All that is left is to add the Aperture Science logo onto a white tank top. With the limited time, we’ve decided to wait on the full Long Fall Boots. Those will be done for next summer’s convention (or even possibly one at the end of August). 

Full animation sequnce on Wheatley!

We still need to stick everything in him permanently, get the middle cover on, and then give him a paint job but he’s just about done!

Friday we worked on adding more servo’s to the animation sequence. However, in the process we locked up once of the eye control servos and did not notice it until it was smoking. A replacement servo is on order….woops.

Sunday we worked on the physical Portal Gun. The center tube is now glued in place and then we added details using styrene to the front. We then filled the gaps with Bondo. Bondo is a filler used for cars that is a thin paste once mixed, dries very hard, and sands easily. However, it sets up in about 3 minutes so you have to work fast.

The remote control that goes into the Portal Gun has been completed.

         The joystick allows you to scroll through the menus

         The upper right hand switch selects the option (like an enter key)

         The lower left hand switch is the blue/orange portal gun “fire” button

         The two way sector switch at center bottom switches the fire from blue to orange

We also merged all of software into one main routine. Thus the Portal Gun is connected to Wheatley and you can select an animation to play along with other functions.

Next steps are to add the covering to the eyelids and eyebrow, mount the eye, and write a complete animation script.

Thank you for being patient about the delay of posts! We had a lot of programming challenges that delayed things significantly. Many of the add on software boards we use are dropping support for Python 2.7 and moving to Python 3. Overall this is a nice change, but we did have to re-write some code. 

Some updates!

1. The Bluetooth connection on both the portal gun and Wheatley will now detect when the other is shut down or out of range and re-connect automatically.

2. The joystick and buttons on the Portal Gun now all work with Wheatley and actions show up on the tiny mounted display on the portal gun. The software will also now allow you to adjust speaker volume and eye brightness on Wheatley from the Portal Gun in addition to selecting the animation to play. The tiny display also lets you know when the Bluetooth connection is re-connecting.

3. With the new Python 3 library for the servo controller, we have to change the code to control the servos from a signal that used milliseconds to angles or rotation. Thus, we re-calibrated all of the servo’s on Wheatley to work with the new software.

4. We hooked up a speaker to the Pi-zero and sorted out how to play the portal opening sound when the portal gun is fired. This should have been simple but the test program would not play the sound. After a couple of hours of frustration we found that the PyGame library that we’re using runs the sound without “blocking”, which means that the song in played in parallel with the program. Thus since the test program played the song and then ended, the program was ending before the sound ever played!

We started fabricating the lights for the Portal gun. There will be four high output LEDs at each end of the plexi-glass rod and 10 similar Led’s for front illumination. ½ of the LEDs are blue and ½ yellow/amber and thus you can select which color portal to open. These lights and the Pi-Zero will be powered from a 3.7 V LiPo battery. We also captured the portal gun firing sounds. Sounds will be generated by the Pi-Zero and a speaker mounted in the portal gun.

The first image is the lights for the front of the gun, the second image for the plexiglass tube. 

We then proceeded to start wiring the four sets of LEDs for the portal gun. The front will have 12 led’s (6 blue & 6 yellow), the rod in the center of the portal gun will be illuminated from each side, both blue and yellow, and two LEDs for the top.

We’ve started building the Portal Gun!

The pi-zero, arcade bonnet, the home-made remote control, and battery for the pi-zero and portal gun lights, must all be mounted inside the portal gun. Everything is controlled with a Pi-Zero W attached to an Arcade Bonnet from Adafruit. The Pi-Zero will connect to the Pi in Wheatley over Bluetooth. Actions and animation will be selected using the custom built “Hand” control that connects to the Arcade bonnet. The hand control will have a joystick and select/enter button along two buttons for firing the portal gun. Everything in the Portal Gun will be powered by a single cell LiPo battery with a USB up-boot power supply / charger.

We’ve blown up of a drawing on a Portal Gun and calculated additional dimensions to begin the build. The pipe we’re using to fabricate the Portal Gun is PVC.  However, we need some flat PVC for internal components and maybe we can form the PVC for the portal gun “shells”. We have not been able to find a local supply of flat PVC panels. Thus, we successfully flattened several pieces of PVC pipe using a heat gun. Flattening pipe limits how large of sheet we can create, but this will help for now. We haven’t located a good source for a clear tube for the center either. However, we tested some flat acrylic sheet and should be able to bend the clear tube to the exact diameter that we need

Bluetooth Connection:  We have always planned to have Wheatley will be controlled by buttons on the Portal Gun. Originally we’d intended to install a Wiimote in the portal gun along with the Pi-Zero. We have tested connecting and controlling the Pi with a Wiimote. However, this would require two concurrent Bluetooth connections to the Pi in Wheatley. We have redesigned this to have a thumb-stick and buttons connected directly to the Pi-Zero in the portal gun. Thus, only one Bluetooth connection to worry about. In effect, we’re building a custom remote control using the Pi-Zero that communicates to Wheatley over a Bluetooth connection.

We found a great Pi-Hat from Ada-Fruit that makes attaching a thumb-stick and multiple switch inputs. This is their Arcade bonnet that allows a joystick, 7 switches, and a speaker to be easily connected to the Pi/Pi-Zero. With a bit of luck (and time) our Portal Gun will also make the proper firing sounds!

We have the Pi-Zero sending commands to Wheatley over Bluetooth and then echoing the command/menu option on a small led screen that will be installed on portal gun. The following photo shows the menu item:   “Ani” – Animation submenu….  “W Pick Me Up”  which is one of the animation scripts.

We also spent a lot of time working on writing the software to handle error conditions on Bluetooth correctly along with a “heartbeat” between the Pi and Pi-Zero to determine if a disconnect occurs. Even more time was sorting out how to make the receive functions “non-blocking”… ie the receive does not stop and wait for data. It checks to see if data from the Pi-Zero has come in and if not it allows the program to work on other items.

Bluetooth is good for 30 – 50 feet.  Thus we need everything to behave properly when one walks away from Wheatley and have it reconnect when you return.

Battery Life:  We are using a 12v, 11ah lead acid battery to power Wheatley and the cube lights. This will be mounted in the cube and it is also an effective counterweight. The challenge is knowing when Wheatley is running low on power since Wheatley does not have an attached screen. Thus, we’re adding a volt-meter by the on-off switched inside the cube.  The photo below shows the volt-meter (in green on the right) as the battery is being recharged.

If we find that battery life on Wheatley is too short, we can add a 2nd battery that will just drive the lights in the cube. The Portal Gun will use a USB power stick.

Eyebrow and Eyelids: These are currently just  brass frames and we had planned to cover them in styrene. We tested several glues including 2-part epoxy, CA, and commercial contact cement. Nothing seems to bond well to both brass and styrene. 

The covering will be painted and it needs to be light as both of these frames are articulated by servo’s. The outside center covering of Wheatley will still be styrene as that needs to be dent resistant. The good news is that the outside covering will be screwed on. In contrast, the eyelids and eyebrow are somewhat protected. We’re going to test convering them in high quality poster board/card stock, which should bond well to brass with epoxy.

Daily Sketch Patreon Poll Vote Week Theme: Leading Lady Protagonist in Games! All characters portrayDaily Sketch Patreon Poll Vote Week Theme: Leading Lady Protagonist in Games! All characters portrayDaily Sketch Patreon Poll Vote Week Theme: Leading Lady Protagonist in Games! All characters portrayDaily Sketch Patreon Poll Vote Week Theme: Leading Lady Protagonist in Games! All characters portray

Daily Sketch Patreon Poll Vote Week Theme:

Leading Lady Protagonist in Games!


All characters portrayed are age 18+
Mar. 13 - Bayonetta v Dante
Mar. 14- Chell V Wii Fit Girl
Mar. 15 -  Alloy V Regina
Mar. 16 - Shantae V Pepsi Man

Only$2to participate in polls!
Join Dulce’s Patreon!^___^


Post link

So guys.

Did you know?

Rick and Morty is my life, I just love every single thing about this master piece!

Who agrees?

Portal mirrors activated by the ASHPD

Wanna make your own? Here’s how he did it

#whatthechell    #portal    #portal 2    #portal gun    #mirrors    #youtube    
loading