top | item 14856277

Ask HN: Share Your Raspberry Pi Project

166 points| samayshamdasani | 8 years ago

I'm looking for some inspiration for what I can do with my $35 computer. I think we can all learn a lot from any cool hardware project.

155 comments

order

tsyd|8 years ago

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.com/HIH8120-021-001S-humidity-sens...

[3]: https://www.influxdata.com/time-series-platform/chronograf/

kzisme|8 years ago

What language did you end up using to access the sensors?

I've been ~hoping~ to use Go to access the GPIO pins, but haven't had much success - any suggestions?

Griever|8 years ago

This is really cool! I've been thinking about a similar idea lately and this seems like a great way of doing it. Do you by chance have any material on how you got the honeywell sensor working with the C.H.I.P. board? (This would be my first electronics project)

arcaster|8 years ago

I love the C.H.I.P board, seems like they'd have better market penetration if their name wasn't "CHIP" though. I feel like the Particle IOT line has suffered a similarly hindrence?

yeswecatan|8 years ago

I'm planning on doing pretty much the same thing. A couple of questions:

1. Why not just run InfluxDB and Chronograf on one of the CHIPs?

2. How are you sending data to the Pi?

karangoeluw|8 years ago

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

alirov|8 years ago

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.

bochoh|8 years ago

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!

hellweaver666|8 years ago

I'm also in the process of building a photobooth. Using the standard Pi Camera module + a Pimoroni Unicorn Hat HD to give people a prompt when the photo is about to be taken. It'll then publish the photos on it's own internal webserver that'll be visible on another Pi for easy emailing / browsing and tweeting! Going to pack it all in an transparent enclosure that looks like the approximate shape of an oversized DSLR.

hitsurume|8 years ago

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?

xd1936|8 years ago

Very cool. What were you using for your Google Photos uploader on Linux?

Toadsoup|8 years ago

How do you get the pictures transferred to the pi?

elihu|8 years ago

I built a microtonal keyboard: http://jsnow.bootlegether.net/jik/keyboard.html

The keys have pressure sensitive film underneath that causes a voltage drop when you press on them. There's a wire from under each key that goes to an input on an MCP3008 ADC. There are 20 of those, each with 8 inputs, all connected on a SPI bus running at 2mhz. Effectively, this acts as a 160 channel digital voltmeter. The Pi can scan all the ADCs about 90 times per second, and it converts key pressure into midi commands that can be sent to an external synth or I can run a software synth locally on the Pi.

steverb|8 years ago

That's a beautiful piece of work. Nice job!

aedocw|8 years ago

I brew beer with mine[1]. I use a CHIP to control an old fridge as a fermentation chamber.

For both systems I'm using CraftBeerPi[2], a python project with a pretty active community around it.

I wrote about it on opensource.com[3] and it was pretty popular, which surprised me a little bit. But I guess a lot of people in our community like beer :). I'm always trying to figure out how to make brewing my career without the related massive cut in income (please share any great ideas on that!)

[1]: http://localconspiracy.com/2016/12/electric-brewery.html [2]: https://github.com/Manuel83/craftbeerpi [3]: https://opensource.com/article/17/7/brewing-beer-python-and-...

prions|8 years ago

Fellow beer brewer here!

I wrote my own small weather service, http://www.brilcast.com/, and re purposed the waterproof sensor to help track and record the process from lautering/sparging all the way to transfer to primary fermentation.

The setup is simple. Sensor code is written in Python, then it's sent to a SQLite database running on a Flask webserver. The frontend uses D3.js to visualize the data. The entire service is hosted on Pythonanywhere. It's quite spartan, but it works well. https://github.com/williamBartos/brilCast

jackhack|8 years ago

Recreating the Sony Aibo robot dog using a pile of cheap servos, 3 axis gyro, the camera, wireless, neopixel lights, LiIon power, etc. Shoulder joints, body shell and chassis 3d printed. Total cost is around $150.

Locomotion is largely based upon the designs documented by Cynthia Brezeal Ferrell (MIT mobile robots lab, under Prof. Rod Brooks) in her PhD thesis for the hexapod robot, Atilla/Hannibal.

The first attempt was using Python which presented two insurmountable problems : 1) raspian OS boot time of 1.5 minutes which is unacceptable for an embedded device and 2) python threading is not sufficient for realtime. I was attempting to make series elastic actuators but the imprecision of the threading (jitter) was leading to wild oscillations... I finally had to accept it was a dead end.

I have started over in Elixir + Nerves which is designed at its core for embedded work. I will admit it is very slow going. Not because of any deficiencies in the language or environment. Quite the contrary -- I get a 10-second cold boot time and superb stability! But rather my mind is the limiting factor here. After three decades of imperative programming, the shift to functional programming is a challenge!

