Python web server in Raspberry Pi

There are many ways of serving web pages from Raspberry Pi. One of the ways is to install Apache web server software. This is still a standard solution for most of purposes. These things require quite some performance and this is not always an optimal choice. If you need simple webserver for your home project that would easily work with GPIO you could try Python web server. Python web server relies on flask – an extension that provides web microframework. It allows building and rendering webpages with few lines of code. Sankar have written a short tutorial on how to start with simple static webpage from Raspberry Pi. From there you can move on with more advanced pages that include dynamic content and so on.

RPi board for learning Python

Python is popular programming language used in Raspberry Pi. It is easy, intuitive and well documented. With Raspberry Pi hardware you can access physical pins and do lots of crazy things. Anyway like any new thing you need to learn it. TO make thing much easier, jechavarria introduced Rpi board which is dedicated for learning Python on Raspberry Pi. Rpi board has four 10mm diffused LEDs – each different color. Each is controlled through Mosfet transistor key. Then there are couple push buttons that are lined with LEDs and in the middle there is a buzzer which is also driven through transistor key. On top of it Rpi board carries 2×16 LCD. Additionally you can see I2C buss connector for future extensions and. Couple green LEDs on a side are … Continue reading

DIY USB Based CPU Monitor

Instructables user janw built a CPU/RAM load monitor that plugs into your USB port and has posted the steps on Instructables so all you DIYers can build your own! This little device shows you the CPU-load, how much physical and virtual memory is used. The data is shown per 10% on 3 led bars. To achieve this the user have to use a VCP (Virtual COM Port), so that it can be connected to a PC via a USB connection to receive the data. Collecting as well as sending the data was done with the help of a PYTHON script. There are very basic requirements of the project. For sending and collecting the data, the user needs to have the python 2.7v along with Pyserial and Psutil. For the hardware … Continue reading

MCU and PC communicates via soundcard

Many microcontroller projects include communicatin with PC. It may be a simple data logging, accepting commands via serial terminal or be a complex data acquisition system with GUI. In order to communicate microcontroller with PC, one of several communication interface is needed like RS232, USB or any other. No matter how complex your project is you always have to complement both sides with proper signal converters like RS232 or USB to TTL chips. Usually these cost more than other part of project. Scott came out with simpler solution that works almost on any machine and operating system. One condition – there has to be a soundcard involved. Microcontroller simply sends specially timed pulses to soundcard mic/line input while python script decodes them in to data bytes. In bidirectional version both … Continue reading

The Finest Computer-controlled LED Lamp

Are you being bored of the same old desk lamp in your living room or bedroom? Wouldn’t it be fantastic to have a magnificent desk lamp, which it could change color constantly, for example it flashing red when you receive an e-mail from your friends or colleagues? Or even better, that it pulls weather reports from the internet and translates the forecast temperature to a certain color? It could add some white flashes, if thunderstorms are forecast or when your phone is ringing, it could flash green if it’s a friend/colleague or red if it’s your bossy employer (WoW, doesn’t it sounds like a “Red Alert” here? lol) Well, this computer-controlled LED lamp is a very simple and easy to develop project. The simple Python and C programs for your … Continue reading