3d printed webcam mount

Repackaging A Webcam In A 3D Printed Enclosure

One of the beauties of having a 3D printer is the ability to print accessories for it to make it better. [Sky] had been using a Logitech C920 webcam to record some of his prints, but it wasn’t really designed to mount off a 3D printers frame. So he designed his own enclosure for it.

He started by taking the webcam apart, getting down to the bare PCB  level and taking some measurements. It turned out to be pretty compact! He modeled a rough outline of it in SketchUp, and then started designing his new enclosure around it. After a few failed prints — thanks to the 3D printer company that shall not be named — he put it altogether and did some test fits. It worked!

The new enclosure is designed to mount off the frame of his 3D printer, allowing for a wide angle view of the print bed. If you print something that makes use of the entire z-axis, you might run into some visibility issues, but [Sky] isn’t too worried about this.

For the full explanation and design, he gives a great walk through on all the details in the video below.

Continue reading “Repackaging A Webcam In A 3D Printed Enclosure”

Reading Power Use Data With A Webcam And Python

As any hacker will attest to, whenever an important tool is missing, you might as well just build a new one! That’s the position that [Matt] found himself in when he was attempting to measure the power consumption at his parents’ house. He left the transmitter for the power meter at home, and so the logical thing to do was to set up a webcam and a python script to monitor his dad’s power meter instead of going back to get his.

The power meter that he had handy was a GEO Minim Electricity Monitor. He found it very difficult to extract the data directly from this particular meter, so instead of digging into any of the communications protocols int he meter, he set up a webcam in a box with an LED and monitored it with a specially-written Python script. The script is able to see the particulars of the meter, and then reports back to the computer with all of the relevant data. [Matt] has put this code up on his project site for anyone to use.

This is a great workaround that doesn’t involve delving too deep into the inner workings of the meter in question. You could always build your own power monitoring system though, if that’s more of your style!

A Full IP Webcam With A Raspberry Pi

A Dropcam will run you about $150. Price out a Raspberry Pi, camera sensor, and a CCTV camera housing found on eBay, and it starts to look like there may be a cheaper replacement for a Dropcam sitting around on workbenches, if only someone can figure out the software. [Antoine] did just that, giving any Raspberry Pi the ability to stream H.264 video over a network.

[Antoine]’s software is based on the raspivid tool distributed from the foundation, but that only takes care of capturing and encoding H.264 video from the camera sensor. To add IP camera support, the Live555 RTSP library was mixed in and combined to stream video over the Raspi’s network connection.

With a camera dome enclosure from the usual outlets, [Antoine]’s project really starts to look professional. The specs are respectable, too: it can output a 1080 stream, and with a small modification to an Ethernet cord, this webcam has PoE. Future updates include the ability to record videos based on a trigger and possibly a webserver on the Pi for configuration. [Antoine] says he really isn’t up to speed with Javascript, so any help would be appreciated.

Hacking An Old Parallel Port Webcam To Work With A Gameduino 2

connecting parallel port web camera to gameduino 2

[Andrew] couldn’t pass up a 20ish year old parallel port based webcam he saw on the shelf at a thrift store. It’s a Connectix QuickCam and was the first webcam that did not require a separate video input card to interface with your computer. Due to this feature, the webcam was extremely popular, so popular that Logitech ended up buying Connectix and marketing the camera for themselves.

It’s tough to find a newer computer that still has a parallel port, but using an old computer wasn’t [Andrew]’s plan anyways. After thinking about it, he decided to try to get the camera’s image to display on a Gameduino 2.

The hardware list is fairly minimal. The cam’s parallel connector is plugged straight into STM32 Nucleo development board by way of several jumpers. The Gameduino 2 is connected to the dev board and a USB to PS/2 adapter was made to power the camera.

Continue reading “Hacking An Old Parallel Port Webcam To Work With A Gameduino 2”

Raspberry Pi Boiler Control Uses A Webcam To Read The Analog Gauge

sub-image

One of the biggest problems with home automation is trying to interface with old or analog devices. Do you upgrade the device just so you can automate it? Or do you find a workaround like [Seb] did?

[Seb] doesn’t have on-demand hot water, and as such has to turn on his boiler if he wants to have a hot bath or shower. Not very convenient having to wake up an hour early in the morning just to turn the boiler on so he can have a morning shower! Nonplussed with having to continue putting up with this, he decided to try his hand at home automation using a Raspberry Pi.

The problem is there’s no easy way to have feedback on what the boiler is doing — sure he can turn it on and off using a mains relay with the Pi’s GPIO, but how can he easily measure the temperature inside the boiler?

Continue reading “Raspberry Pi Boiler Control Uses A Webcam To Read The Analog Gauge”

A Webcam Based Posture Sensor

Webcam based posture sensor

Even for hobby projects, iteration is very important. It allows us to improve upon and fine-tune our existing designs making them even better. [Max] wrote in to tell us about his latest posture sensor, this time, built around a webcam.

We covered [Max’s] first posture sensor back in February, which utilized an ultrasonic distance sensor to determine if you had correct posture (or not). Having spent time with this sensor and having received lots of feedback, he decided to scrap the idea of using an ultrasonic distance sensor altogether. It simply had too many issues: issues with mounting the sensor on different chairs, constantly hearing the clicking of the sensor, and more.  After being inspired by a very similar blog post to his original that mounted the sensor on a computer monitor, [Max] was back to work. This time, rather than using an ultrasonic distance sensor, he decided to use a webcam. Armed with Processing and OpenCV, he greatly improved upon the first version of his posture sensor. All of his code is provided on his website, be sure to check it out and give it a whirl!

Iteration leads to many improvements and it is an integral part of both hacking and engineering. What projects have you redesigned or rebuild? Let us know!

2D Room Mapping With A Laser And A Webcam

[Shane Ormonde] recently learned how to measure distance using just a webcam, a laser, and everyone’s favorite math — trigonometry. Since then he’s thrown the device onto a stepper motor, and now has a clever 2D room mapping machine.

He learned how to create the webcam laser range finder from [Todd Danko], a project we featured 7 years ago! It’s a pretty simple concept. The camera and laser are placed parallel to each other at a known distance, axis-to-axis. On the computer, a python script (using the OpenCV library) searches the image for the brightest point (the laser). The closer the brightest point is to the center of the image, the farther the object. Counting pixels from the center of the image to the laser point allows you to calculate an angle, which can then be used to calculate the distance to the object — of course, this needs to be calibrated to be at all accurate. [Shane] does a great job explaining all of this in one of his past posts, building the webcam laser rangefinder.

From there it was just a matter of slapping the rangefinder onto a stepper motor, driving it with a small PIC, and running the calculations on the fly! His results are fairly impressive.

Continue reading “2D Room Mapping With A Laser And A Webcam”