bronco21016|8 years ago

Any pictures, write up, Github? This sounds awesome!

I also remember reading awhile back about the huge market for upkeeping these things once Sony abandoned it. Perhaps you're onto a business!

adammck|8 years ago

Could you share more about your experience with elastic actuators? What did your hardware look like? I'm working on something similar, and would love your input.

balloob|8 years ago

Use Home Assistant to integrate anything in your house. Make voice assistants respond to your commands. Write advanced automations to help make your life easier.

Use our Hass.io OS build to setup Google Assistant easily on your Pi. Need a USB microphone and speakers connected to the Pi and you'll get the full Google Assistant experience.

https://home-assistant.io

(disclaimer: I'm the founder)

johnboiles|8 years ago

I've been really digging home-assistant. Just got it set up a few weeks ago. Ended up buying $300 of zwave switches soon after

iamdbtoo|8 years ago

Just discovered Home Assistant yesterday and I'm really looking forward to diving into it.

oulipo|8 years ago

I'm the co-founder of https://snips.ai, we are building a 100% on-device Voice AI platform to respect people privacy!

We would love to see what you can do with what we are building and to feature you on our website !

bronco21016|8 years ago

I've done a little reading into making something along these lines using a Pi, Snowboy hotword detection, and one of the cloud APIs.

Two things I'm curious about...

1) What are you using for hardware with the Pi? It seems a high quality microphone is important to this application and the only array microphone I've been able to find is the MATRIX creator which seems steep in price if I could just buy an Amazon Dot.

2) Your numbers indicate significantly better performance than Google. How are you able to achieve that? Where does your training data come from if nothing is supposedly leaving my device?

I really strongly desire a system that wouldn't require relying on the cloud but I just don't know how you can get enough training data to be anywhere near as accurate as a cloud provider. That led me to thinking the next best thing would be a setup with Snowboy hotword detection where I know nothing is leaving my device until my own programmed hotword is spoken.

fron|8 years ago

Very cool. I'd love to use it, but...

Any plans to release source code? I can't trust any privacy claims without seeing it.

mcjiggerlog|8 years ago

I have been searching for something like this and this looks amazing! Looking forward to trying this out.

As others said, I'd feel more comfortable with an open codebase.

bebopfunk|8 years ago

Will this have the ability to replace an Alexa in terms of smart home integration/automation?

mvip|8 years ago

We've built a whole business on top of the Raspberry Pi. The company/project is called Screenly[1], which is a digital signage solution for the Raspberry Pi and we have over 10,000 devices running it. We really gained a lot of momentum early on with our open source version[2].

[1] https://www.screenly.io

[2] https://github.com/Screenly/screenly-ose

gangstead|8 years ago

Interesting product. Are there any screenshots / videos of it in action?

blacksmith_tb|8 years ago

I've always liked chiming clocks, so I made a pseudo grandfather clock with an RPi Zero W, a $1 I2C servo controller, and a $3 mini digital servo that strikes a long chime tube scavenged from an old doorbell[1] - ntpd means it's a lot more accurate than a pendulum clock, and cron keeps it from ringing in the middle of the night.

1: https://youtu.be/mfOEBCp74UU

jeffreygoesto|8 years ago

I built a tube internet radio with speech output of station names and switching stations with the AM dial. A small USB mouse picks up the rotation, a python script speaks the station name and passes the stream URL to gmediarenderer. Sound via USB soundcard and Phono/Aux input. Inspired by http://blog.scphillips.com/posts/2014/05/playing-music-on-a-....

Some pictures at http://imgur.com/a/r834D

sjs382|8 years ago

Any info re: interfacing with the dial? I bought a radio for a similar purpose that's just been gathering dust in the garage.

tbukovac|8 years ago

1. use it as a weather station - temp/hum/pressure sensors are quite cheap 2. if you already have weather station, hook it up to an API and share the data (wunderground.com, or similar) 3. you can use it as local lan media player/web server if you don't want to mess with hardware 4. build a bad ass robot/drone/submarine with it 5. build security system - possibilities are limitless. You can even use pressure sensor as intrussion detection device, let alone sound, light, shock, camera, IR, etc sensors.... 6. use it as an alarm clock 7. use it as decoration - if you need it to last forever, pour a resin in a mould over it 8. wrap it as a gift if everything else fails

oulipo|8 years ago

Cool! If you want to add 100% on-device Voice AI to your weather station you can use our platform at https://snips.ai which is free and will be open-sourced later!

bronco21016|8 years ago

