Showing all posts tagged raspberrypi:

12V-5V DC/DC Converter from Banggood

Testing out this 12V->5V DC/DC converter from Banggood. It's useful useful for 12V deployments with of a Raspberry Pi (which needs 5VDC). It also terminates with a microUSB plug, which goes directly into the Pi -- no need for any hacks. I measured the Pi 3 using roughly 90mA @ 12V on idle, and around 320mA @ 12V with all four core fully loaded, display, andUSB keyboard/touchpad connected. No low-voltage indicator appearing on the Pi's display during peak loads. I didn't notice any heat o...

DIY 737 Throttle Quadrant - Testing Motorized Throttle Levers

Testing a Motorized Throttle Lever for my Flight Simulator. When the auto-throttle is engaged, aircraft's systems are supposed to control the engine throttles automatically, which includes moving the actual levers. I've used a 12V 28BYJ48 Stepper Motor (modified for bipolar format for more torque) and a A4988 Bipolar Stepper Driver, together with a potentiometer to sense the Throttle position. Right now I'm still testing it standalone, with a Raspberry Pi generating pulses every 30 mil...

Linux UDP Network Client Library for X-Plane 10 and 11

Up till now, I've been using the ExtPlane plugin to integrate my 737 home cockpit components with the X-Plane Flight Simulator. ExtPlane is a third party plugin that gives networked devices access to X-Plane's DataRefs and Commands. With it, external devices can query the current state of the Flight Simulator, such as the current airspeed and elevation, or the present position of a switch. It can also be used to manipulate state within the Flight Simulator, such as to change the state of a...

Hardware Accelerated SDL 2 on Raspberry Pi

SDL is a library for writing cross-platform programs that make use of graphics and other multimedia elements. While, working on an SDL2-based program, I updated the Raspberry Pi to used SDL 2.0.5. The one that came with the Pi seems to want to run under X11, whereas I wanted my app to run directly from the console. Also, SDL 2.0.5 uses hardware-accelerated OpenGL ES2 rendering for the frame buffer. You probably won't need this if using Raspbian Stretch as it already bundles SDL 2.0.5. I b...

New Toy: WiFi Controlled AC Switch for My 3D Printer - Hacked Itead Sonoff

Short Shorter Story A few weeks back I discovered that the stepper motors on my 3D printer were warm to the touch, even when not in use. I asked on the facebook group and learned that the motors are kept powered to prevent the extruder from being accidentally moved. This doesn't work for me, as since the printer is on a different floor and operated remotely, I like to leave it powered on. But I didn't like the idea of having the motors powered. So I decided to look for a remotely controllab...

DIY Boeing 737 Overhead Panel - Part 7 - Connecting Toggle Switch with a Matrix

Using my GPIO expander boards, I could now assemble a stack of eight MCP23017s which would give me 16 x 8 = 128 inputs. This may sound like a lot, but when I counted the number of stuff I would need to connect for the 737 Overhead, it was quite limiting. So I spent a few weeks researching on options to increase the number of GPIOs further. Given that my toggle switches are only used for inputs, one common solution, is to multiplex a number of GPIOs together in a Matrix configuration. This is...

DIY Boeing 737 Overhead Panel - Part 6- Adding GPIOs

In part 5 I touched on some ideas about my overall architecture for interfacing the Flight Simulator with the Raspbery Pi. In this post I look into GPIOs, the basic mechanism by which the Raspberry Pi can communicate with the real world. GPIO stands for General-Purpose Input/Output ... and is a common feature found in most microcontrollers that is used to interface software with the real world of electronics. When used as an input, it allows the microcontroller to sense if an input signal is ...

DIY 3D Printer Enclosure - Repurposing the IKEA LACK Table

I decided to re-purpose the IKEA LACK coffee table into an enclosure for my 3D printer. It's a well known hack that when stacked, among other things, the LACK is the perfect size for the Original Prusa I3 MK 2 printer (and most i3-style printers), and I already had two of IKEA LACKs in the house (and even if I didn't, they're currently going for MYR29.90 which is a pretty cheap way to get a basic structure started). Filament Holder and LACK support brackets There isn't room for the filam...

Fried Some Chips Today!

While soldering a PCB I overlooked a spot where some excess solder had bridged two pins. When I connected the PCB to my raspberry Pi, the Ethernet and activity lights slowly dimmed to off, and the Pi was no longer reachable over the network. I disconnected the Pi and connected the PCB directly to a bench power supply, to test it standalone where I noticed the high current consumption. I flipped the PCB over, and finally found the short, and removed it. On power up, there was no high curren...

DIY Boeing 737 Overhead Panel - Progress Update 31 Dec 2016

I managed to get two panels of my Raspberry Pi powered DIY 737 Overhead Panel project working before year's end ... enough to power on the Auxiliary Power unit (APU), and switch the aircraft to draw power from it, turn on external lights ... and start the engines! This last bit features an engine starter knob that turns itself back to OFF once the engines are running, just like the real thing! It's taken me most of this year to get this far, and I'm still a long way off from completing the ...