Second Physical Communication Laboratory

USB controlle

The Gainer Flex3 analog out programming

by admin on 2 月.10, 2009, under USB controlle

I described the program of a very simple analog out with Flex3. I made a screen of Flash in mxml and described ActiveScript in another .as file.I make one slider controller of Flash and change output data of analog if I let a controller slide.  It is powered by two AA batteries in gainer this time and operates a DC motor.

mxml : demo.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init();" width="575" height="271" viewSourceURL="bin/index.html">
	<mx:Script source="Motor.as" />
	<mx:Text x="146" y="66" text="aout 0"/>
	<mx:HSlider x="195" y="66" id="ao0" minimum="0" maximum="255" mouseUp="aOut();"/>
</mx:Application>

AS:Motor.as

import gainer.Gainer;

public var gnr:Gainer;
public function init():void
{
gnr = new Gainer("localhost", 2000, Gainer.MODE1, true);
}
public function aOut():void
{
gnr.analogOutput(0,ao0.value);
}

1 Comment more...

Setting Gainer

by admin on 2 月.10, 2009, under USB controlle

It is to solder a pin first to have to do. Gainer can install two lines of pins. I put Gainer on the top to install it precisely after having inserted a pin in a flexible board. When I solder it, please be careful heat comes not too much, and not to break a part.

Leave a Comment more...

The clone Gainer

by admin on 1 月.27, 2009, under USB controlle

The parts list

  • A USB microcomputer board finished product (PIC18F2550) \1,000 (tax-included).
  • A RS232C cable & power supply set \800 (tax-included) for three AKI - PIC programmer Ver. kits.
  • A USB cable (A - mini B) 1.5m \150 (tax-included) (entering one case of 240).
  • A set of AKI - PIC programmer Ver.4 (a completion board) \5,700 (tax-included).

Update software
http://akizukidenshi.com/catalog/contents2/ver4support.aspx

MPLAB downloadhttp://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en019469

MPLAB C Compiler for PIC18 Down load
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1406&dDocName=en010014

#include <p18cxxx.h>
#include <delays.h>

#pragma config FOSC = HSPLL_HS
#pragma config WDT = OFF
#pragma config PLLDIV = 5
#pragma config CPUDIV = OSC1_PLL2
#pragma config USBDIV = 2
#pragma config PWRT = ON
#pragma config BOR = OFF
#pragma config BORV = 2
#pragma config LVP = OFF
#pragma config VREGEN = ON
#pragma config MCLRE = OFF
#pragma config PBADEN = OFF

void main(void)
{
TRISB = 0;
LATB = 0x00;
while(1){
Delay10KTCYx(100);
LATB ^= 0xff;
}
}

The infometion source
http://blog.goo.ne.jp/sim00/e/fee5a8d229457154de4d7c10095ebd89

Leave a Comment more...

Gainer

by Follay Susoy on 1 月.10, 2009, under USB controlle

gainer_logo
An input/output module to control a sensor and an actuator from a PC.

This module has USB interface, and a library for driver sofrwareware and C++ and Flash for PCs is prepared. In addition, software and hardware are shown with a CC license as an open source.
http://gainer.cc/Main/HomePage?userlang=en

i-o_module_v10s

Gainer.cc 

Leave a Comment :, more...