Nothing unique really but I have a handful of older ones laying around that used to be purposed as RaspBMC machines. I recently moved everything to Plex with different client devices so I repurposed one Pi to be a print server for my parent's older printer. Another one has been repurposed as an AirPlay client for my outdoor speaker setup using a cheap amp I bought on Prime day.

I also have a newer Pi 3 running Stratux for receiving ADS-B traffic and weather on my iPad while flying.

Aside from Stratux there are definitely cheaper/easier solutions for what I've set up but nothing beats the 'free' hardware collecting dust in the bin.

Samon|8 years ago

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).

Nilef|8 years ago

Can you give some more information on the 3d printed blind automations? I've got a house with a lot of windows and I'm looking for an unobtrusive and cheaper way to automate all of the blinds

gmiller123456|8 years ago

Maybe not useful (to anyone else at least), but I've built a couple of small wheeled robots with cameras to do some experiments with Computer Vision.

Unless you're doing computationally intensive tasks, I find a Raspberry Pi 3 is overkill. If you go with the cheaper models like one of the low end Orange Pi's, you don't mind dedicating them to projects, even if the project is pretty useless.

brenniemac|8 years ago

I recently used a Pi to replace the game controller on an arcade style basketball game we have in our office (like this: http://imgur.com/a/B7YBq). It's running Android Things and has a couple of fun new game modes, better sound effects, and a whole bunch of LEDs for added awesomeness.

dagmx|8 years ago

I use my raspberry pi to run home assistant to control my IoT devices. I also have another pi mounted on my 3d printer running octoprint so I can remotely interact with the printer.

oulipo|8 years ago

If you are using Home Assistant, you can now do your own on-device Voice AI for free using https://snips.ai, we have added an integration!

sokoloff|8 years ago

I have one running a few home automation type tasks (an IP->serial gateway for my whole-house audio, SDR radio to monitor 4 utility meters [only 2 meters are currently reporting data as my 2 water meters are not reporting usage via radio to me or to the utility], and controlling relays for the sprinkler system). Next steps are I plan to create an Alexa skill that will control the whole-house audio and let me "pause" the sprinklers as needed and integrate with weather forecasting to predict near-future rainfall so I can save water/increase plant health if rain is expected.

I'll be honest: it's a lot of fun, but if I lived 100 lifetimes, it would never save me time on balance. ;)

I also use one to run stratux as another poster mentions. That one saved ~$650 vs buying the COTS solution.

bronco21016|8 years ago

Curious about your SDR meter monitoring. Any links or description of how that works? Would love to monitor my electric and water without using the energy company's devices.

simplyinfinity|8 years ago

I use it as a remote on/off/reset switch hooked directly to the mobo of my windows pc for when it decides to crash/bsod/random stuck and i can't RDP into the box, or just the power went out and need to turn the pc back on if it didn't automatically.

davexunit|8 years ago

Just yesterday I used an old raspberry pi to make a bluetooth audio receiver that could be integrated with my vintage stereo equipment. You can buy something off the shelf for around $25 but they use cheap digital-to-analog converters and I wanted to use the high quality USB DAC I already had. Total hardware needed was the Pi, powered USB hub, USB DAC, and USB bluetooth adapter.

Potato quality photo of the very advanced system I came up with for keeping all the components together: https://tootcatapril2017.s3-us-west-2.amazonaws.com/media_at...

MattGrommes|8 years ago

Did you have to use the USB bluetooth adapter with a Pi 3? I know the 3 has bluetooth but I don't know enough about it to know if I can just connect my phone to it to play music. I want to do something very similar to what you've done so I'm excited to see that somebody else succeeded.

schmich|8 years ago

I'm working on simplifying live streaming from the Raspberry Pi to Periscope [1] using the Camera Module [2]. Future streaming targets include the usual suspects: Twitch, YouTube, Facebook Live, et al. Deployment is flexible; you can install it as a Debian package, a Docker image, or a standalone binary.

Personally, I plan to use it as a traffic camera mounted on the window of our office.

[1] https://github.com/schmich/piriscope

[2] https://www.raspberrypi.org/products/camera-module-v2/

nsedlet|8 years ago

Some friends and I built a jukebox with lights that react meaningfully to the chords and beats in the music (using Chordify). We brought it to Burning Man as an art project. It's nothing compared to the other crazy ambitious stuff people do there - but it was our first real electronics project, and we had to learn a lot as we went.

Here's a grainy video: https://youtu.be/sXVZhv_Xi0I

Here's the code: https://github.com/nick264/music-processor-master

scandox|8 years ago

