The beginning of every new project I am starting usually gives me a feeling, pictured by the chemistry dog – I have no idea what I’m doing.
Fortunately, Arduino made thing so much more easy. For people like me, having a background totally different from electronics, this literally opens up a completely new world.
After playing around with different Arduinos during the last two years, I finally decided to become more professional, design my own PCBs and also do the assembly.
The first project was a board with an ATMEGA328P uC + the periphery, two pin strip connectors for sensor communication via I²C, and a plug in connector for serial communication and power supply (5V and 12V). That’s it, nothing fancy. The board is way larger than it would need to be, but one of the sensors, a SenseAir K33 BLG CO2 engine, is so huge, it does not matter.

The ATMEGA328P (of course) was burned with an Arduino bootloader. This was sort of tricky, the burning failed several times for no apparent reason and then suddenly succeeded – without any changes. Up to today I have not found out the reason behind.
The code I am writing is – no illusions here – everything but beautiful. However, it works.
The boards (all in all, ten fully assembled) are connected via serial to USB converters to USB hubs to an RaspberryPi, which reads the sensor values every 5 minutes. The sorting of data streams is done via Python scripts which are being kept running by a little demon called supervisor. Every time a script crashes, supervisor restarts it. This is amazing and saved me a lot of hassles.
Even though, with my knowledge today, I still would have changed many things, boards are ready and operational since 3 months now,
They are installed in hermetically sealed storage containers where they monitor parts of the head space gas composition and some physical parameters such as temperature and relative humidity. This is a (rather) long-term experiment within my Phd research topic. More updates to come.