Programming a mini game on a RaspberryPi Pico using a 1.14‘‘ LCD screen#blog #howto #microcontroller #mycropython #rapsberrypi #raspberrypi pico #game #gamedev
I recently bough this 1.14‘‘ LCD screen for the RaspberryPi Pico. This screen not only just fits perfectly onto the Rasperry, you literally just put it over all of the pin headers, it also comes with a little analog pad, up, down, left, right, as well as an A and B button. So it is already kind of a very small handheld gaming device. The Game It is really simple, the player, a little green square on the left side of the screen, can move up and down using the analog pad, and shoot lasers using the A button.
Dead Letter Box - How to run a webserver on a RaspberryPi Pico W and use it as a standalone WiFi Accesspoint#blog #howto #microcontroller #mycropython #rapsberrypi #raspberrypi pico #webserver
We all know the stories of spies placing letters in hidden dead letter boxes during foggy cold november nights to communicate with other spies. Since the year is 2022 now, we will build something like this, but using a RaspberryPi Pico W 2. Basically the Raspberry Pi will act as a WiFi Accesspoint, which you can connect to without the actual need of physical contact with the device. The Raspberry Pi will also run a webserver, which we will use to to read and store messages, for anybody else who knows where the WiFi can be found and also have the password.
Howto run Stable Diffusion Text2Image Generator locally on an M1 Mac#blog #howto #python #tensorflow #ml #maschine learning #keras #text2image #macos
Text2Image generators like Dall-E or Midjourney are the new hot dudes, when it comes to generating images just from text inputs and also sparked some serious discussions about certain professions might getting obsolete, like artists and photographers. To be honest, it is extremly impressive what these generators can do, but on the other hand they do not replace a photographer for your weddding. Nevertheless I absolutly see practical applications for Text2Image generators.
A RaspberryPi Pico To-Do board using Micropython#blog #howto #raspberrypi #raspberrypi pico #python #micropython #electronics #programming #iot #microcontroller
Sometimes I need a little visual hint to do things, especially when it comes to little things that I should do on repeat, like dayli or even multiple times per day. I’m not really someone who does a lot of sport, but I love to go bouldering. In my “best times” I went three times every week. A few weeks ago I injured my left leg and since then I was not able to go to the bouldering gym anymore.
Lomography Metropolis film review#photography #analog #analogphotograpy #filmphotography #review
If someone asks me what my favourit film is, I would probably answer Kodak Portra. Recently I also shot a few rolls of Kodak Gold 200, which is also a film I really started to like a lot and since it is also now available as 120 film, I like it even more. A separate review on this film will follow soon. But this review is not about films I use all the time, but rather about a film I never used before, the Lomography Metropolis.
Using a Tensorflow/Keras multi-input model and NLTK to train a simple chatbot#blog #howto #python #tensorflow #ml #maschine learning #keras
In this example we will build a very simple chatbot, which we will train on pre-defined questions and answers. This approach is very simple, but in fact could be used to build a chatbot that allows users to talk about a limited scope. So basically you could use this as a different way for users to search your FAQs or allow users to get information usually found in your service documentation or even your product offerings, opening hours and menu of your restaurant and so on, by simply asking.
True Cinefilm - Silbersalz35 Review#photography #analog #analogphotograpy #filmphotography #review
Analog filmphotography is a field with so many techniques and technical possibilities. Most films are developed using a process called C-41. Kodak Gold 200, Fuji Pro 400H and most other films you’ve ever heard of are developed like this. Every company that can develop film will also be able to develop C-41. Silbersalz35 is different, they describe their film as “true cinefilm”. In fact it is KODAK VSION 3 motion picture film.
Capturing life - Yashica T4 Review#photography #analog #analogphotograpy #filmphotography #review
Recently I bought a Yashica T4. An ugly piece of plastic produced in the early 90s, but why though? I can’t resist analog cameras, but why this one in particular? Although it is, as mentioned, not a beautiful engineering masterpiece, like the much older cameras I own, it is also not a regular 90s point and shoot. The reason for that is its lens, a Carl Zeiss 35mm f/3.5. This detail set’s this camera apart from most of the other plastic cameras from that era and that’s also why a lot of analog photographers these days have or at least want one of these.
Three simple doughs you should know how to make on your own#food #recipe #dough #pasta #pizza #bread
I know, you now expect me to tell you about the secret doughs my ancestors used to make and how this knowledge was passed through the generations until it finally reached someone like me who is able to write about it on the internet. No, sorry, but no. What you will get here are three very simple recipes for doughs you could actually use when cooking meals for you or your family or friends.
Using regression to predict house prices using Tensorflow and Keras#blog #howto #python #tensorflow #ml #maschine learning #keras
In this example we will use the Boston housing price dataset to predict house prices based on several features such as crime rate, local tax property rate and so on. The biggest difference to the previous examples here is that we do not predict fixed classes. This time we predict a continous value. Prequesites This is the third part of my Tensorflow and Keras Sample series. To better understand what is going on here, I highly recommend to read part 1 and part 2 first and then return here to continue.
Multiclass classification with Tensorflow and Keras functional API#blog #howto #python #tensorflow #ml #maschine learning #keras
In the first part of this series we developed a simple binary classification model using Keras' Sequential model class, which is the easiest way of using Keras. Since the Squential model is easy to use, but also limited in what we can do with it, we will use Keras' functional API from now on. That way we can build more complex models for use cases that are not so simple. Allthough in this example we will basically use the functional API to build a model that could also be build using the Sequential model to show how it works on with a very simple example and then use this in upcoming parts of this series to implement more complex usecases.
Simple binary classification with Tensorflow and Keras#blog #howto #python #tensorflow #ml #maschine learning #keras
This is the first of - hopefully - a lot of Tensorflow/Keras tutorials I will write on this blog. In this first - very simple - example I will demonstrate how to use Tensorflow and Keras to train and use a model to predict if an IMDB movie review is positiv or negative. We will use the IMDB dataset for this, prepare the training data, so we can use it to train the model, and finally make predictions on data the model has never seen before.
Setup Tensorflow Environment on M1 Mac#blog #howto #mac #macos #python #apple #tensorflow #ml #maschine learning
Since Apple’s M1 chip is a really good choice for maschine learning at home, but the setup of a Tensorflow environment isn’t exactly straight forward, I thought it would make sense to simplify it a little bit and write a short guide on how to do it. What we need and what the finished solution will look like We need an Apple device with a M1, M1 Pro or Max chip and macOS 12.
Raspberry Pi Pico as HID#blog #howto #raspberrypi #raspberrypi pico #python #circutpython #electronics #programming #iot #microcontroller
Ever wanted to build a custom controller, or a have a few buttons which you could map some shortcuts to? Then the RaspberryPi Pico and a few touch buttons are everything you need. The Pico can be used as a HID (Keyboard, Mouse or MediaController) by using Adafruit’s HID library. The only problem here is that you can not use it using Micropython, but if we setup the Pico to run Circutpython we are good to go.
No story to tell#photography #analog #analogphotograpy #filmphotography #photobomb
I wrote a book. I guess most of you haven‘t expected that. In fact ‚wrote‘ is maybe the wrong word, because there are, besides the title, only two sentences to read in the whole thing. The first one can be found right after the first two blank pages and it reads as follows. “If future generations will ask me about that time, I will pretend I can‘t remember.” This is basically the whole idea behind this book.
My first time with a Mamiya 645#photography #analog #analogphotograpy #filmphotography #mediumformat #mamiya645
As you might have noticed I did a lot of analog photography during the last years. I started with a Canon AE-1, 35mm film, and my grandfather‘s Agfa Isolette II, 120 mediumformat 6x6. Later I found a Shanghai Seagull TLR, also a medium format camera, on a flea market and got my hands on two Voigtländer Vito rangerfinders 35mm cameras. I love all of them and I really enjoy taking pictures with them, but about a year ago I saw some photos taken using a Mamiya camera and so I started to inform myself about this vintage device.
How Hatzel saved my Gameboy#blog #howto #gameboy #gaming #retro
I own a classic Nintendo Gameboy, a device that hit the consumer market 32 years ago. I was born one year before that. Of course a few more years passed until I got a Gameboy myself. I played Super Mario Land, Tetris and later Zelda: Links Awakening and (of course) Pokemon. Then the device was replaced by various other consoles and PCs over the next decades. Two years ago I rediscovered it and somehow, after all these years, I felt the desire to relive that time in which I sat down to play those games.
Cold Solitude#photography #analog #analogphotograpy #filmphotography #mediumformat #winter
Rural areas fascinate me for a rather strange reason. It’s a world I do not fully understand and a world I don’t belong to. When walking through small villages in rural areas I always feel like a visitor from a different world, even if the village is just 20km away from the city I live in. Old houses build between vast fields and dark forests, communities spread out over a large area, all of this leads to a different lifestyle and how people interact with each other.
Lost Christmas#photography #analog #analogphotograpy #filmphotography #mediumformat #winter
Christmas is something special to me. I’m not religious, but this time has some kind of special feeling. It’s about things that happen and people I usually meet during this limbo between the current and the next year. Usually I spend some days around Christmas Eve with my family in the Austrian mountains. This is the most relaxing time of the year for me. We cook, we spend days together and no one has something really important to do.
60min Miso Chicken Ramen#food #recipe #ramen #miso
I love Ramen and I’m not talking about instant Ramen, I’m talking about real fresh Ramen, but there is a problem. It usually takes me two days to make them. So what if I want to eat Ramen today? Fake it, but still use only fresh ingredients. That’s what this recipe is about. Let’s create Ramen in about 60 minutes. We’ll create a very tasty broth, crispy chicken, eggs, crispy ginger and add a lot of fresh vegetables.
Homemade noodles without eggs recipe#food #recipe #noodles
Wether you want some Tagliatelle or fill some Ravioli, you’ll need a base noodle dough. This is what this recipe is for. Ingredients (for 3-4 servings) 200g of all purpose flour 200g of corn flour 100ml of cold water 1 teaspoon of salt Preperation Knead all of the ingredients until you have a nice even dough. If it is too dry, add some olive oil, but keep in mind that the dough should not be sticky.
Simple Brownie Recipe#food #recipe #brownie #sweet
I’m not a big cake-guy, but Brownies are something I really enjoy. It’s like fluffy chocolate and with this recipe they are easy to prepare for everyone. Ingredients 80g of all purpose flour 1 package of backing powder 200g of chocolate 160g of sugar 4 eggs 200g of butter Preperation Melt the chocolate and the butter over a water bath. Now add all the other ingredients and mix until you have a nice even batter.
Brioche Buns Recipe#food #recipe #brioche #buns #burger
Burgers are complicated. A lot of small details determine if they are great or not. One of the crucial thing is the bun, brioche of course. But buns aren’t that complicated, if you follow this simple recipe. Ingredients (4 buns) 300g of all purpose flour 1 package (7g) of dry yeast 60ml of warm water 70ml of milk 2 eggs 1 teaspoon of salt 1 tablespoon of sugar 50g butter 1 tablespoon of sesame Preperation Mix the yeast and the water until the yeast is dissolved.
Simple Pizza Recipe#food #recipe #pizza
Pizza is life and everybody can cook it at home pretty easily. The key is to make it thin and crunchy and a tasty tomatoe sauce. If you can do that, you can top it with whatever you like to make it truly yours. This recipe is very simple and can be done in any household oven without any special equipment. I use this recipe at least twice per month, because it is so easy and the result is so delicious.
How to run PostgreSQL on Docker#blog #howto #docker #postgresql #database #sql #devops
In this how to I will show how to setup a PostgreSQL server on docker, including how to persist data outside of the container, and also how to run PGAdmin in a container as well. In this example I asume that you’ve already got Docker running on your server, if not, set this up first. Install PostgreSQL By default the PostgreSQL container is configured to save its data to /var/lib/postgresql/data inside of the container.
Suburban Loneliness#photography #analog #analogphotograpy #filmphotography #mediumforkat
On a cloudy sunday aftrnoon in August 2020 I took my grandfather’s Agfa Isolette II, loaded a roll of Portra 400 Medium Format film and went for a walk in the suburbs of my Hometown. Alone On days like this, in areas like this, you can feel the emptiness in the air. The weather and also the ongoing pandemic kept people inside. Walking through the streets felt like walking through a ghost town.
How to use a IR photodiode on an Arduino to meassure IR light#blog #howto #arduino #arduino nano #photodiode #infrared #electronics #programming #iot #microcontroller
Most tutorials I’ve found so far are about 3-pin photodiodes. These are meant to recieve digital IR signals from TV remotes or similar devices. The 2-pin diodes can be used to simply meassure the available IR light. So you could use this to build a distance sensor, if you add a IR LED emitter and then meassure the reflected light, or to meassure the IR light emitted by a natural or artificial light source.
Arduino Nano IoT accelerometer data to pitch and roll#blog #howto #arduino #arduino nano #accelerometer #c++ #electronics #programming #iot #microcontroller
The Arduino Nano 33 IoT comes with a built-in 3-axis acceleromteter. This sensor meassures values for x, y and z acceleration between -1 and 1. If we want to know the actual position in which the sensor is, we need to know it’s rotation on two axis, pitch and roll, in dregress. This two angles could be used then later on to control two servos which rotate an object exactly the same way the sensor is rotated.
How to enable RaspberryPi Camera module on Ubuntu#blog #howto #raspberrypi #camera #ubuntu
I’m running the official Ubuntu for RaspberryPi on a RaspberryPi 4 and wanted to use the RaspberryPi Camera Module. The thing is, this is not as simple as it is on Raspian. So here are the steps you have to perform to use the Camera Module on Ubuntu. Activate Module First of all connect the Camera Module to your RaspberryPi like you always would and boot it up. Next you have to add the magic setting “start_x=1” to your /boot/config.
RaspbeeryPi Pico Temperature Light and Logger#blog #howto #raspberrypi #raspberrypi pico #python #micropython #electronics #programming #iot #microcontroller
On a rainy sunday afternoon I found out that the RaspbeeryPi Pico fits perfectly into a 35mm film box if you cut a little hole for the USB port into the lid. Since my box was a semi-transparent white box, I decided to add some LEDs and build a little temperature sensor, that indicates the current temperature range using either a blue, green, orange or red LED. Build I connected the power pin (long side) of each LED to a GPIO port (green = Pin4, blue = Pin5, orange = Pin3, red = Pin2), of course with a 220 ohm resistor in between, and all the short sides to GND.
How to develop on a RaspberryPi Pico using Micropython#blog #howto #raspberrypi #raspberrypi pico #python #micropython #electronics #programming #iot #microcontroller
A few days ago I got two brand new RaspberryPi Pico Boards and so it is time to build something using this new toy. So let’s talk about what it actually is, how to setup a MicroPython development environment and also build a simple example project to make sure everything works as expected. This one is not like the others I won’t go to much into the specs of this board, since you can read them for yourself here, instead I will focus here on two specific things that set’s this Pi appart from others like it.
Automatically sync local folder with remote ftp#blog #howto #scripting #bash #ftp #automation
As I’ve already mentioned in my article about how this website was built, this website get’s updated every night automatically with content I wrote the day before. To do so I use a cronjob and a little script that get’s the latests version of this website from Github, builds it and then uploads it via ftp. Since mirroring a local directory with a remote ftp directory is a pretty common task, I thought it would make sense to write about how I did it.
How this website was built#blog #webdevelopment #hugo #static site generator
Apocalypse#photography #analog #analogphotograpy #filmphotography #lockdown
This year created a dystopian atmosphere like I’ve never experienced before. Empty streets and abandoned playgrounds in the bright sunlight. Although this is a small town and not a buzzing metropolis like Berlin or other european capitals, it was still always filled with life, at least during the day and friday nights. But suddenly things changed, on the streets and in our heads. We felt haunted by an invisible enemy, a thing we can’t see and don’t fully understand.
Dystopia#photography #analog #analogphotograpy #filmphotography #blackandwhite
I am not a huge fan of black and white photography to be honest. Still from time to time I feel like it is the right choice to create a certain feeling. For me black and white film always creates a somehow dramatic atmosphere, that’s why this album does not contain color. I wanted drama. In the shadows The goal of project was to catch the dystopian feeling of beeing watched by something unknown.
14 years later#photography #analog #analogphotograpy #filmphotography #people #portrai #wedding
It took me and Martina nearly 14 years to finally decide to get the same surname. We’ve been together for more than a decade before we took two of our best friends on a weekend trip to vienna to get married. This happened on November 16th 2019, just 9 days before our 14th anniversary. Keep it simple We never wanted to have a big wedding with 100+ people and a complicated and exhausting day full of wierd traditions and the need to do things, because “that’s how it should be”.
Concrete#photography #analog #analogphotograpy #filmphotography #buildings #architecture
This project is all about concrete blocks to live or work in. It’s about colors, light, shadow and geometry. Old and New As I walk through cities I always have this feeling of chaos. Buildings that were build or changed since the day the city was founded. Different eras, different time, different styles, build as close to each other as possible to not waste a single inch of ground. Unfinished This album is one that will grow over time, because I think I will find more blocks that need to be added to here.
Ascend#photography #analog #analogphotograpy #filmphotography #climbing #outdoor #people #sports #blackandwhite
I am not a good climber. Not at all. I’m a beginner at best. Nevertheless I love doing it. This album was shot during an outdoor climbing session with friends on a single roll of Kodak T-Max 400. Raw Size I think why this black and white film worked so well, was because the contrast plays nicely with the scale and hight I wanted to capture. Also the sunlight creating a white sky and deep black shadows made everything look more dramatic.