Built a working prototype of a LAN based discovery and routing device for Evercam.io. Not very sophisticated but it worked and it was deployed to several locations successfully in a pilot program, allowing them to route to Cameras that were otherwise inaccessible.

Actual code didn't rely on rPi (Elixir/OTP on Linux). But we shipped them on Pis. Other options considered had been Galileo and also an SoC called (I think) Quark (also from Intel).

https://gitlab.com/evercam/evercam-gateway

dividuum|8 years ago

I'm running a digital signage service based on the Raspberry Pi: https://info-beamer.com/

It started as a for-fun project and I'm now working full time on it. So I guess it qualifies :-)

If you want to display any kind of information on your Pi, you might take a look. The code that "runs" the display is written in Lua and the system is pretty programmer friendly. You can even 'git push' and deploy directly on any number of screens. Questions welcome!

jason_slack|8 years ago

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 to mount a large display on my property that shows the cars in big numbers just how fast they are going.

celticninja|8 years ago

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

adammck|8 years ago

I used a Rapsberry Pi (and a lot of Dynamixel servos, LiPo, gyro, etc) to build a small hexapod robot. I was mostly interested in learning about legged locomotion, and got a bit carried away. Using a normal-ish Linux platform with GPIO and USB devices made it really easy (and fun) to hack everything together.

https://github.com/adammck/hexapod

riku_iki|8 years ago

I think you were featured on HN front page few times already :-)

SeanCline|8 years ago

We use one in the office to monitor the Jenkins build status of our dev branch. https://github.com/SeanCline/build-indicator/

Hardware-wise, it's just a Pi and UnicornHat. I wanted to use off-the-shelf components since it's in an office environment with rather strict rules about what can be plugged into the wall.

opie34|8 years ago

A friend and I put together a free dynamic DNS service [1] offering cool custom domains aimed at the Raspberry Pi community (and similar hardware hackers.)

It's not strictly a hardware project, but it's a crucial building block for any network-enabled Raspberry Pi project, and we'd love your feedback.

[1]: https://www.legitdns.com

researcherOne|8 years ago

i used raspberry pi 2 in order to build 2d mapping robot(i installed ROS on top of ubuntu on pi2). i also tried to make it autonomus but lack of some hardware such as motor encoder made it quite hard to accomplish so i did not go for it. See snippets of video diary at https://robot.birkankolcu.com

mboto|8 years ago

That looks really cool. Have you got any documentation for implementing it?

bjacobt|8 years ago

I've a few simple projects around the house

1. I've a python script that sends bluetooth LE commands to my ceiling fan & lights. Ceiling fan has got a bluetooth LE remote you get from Lowes. Then used ha-bridge to simulate Philips hue, so now I can control the lights & fan using Alexa.

Built it to turn lights no/off with my new born daughter in hand.

And since about 5 months of age, every time anyone says the word Alexa she looks around to see the change in environment.

2. Run this useful open source project called LittleSleeper[1] to detect my baby daughter crying at night.

3. Configured IP camera to upload pictures on activity and use BerryNet[2] to detect whats in the images

[1]: https://github.com/NeilYager/LittleSleeper [2]: https://github.com/DT42/BerryNet

oulipo|8 years ago

Cool ! If you want more privacy around your kid than streaming what she is saying to Amazon with Alexa, you can use the platform we are building at https://snips.ai, it is free and will be open-source too!

ankurpatel|8 years ago

Created a temperature sensor system that can generate alerts whenever temperature or humidity goes above or below a limit configured by the admin portal. Along with Elasticsearch and Kibana graphs can be generated and also data can be seen on top of the floor plan to understand hot and cold spots in a building.

The repository below contains code and instructions on how to setup the Raspberry Pi device to report temperature/humidity data along with manual alerts to the server: https://github.com/ankurp/thermostat-sensor

The server code where data is received and saved, notifications are sent, and the entire system configured via the admin portal is here: https://github.com/ankurp/thermostat

khedoros1|8 years ago

I've got more plans than finished projects. One is an attempt to build a GPIO-connected synthesizer using an old OPL-3 chip and the DAC chips that are designed to be paired with it. The plan would be to add direct hardware output to Adplug and Dosbox.

