Live data from Hacker News

Ask HN: Share Your Raspberry Pi Project

news.ycombinator.com

131–140 of 160 posts

Re: Ask HN: Share Your Raspberry Pi Project

#131

I'm using a Pi to capture the speeds and pictures of cars as they travel down my road. We then report the speeders to local law enforcement. I recently decided to expand to a 9 camera system (8 security cameras and 1 piCamera) and start capturing video, stills, speeds and car data. I then am able to show that the same car speeds everyday (or however often) and have a lot of useful data to hand over. My next step is t…

I bet a screen showing their behaviour is more effective than reporting them to the police.

actually the reporting to local law enforcement has been very effective. They do extra patrols based upon the data and have issues a number of tickets.

One they issued a ticket for 80 in a 35 to a driver at 5:00am and then again the next day the driver did the same thing! Didn't expect them to be there two days in a row.

Re: Ask HN: Share Your Raspberry Pi Project

#132
post #7

I used one to build a photobooth for my wedding. The raspberry pi controls a DSLR camera to take 4 photos, stitches them into a 4x6, prints the photo and uploads everything to a Google Photos album which was displayed live on a projector.

How do you get the pictures transferred to the pi?

Re: Ask HN: Share Your Raspberry Pi Project

#133
post #7

I used one to build a photobooth for my wedding. The raspberry pi controls a DSLR camera to take 4 photos, stitches them into a 4x6, prints the photo and uploads everything to a Google Photos album which was displayed live on a projector.

How do you get the pictures transferred to the pi?

The camera is hooked up to the raspberry pi via USB. I'm using the gphoto2 library in python to communicate with the camera, show a live preview on the attached LCD screen, snap photos and copy the photos onto the raspberry pi after they're taken.

Here's a list of cameras that gphoto2 supports: http://gphoto.org/proj/libgphoto2/support.php

I made sure to buy a DSLR that supported live-preview so that our guests could frame themselves before the photos were taken.

Re: Ask HN: Share Your Raspberry Pi Project

#134
post #7

I used one to build a photobooth for my wedding. The raspberry pi controls a DSLR camera to take 4 photos, stitches them into a 4x6, prints the photo and uploads everything to a Google Photos album which was displayed live on a projector.

I've been looking to do this myself, did you follow any guides online to help you with this? How did you connect your camera to the Pi?

I looked at some guides for ideas and was hoping to find a ready to go solution but nothing seemed perfect for our use case. Good quality photos for keepsakes was a primary goal so I used this as an excuse to buy a DSLR (which still ended up being cheaper than renting a photobooth for a few hours would have been). I chose to code it up in Python since it seemed like the best candidate with plenty of libraries that could handle what I wanted. I chose a camera based on what devices were supported in gphoto2. Specifically, I chose a camera that supported live preview which allowed our guests to frame their photo better. I answered the question about connecting the camera in another comment but the tl;dr is that it was connected via USB and all communications were through the python app I wrote using the gphoto2 library.

Re: Ask HN: Share Your Raspberry Pi Project

#135
post #78
post #7

I used one to build a photobooth for my wedding. The raspberry pi controls a DSLR camera to take 4 photos, stitches them into a 4x6, prints the photo and uploads everything to a Google Photos album which was displayed live on a projector.

I would be insanely interested in a thorough write-up of this. My mother is getting married in a few months and it would be incredible to build for her and her fiance!

I'll try and get the process written down but in the meantime, feel free to shoot me an email with any questions. You can find my email in my profile.

Re: Ask HN: Share Your Raspberry Pi Project

#136
At our office we're big tea drinkers with a massive Teapot from Ikea so with a set of USB scales, we turned one into an internet connected Teapot complete with leaderboard, it's gamified tea making for the office.

https://github.com/gbrady92/Teabot

Leaderboard - http://www.teabot.co.uk/index.html

Re: Ask HN: Share Your Raspberry Pi Project

#137

Earlier quoted context omitted.

I bet a screen showing their behaviour is more effective than reporting them to the police.

actually the reporting to local law enforcement has been very effective. They do extra patrols based upon the data and have issues a number of tickets. One they issued a ticket for 80 in a 35 to a driver at 5:00am and then again the next day the driver did the same thing! Didn't expect them to be there two days in a row.

You might have saved his life - or someone else's. 80 in a 35? Completely insane.

Re: Ask HN: Share Your Raspberry Pi Project

#138

Earlier quoted context omitted.

Yes, I think I prodded my brother to write a blog post but I will write it myself and try to get to it this weekend. But basically the steps you would have 1. Get a Raspberry pi (obviously) and load linux with python support. 2. Use this shield https://www.amazon.com/Pimoroni-Unicorn-Hat-Shield-Raspberry... 3. Create a python script that blinks with the HZ that was in the Nature paper.

I think I saw someone else try a similar thing with an oculus rift or vive. How do you think it went with your relative.?

I have no idea. We never did any controlled experiments. Also, I didn't notice a difference anecdotally.

Re: Ask HN: Share Your Raspberry Pi Project

#139
I've built my home automation setup around Raspberry Pis.

I have an old Nexus7 tablet mounted on the wall (3D printed wall mount which incorporates a wireless charging coil) which hits the web UI of NodeRED running on a Pi to provide a 'home control panel'.

There's a pi with a heap of relays which controls things like my garden lights, sprinklers, motorised curtains (3D printed adapters to convert standard curtain tracks into motorised ones), etc, and then I have a number of Orvibo S20 WiFi power sockets to switch things like lamps on and off.

I have a pi mounted behind the front entrance panel acting as a doorbell, also connected to a camera module which triggers push notifications etc when motion is detected. This also ties back into the main 'automation hub' via NodeRED.

I also built an aquarium monitoring/control system on another Pi, with ambient and water temperature probes, a bunch of relays turning filters, lights, heaters, pumps, etc on and off, and an IR-emitter to send the relevant commands to my lighting fixtures to control the colour temperature and intensity (providing a 'sunrise'/'sunset' effect). Again, this all ties back to the main system using NodeRED.

Unrelated to the home automation, I also use a Pi to manage and run my 3D printer using OctoPrint, and run my media centre using LibreElec/Kodi/Emby (with my media stored on my main workworkstation and served via Emby).

Re: Ask HN: Share Your Raspberry Pi Project

#140
post #25

Although not strictly a Raspberry Pi project, I have a couple C.H.I.P. boards[1] scattered throughout my apartment collecting temperature and humidity readings (using a HIH8120 sensor[2]) and feeding it to my Raspberry Pi which runs InfluxDB and Chronograf[3] to store and display a simple dashboard. The end result looks like this: http://i.imgur.com/cIrhSUq.png [1]: https://getchip.com/ [2]: https://sensing.honeywell…

Interesting... But what do you do with this data?

I'm the same, I use some cheap ESP8266 devices which have a temperature/humidity sensor attached. They submit their measurements every minute to a central MQ installation:

https://steve.fi/Hardware/d1-temperature-humidity/

While I don't have any particular reason for collecting the data it can be fun to look at. For example you can easily spot when somebody has a shower because the humidity spikes in the bathroom:

https://twitter.com/Stolen_Souls/status/848444075296641025

Naively I expected to track the weather, because I figure on a hot day the temperature of my living-room/etc would spike. Turns out this house is pretty well insulated so the internal temperature has essentially no relationship to the external one. I guess that makes sense in a country where you might have -25'C in the winters.

Post reply on HN