Category Archives: Download

How to connect Arduino + 74HC595 + LCD 16×2

I put necessary files at the bottom o f the post.

There are different kinds of 16×2 LCDs on the market. So, the placement of the pins can be varied. There are some tutorials on the web which are showing how to connect Arduino+LCD+74HC595, however I couldn’t make any of them work. Because, my LCD’s pins placements are not same as the tutorials that I found.

I put a note in the Fritzing file. It shows the order of the pins. So, you can make the correct connections using the diagram.

Another issue is the Arduino’s LiquidDisplayLibrary. You need to update it in order to use the LCD library. You need to update or replace it from Aduino library.

Here is the steps how to connect Arduino + 74HC595 + LCD 16×2 together with only 3 pins on Arduino board;

1- Make your connections according to Fritzing file as follows. Click to download
Screen Shot 2014-09-28 at 6.43.16 PM2 – Download the LCD library. And place it into Arduino

– Download and unzip the new LiquidDisplay folder.

– Open Applications folder in Finder

– Right click onto Arduino and select Show package Content. Then goto Contents>Resources>Java>libraries

– Copy/replace the downloaded folder into that folder.

– Close Arduino App.

3- Download the example code. And upload to your Arduino.





Open Source Data Visualization for Flash

text was taken directly from developer’s web site

“open source data visualization

Axiis is an open source data visualization framework designed for beginner and expert developers alike.

Whether you are building elegant charts for executive briefings or exploring the boundaries of advanced data visualization research, Axiis has something for you.

Axiis provides both pre-built visualization components as well as abstract layout patterns and rendering classes that allow you to create your own unique visualizations.

Axiis is built upon the Degrafa graphics framework and Adobe Flex 3.”

Passing variables and parameters from HTML to AS3

Trust me. This is the working one. There are many examples on several web pages. However, non of them tell exactly what they do!!!! If you follow these steps you can’t miss it.

1- create a new fla file

2- type onto first frame in actions panel,

var tf:TextField = new TextField();
tf.autoSize = TextFieldAutoSize.LEFT;
tf.border = true;

var value1:String = root.loaderInfo.parameters.s0;
var value2:String = root.loaderInfo.parameters.s1;
tf.text = value1+ “\n” +value2;

3- Publish this .fla (Do not forget to check “html” from “publish setting”)

4- Open your published html file in Dreamveawer and type your two parameters(s0 and s1 which are shown in red);

<html xmlns=”” xml:lang=”en” lang=”en”>
<meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
<script language=”javascript”>AC_FL_RunContent = 0;</script>
<script src=”AC_RunActiveContent.js” language=”javascript”></script>
<body bgcolor=”#ffffff”>
<!–url’s used in the movie–>
<!–text used in the movie–>
<!– saved from url=(0013)about:internet –>
<script language=”javascript”>
if (AC_FL_RunContent == 0) {
alert(“This page requires AC_RunActiveContent.js.”);
} else {













‘pluginspage’,’’,’movie’,’html_pass’ );

//end AC code
<object classid=”clsid:d27cdb6e-ae6d-11cf-96b8-444553540000″

codebase=”,0,0,0″ width=”550″




<param name=”allowScriptAccess” value=”always” />
<param name=”allowFullScreen” value=”false” />
<param name=”FlashVars” value=”s0=jkljkljkljkl.flv 576767&amp;s1=bbbb”>
<param name=”movie” value=”html_pass.swf” />

<param name=”quality” value=”high” />

<param name=”bgcolor” value=”#ffffff” />

<embed src=”html_pass.swf” FlashVars=”s0=jkljkljkljkl.flv 576767&amp;s1=bbbb”

quality=”high” bgcolor=”#ffffff” width=”550″ height=”400″ name=”html_pass” align=”middle” allowScriptAccess=”always” allowFullScreen=”false” type=”application/x-shockwave-flash” pluginspage=”” />

after this. Save your html file and run. The point is, you have to check your variables via html file. If you only run swf file, you can’t pass variable from html.

source: pass variable from html 2

DispatchEvent :How to use it?


In some cases dispatchEvent expression can be very useful.  For example; you can communicate with other classes that you ceated by dispatchEvent.  Basically I created a class and put a tween function. When tween finishes, my class dispatches as “TweenFinished”. In main fla file I added an EventListener to instance name of the class. Usually I have missed that part so my dispatcher doesn’t work as I expected.

EventListener listens to  “TweenFinished”. When it gets this message, ball moves to center of the stage.  So my main class is;

click here to download source.