Another is a quadrupedal robot (more like a puppet to start with; autonomy would come after I've got the gait control code working). Control would be through a bluetooth game controller. I've got a laser-cut acrylic body for the thing and a servo control hat to deal with timing jitter.

Third, I've got a Pi-Zero and a broken PSP. 4.3" Backup camera screens are the right size, shape, and resolution to fit in the PSP case, they can be modified to take 5V instead of 12, and the Pi-Zero has 2 contact pins for the analog video out. I'd need to experiment with audio out; I've got a couple ideas.

cjdaly|8 years ago

These little computers are floppy and like to slide off the desk under the weight of their own USB cables. This has led me into many adventures with wall mounted enclosures.

[0] https://github.com/cjdaly/CompuCanvas

1024core|8 years ago

Is anyone using this to sense water levels (or just the presence of water)? I'd like to implement a doohickey that monitors water levels in a water storage tank which is not easily accessible. So it must be very reliable, and install-and-forget, as access is a pain in the ass.

bighi|8 years ago

I am going to try that this next week. I live in a third world country, and here most days there's no water coming from the pipes.

So I am going to try and monitor the water levels in my house.

What I bought to do that: A ESP8266 board (it's like an WiFi arduino), and an ultrasound distance sensor.

My plan is to point the sensor vertically towards the water. It emits sound and then measures the time it takes for that sound to bounce back. I think I can use to measure the level of water.

Then the results will be sent (using MQTT) to my Raspberry Pi that is running Home Assistant.

gavreh|8 years ago

I have one running PiAware: http://flightaware.com/adsb/piaware/

I built a "Kitchen Dashboard" last year: https://gavinr.com/2016/01/10/raspberry-pi-kitchen-dashboard...

And of course you have to build a RetroPie: https://retropie.org.uk/

stkai|8 years ago

+1 for PiAware. It's just about the easiest project and a good intro to the Pi.

Other things on Pi in my house: OpenVPN server (http://www.pivpn.io/) and Node-RED (https://nodered.org/) for collecting temperature data and pushing to Power BI.

arman_ashrafian|8 years ago

I have my Pi hooked up to an LED strip in my room. It is running a flask server so I can control the light with a website or with my Alexa. I use it everyday and it was super easy to set up.

altreality|8 years ago

I'm working on an open source Canary clone with a RasPi Zero W and Camera module, a couple of sensors (Smoke and CO) and MotionEye software all stuffed into a Pringles can. :)

mafuyu|8 years ago

Waaay back in 2011, when I was getting started with electronics, I combined a Raspberry Pi 2 with a battery pack and a head mounted display for an iPod Video to make a HUD. It was horribly hacky, but I did manage to get it to show the time and my Google Calendar events with a Python GUI program and Internet over Bluetooth to my phone.

Some pictures: https://github.com/Hylian/PiHUD

dtien|8 years ago

Not myself, but a friend:

Making an snes emulator in an HDMI dongle form factor with wireless controllers.

SNES on your main TV system, switch TV inputs, play Super Mario Kart. No hookups, no wires.

southpawflo|8 years ago

a post on hackaday.com led me to a lightning sensor breakout board that connects at 3.3V which is perfect for a rpi. since I live in florida I jumped at it. just got it hooked up the other day, unfortunately NOAA's lightning strike database is a few days behind so in a day or two I'll be able to check the accuracy of it. it's my first electronics project with the rpi and I have definitely learned a lot already

lickingalmonds|8 years ago

Nice! I've been trying to do this but I haven't been able to find a lightning sensor breakout board that doesn't cost an arm and a leg. Can you link me to the one you purchased?

moobsen|8 years ago

Currently I am building a mobile GPS beacon which a drone can follow. The goal is to create a small follow-me box without the need for a smartphone.

MattGrommes|8 years ago

I put retropie on one, then added a Picade hat to easily connect some real arcade buttons and joystick to play mame games on. I put it inside of an old restored Defender cabinet.

I'm also in the process of building a "magic mirror" which will have some home automation and Google assistant built in.

adangert|8 years ago

http://joustmania.com Open source 16 player version of JS Joust, all running on a pi, very easy setup, and tons of features and game modes

rubatuga|8 years ago

It acts as a great DHCP and DNS server. It translates short addresses/hostnames into IP address, which is great for commands like “ssh pi@hub”. Also it’s much faster than my router.

malynda|8 years ago

I will be using the EnviroPhat from Pimoroni to collect data about the solar eclipse on August 21. I was more motivated by the data than putting together my own hardware for this one.

kevas|8 years ago

Just finished setting up openVPN on a RPi3b so my salesperson and I can access the CRM from outside my network.

ap46|8 years ago

HomeKit Hub & coupled with an ESP8266(Or even without it) you can make Siri do practically anything.

t_minus_2|8 years ago

I use it as a GopiGo, Timelapse camera which i mount on my car dashboard to record my road trips.

pecord|8 years ago

Emulation (RetroPie), VPN (PiVPN), DNS (PiHole) and IP Camera (MotionEye OS)

a_lifters_life|8 years ago

I made a surveillance camera for my new home, it actually works quite well.

pecord|8 years ago

[deleted]