• Home
  • About

szehau's weblog

Life, Internet, Software, Gadgets, Programming and Investments

  • life log
  • internet
  • programming
  • software
  • working holiday
  • gadget
  • project

Electronics Project – Raspberry Pi + Attiny85 + LCD 1620

July 28, 2014 16:57 by Sze Hau Leave a Comment

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:

  • A Raspberry Pi model B
  • An Arduino starter kits
  • GPIO T-Cobbler and cable
  • Some Attiny85 mcu – a low power, 8 pins, AVR microprocessor

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?

  • I’m able to load the blink project into both Arduino and Attiny85.
  • I’m able to make Attiny85 to talk to PC via serial communication.
  • I’m able to make Attiny85 to talk to Raspberry Pi via serial communication.
  • I’m able to make Raspberry Pi to display text on the LCD 1602 using I2C communication protocol.

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.

Raspberry Pi + Attiny85 + LCD 1620

 

Raspberry Pi + Attiny85 + LCD 1620

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!

 

 

More from my site

  • Electronics Project – Simple Card Read Keyboard Emulator Using Arduino Pro MicroElectronics Project – Simple Card Read Keyboard Emulator Using Arduino Pro Micro
  • PIKOM PC Fair 2009 (II)PIKOM PC Fair 2009 (II)
  • Introducing Wordtracker, a leading keyword research toolIntroducing Wordtracker, a leading keyword research tool
  • A WordPress Plugin for BlogtalA WordPress Plugin for Blogtal
  • Twitter crazy day!Twitter crazy day!
  • Happy New Year 2011Happy New Year 2011

Filed Under: gadget, life log, programming, project Tagged With: Arduino, Attiny85, home automation, LCD 1602, Raspberry Pi

About Sze Hau

Geek. Love programming. Coffee addicted. Married with a child. Working towards financial freedom.

Leave a Reply Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Email News Letter

Sign up to receive updates daily and to hear what's going on with us

  • Facebook
  • Google+
  • Instagram
  • Twitter

More Posts

5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic

June 1, 2021 22:15 By Sze Hau Leave a Comment

LED Downlight

Troubleshooting A Flickering LED Downlight

February 13, 2016 00:29 By Sze Hau Leave a Comment

Repair A Broken iPhone Lightning Cable

January 30, 2016 00:54 By Sze Hau Leave a Comment

Sponsored Links

Blog Network

  • Personal Fincance Personal Finance – Personal Money Tips, Stock Investment, Small Business and Make Money Online
  • Snippet IT Information technology news, ideas and experiences and opinions

szehau’s weblog

szehau is a software programmer that has strong interest in the world of programming and Internet. He is graduated in University of Malaya, Malaysia with a Bachelor’s degree in Software Engineering. He draws on his passsion for web programming to share with others how to build a successful websites.

Recent

  • 5 Essential Things You Need To Have At Your Home During The COVID-19 Pandemic
  • Troubleshooting A Flickering LED Downlight
  • Repair A Broken iPhone Lightning Cable
  • New Gadget – MacBook Pro with Retina Display (2015)
  • One Watt LED Night Light

Search

Tags

adsense advertisement baby blog blogtal Canon EOS 400D Chinese New Year Christchurch CNY DiGi electronic Facebook FBM Flickr Flickr Uploadr Google Google Maps Google Search Results Google Webmaster Central H1N1 income tax investment joke KLCI KLSE Lake Tekapo Maxis Maybank2u Motueka movie mutual funds New Zealand PC Fair 2009 Queenstown restaurant for dinner sharing stock trackback travel Twitter unit trust visa wordpress wordpress plugin working holiday

Copyright © 2025 · Magazine Pro Theme on Genesis Framework · WordPress · Log in