Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Flash application for Christmas

Status
Not open for further replies.

Vermes

Advanced Member level 4
Advanced Member level 4
Joined
Aug 2, 2011
Messages
1,163
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,316
Activity points
22,318


It is a flash application which controls lamps on Christmass tree. This project consists of two parts: flash and „server”.

Flash:
Application was written in object in ActionScript 3.0. The principle of operation is a simple animation and sending the information further through sockets. By clicking the right button, you make an animation and send one specific information.

„Server”:
It is a very simple program written in Delphi, it is some kind of a bridge between Flash and AVR. Program receives information from sockets and sends it further via RS232.
LocalHost: 127.0.0.1
Port: 5330

Hardware – program:
It is a simple system with Attiny2313 (At90s2313), clocked by quartz 11.0592MHz. The circuit was mounted on a contact board and a relay was used as an executive system. Note! There is high voltage in executive part of the circuit, for example in the relay. Such voltage may cause damage to your health or life.

RS232 – USB converter from Profilic is used for communication. Program was written in Bascom. Communication is carried out in program, so there is no elements of communication on Max232. Communication speed is 115200 baud rate. Waitkey command was used in program, so microcontroller waits for specific sign from the Flash, checks the conditions and executes the corresponding instructions.

www:
Animation, pictures and mp3 file were set using the static language FBML. All files are placed on an external server and they are loaded with use of that language. You need Adobe Flash Player 10 to watch the animation.

Facebook: LINK.

Attachments:
  • in „Socket” zip you can find the program Socket.exe. Click port settings and then start;
  • in „Tutorial” zip you can find files which will help you to make an application with use of Flash. It is an application with two buttons, which send „0” or „1” via socket. Ready file „Tutorial.exe” should be started. If you want to know what is inside, look into files „fla” and ”as”. „fla” is base file and „as” is application code, which can be opened in Notepad if you do not have appropriate software to edit Flash. Flash CS5 or Flex sdk and FlashDevelop are recommended;
  • in „avr” zip you can find a sample program, which can be used for tests

Video:


Pictures:



Link to original thread (useful attachments) - Animacja flash,avr,troche facebook'a i choinka :)
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top