[null, {"document_url": "http://www.szehau.com/archives/2014/07/electronics-project-raspberry-pi-attiny85-lcd-1620/", "unformatted_src": "https://farm3.staticflickr.com/2919/14761854701_2f22664a68.jpg", "src": "https://farm3.staticflickr.com/2919/14761854701_2f22664a68.jpg", "formatted_filename": "f a", "alt_text": "Raspberry Pi + Attiny85 + LCD 1620", "rendered_width": 500, "rendered_height": 375}, {"document_url": "http://www.szehau.com/archives/2014/07/electronics-project-raspberry-pi-attiny85-lcd-1620/", "unformatted_src": "https://farm6.staticflickr.com/5586/14784892193_b4c5de8171.jpg", "src": "https://farm6.staticflickr.com/5586/14784892193_b4c5de8171.jpg", "formatted_filename": "b c de", "alt_text": "Raspberry Pi + Attiny85 + LCD 1620", "rendered_width": 500, "rendered_height": 375}, null, null, null]
I always want to start an electronic project that build a home automation system but I don’t have much time. Don’t have time is just a bad excuse. So to make thing starts, I start buying electronic components and devices that I need and trying them one by one.

These are the things I have bought:

The basic idea of my home automation system is to create wireless sensor nodes that send data wirelessly to a central server. The sensors’ data will be gathered at central server, processed,  stored in database and will be presented to users via LCD display, HDMI display and website.

Sensors (like reed sensor and temperature sensor) will be connected to Attiny85 and Attiny85 will read data from the sensor and send the data to the server via radio transmitter module using radio wave. These components will form a sensor node.

Raspberry Pi (the central server) will connect to another Attiny85 which will then connect to a radio receiver module. Raspberry Pi will receive data from sensor nodes and the data will then be processed and stored in database.

Before assemble to whole home automation system, I have to test the components out so that I can make sure they can work correctly and they work as what I have expected theoretically the way they should work.

Making electronic project is fun. It takes some time to learn and it makes your hand dirty!

So, what I have done so far?

The picture below shows the Raspberry Pi output text to the LCD display and at the same time receive data from Attiny85. It takes the whole day to program the LCD driver in Java (ported from Arduino’s LiquidDisplay driver and interface with Pi4J’s I2C library) as there is no existing driver available on the Internet. One of the major obstacle in writing the drive is that the China’s version of LCD 1602 wires the data cable in the reverse position and it took some time to discover this! Great that it is now working correctly!
 About Sze Hau


Email News Letter
 

szehau’s weblog

