r/learnjava • • Dec 22 '20

Tutorial: Light up your Christmas lights with Java and Raspberry Pi

Are you a serious Java-developer looking for a fun project? Or want to learn something completely new and use your Java-knowledge to control electronic components? Here we go with this small project to get you introduced to the world of electronics programming!

We are going the make the “Hello World”-equivalent of an electronics project: a blinking LED. And to make it a bit more challenging, not only blinking one LED but a “full” Christmas tree, well… at least 7 blinking Christmas lights.

Read the full article on:
https://www.javaadvent.com/2020/12/light-up-your-christmas-lights-with-java-and-raspberry-pi.html

63 Upvotes

10 comments sorted by

4

u/spicycurry55 Dec 22 '20

Thanks for sharing, awesome article!

3

u/[deleted] Dec 22 '20

Thanks!!

3

u/WinRaRtrailInfinity Dec 23 '20

What would the cost be of all the parts needed? I'm broke right now but otherwise this would be an awesome project to do.

2

u/[deleted] Dec 23 '20

Depends on what you already have... The most recent Raspberry Pi 4 starts at 37€ (https://shop.pimoroni.com/products/raspberry-pi-4?variant=29157087412307). And you will also need SD card, screen, mouse and keyboard.

For the electronics parts, look on ebay for a full getting started kit (https://www.ebay.com/sch/i.html?_from=R40&_trksid=p2380057.m570.l1313&_nkw=electronics+starter+kit&_sacat=0), or bey some components separately like a breadboard and wires (https://www.elektor.com/mini-breadboards-jumper-wires) and LEDs with resistors (https://www.elektor.com/50-colourful-leds-resistors).

2

u/ViolentSugar Dec 23 '20

Cool.

1

u/[deleted] Dec 23 '20

Thanks!!

2

u/Internal-Agency-5812 Dec 23 '20

Very helpful, great for first timer

2

u/[deleted] Dec 23 '20

Indeed and once you've done this, there is a whole world of electronics fun projects which you can control with Java...

2

u/sujankhadka23 Dec 23 '20

Nice

1

u/[deleted] Dec 23 '20

Thanks!!