2014年11月9日 星期日

2014-11-10-Ch03_1.pdf ch3 diode

Sedra/Simth 
Microelectronics Circuits
CH3  DIODE

http://www.mediafire.com/view/9z7kgxqtywg5bim/2014-11-10-Ch03_1.pdf

2014年11月7日 星期五

MIT App Inventor 2 Beta For Android Exercise 1

MIT App Inventor 2 Beta  For Android Exercise 1
參考  http://www.appinventor.tw/ai2
        

         App Inventor台灣官網




2014年11月5日 星期三

Arduino + Android + 藍芽 + MIT App 練習

Arduino  +  Android  + 藍芽 + MIT App  練習
參考 
http://blog.cavedu.com/appinventor-%E5%9C%96%E5%BD%A2%E5%8C%96android/%E9%9B%99a%E8%A8%88%E5%8A%83-part1%EF%BC%9Aapp-inventor-%E7%B6%93%E7%94%B1%E8%97%8D%E7%89%99%E6%8E%A7%E5%88%B6-arduino-led-%E4%BA%AE%E6%BB%85/#prettyPhoto





#include <SoftwareSerial.h>
#include <Wire.h>//引用二個函式庫SoftwareSerial及Wire

SoftwareSerial I2CBT(10,11);//定義PIN10及PIN11分別為RX及TX腳位

void setup() {
   Serial.begin(9600); //Arduino起始鮑率:9600
   I2CBT.begin(57600); 
//藍牙鮑率:57600(注意!每個藍牙晶片的鮑率都不太一樣,請務必確認
   pinMode(13, OUTPUT);  //設定 pin13 為輸出,LED就接在這
}

void loop() {
byte cmmd[20];
int insize;
while(1){
   if ((insize=(I2CBT.available()))>0){  //讀取藍牙訊息
      Serial.print("input size = ");
      Serial.println(insize);
      for (int i=0; i<insize; i++){
Serial.print(cmmd[i]=char(I2CBT.read()));
Serial.print(" ");
      }//此段請參考上一篇解釋
   }
   switch (cmmd[0]) { //讀取第一個字
      case 97: //97為"a"的ASCII CODE
         digitalWrite(13,HIGH);  //點亮LED
         break;

      case 98://98為"b"的ASCII CODE
         Serial.println("Get b");
         digitalWrite(13,LOW);   //熄滅LED
         break;
   } //Switch
   } //while
}//loop

Arduino + Android + 藍芽 + MIT App

Arduino  +  Android  + 藍芽 + MIT App  練習

參考 
http://blog.cavedu.com/appinventor-%E5%9C%96%E5%BD%A2%E5%8C%96android/appinventorandarduinowithbluetooth/#prettyPhoto







#include <SoftwareSerial.h> 
#include <Wire.h>  //引用二個函式庫SoftwareSerial及Wire SoftwareSerial 
SoftwareSerial I2CBT(10,11); //定義PIN10及PIN11分別為RX及TX腳位 
void setup() { 
  Serial.begin(9600); //Arduino起始鮑率9600 
  I2CBT.begin(57600); //藍牙鮑率57600
  //(注意!此鮑率每個藍牙晶片不一定相同,請先確認完再填寫進去) 


void loop() { 
  byte cmmd[20]; 
  int insize; 
  while(1){ 
  if ((insize=(I2CBT.available()))>0)
  {  //判斷有沒有訊息接收 
    Serial.print("input size = "); 
    Serial.println(insize);  //顯示接收多少訊息 
    for (int i=0; i<insize; i++) {
      Serial.print(cmmd[i]=char(I2CBT.read()));//將接收的訊息顯示出來
      Serial.println(" ");  
    }//if
  } //for 
  }//while
}

2014年11月3日 星期一

國立勤益科技大學 103 學年度第 一 學期 期中考 解答

國立勤益科技大學 103 學年度第 學期 期中考 解答

http://www.mediafire.com/view/udormbayjpjbbyq/%E5%9C%8B%E7%AB%8B%E5%8B%A4%E7%9B%8A%E7%A7%91%E6%8A%80%E5%A4%A7%E5%AD%B8_103_%E5%AD%B8%E5%B9%B4%E5%BA%A6%E7%AC%AC1_%E5%AD%B8%E6%9C%9F_%E6%9C%9F%E4%B8%AD%E8%80%83_%E8%A7%A3%E7%AD%94.pdf

或是


http://www.mediafire.com/view/udormbayjpjbbyq/國立勤益科技大學_103_學年度第1_學期_期中考_解答.pdf

2014年11月1日 星期六

Getting Started with ArduBlock

Getting Started with ArduBlock

1.Download ardublock-all.jar ArduBlock
2. In Arduino IDE, open menu “Arduino” -> “Preferences”
3. Find “Sketchbook location:”
  • In Mac, it’s by default “Documents/Arduino” under user’s home directory
  • In Linux, it’s by default “sketchbook” under user’s home directory
  • In Windows, it’s by default “Documents\Arduino” under user’s home directory
4. Copy ardublock-all.jar to tools/ArduBlockTool/tool/ardublock-all.jar under “Sketchbook location”,Assume the user is “abu,”
  • In Mac, /Users/abu/Documents/Arduino/tools/ArduBlockTool/tool/ardublock-all.jar
  • In Linux, /home/abu/sketchbook/tools/ArduBlockTool/tool/ardublock-all.jar
  • In Windows, C:\Users\abu\Documents\Arduino\tools\ArduBlockTool\tool\ardublock-all.jar
* Be careful, the name of folder “ArduBlockTool” under tools folder is case sensitive.
5. Start the Arduino IDE and find ArduBlock under the Tool menu
Untitled

http://blog.ardublock.com/ ArduBlock官方網站 (有簡體中文).


From Physical computing to visual programming Computer Science is a dynamic field of study. To cope with its evolution, everyone can participate. Thus Physical Computing will teach us how to design, build and understand complex systems. In fact, physical Computing is an approach to learning how humans communicate through computers that starts by considering how […]
28 August 2014 ~ 3 COMMENTS

[Beta 20140828] Keelen robots, DFRobot Bluno, more DuinoEDU blocks, String operations Scoop, other fun stuffs and bug fixes


Life has been crazy and pull requests has been piled up! I’d like to thank wheels123 and karlTH for their contribution. Also, for people developing the ardublock, please update the openblock before you compile this release from github Keelen robots DFRobot Bluno and Roemo motors DuinoEDU blocks String operations Scoop
04 July 2014 ~ 9 COMMENTS

[SCoop 20140704] Support for SCoop


We have been evaluating how to best implement event driven programming with Ardublock and SCoop comes up on top of all the the multi-tasking and event driven libraries we have looked at. The SCoop implementation has resided in the Scoop branch for quite some time and we have mentioned it in a few posts such […]
03 July 2014 ~ 4 COMMENTS

[Beta 20140702] LittleBits, 4Drawing, DuinoEdu and many bugs fixes!


It has been a while since our last update. The development has not slowed down. We have a few more contributors adding codes to Ardublock. Download here! Get Started with Ardublock! Learn how to install this into Arduino IDE bug fixes and new feature Big thanks to Tony Callear for many bug fixes and feature enhancement! […]
09 December 2013 ~ 10 COMMENTS

Programming Insectbot with Ardublock


Index 1. InsectBot Introduction 2. How to play InsectBot using ArduBlock 3. Download latest ArduBlock 1. InsectBot Introduction Insectbot is an Arduino-based 2-servo walker robot with one infrared sensor to detect obstacles. This easy-to-assemble kit is designed to enable creative engineering and robotics learning for age 6 and above. It is the best way to […]
11 November 2013 ~ 2 COMMENTS

Ardublock! also for Wiring IDE


I have tested Ardublock tool in the Wiring IDE. I used a ‘Wiring S’ model with a ‘DFRobot DFRduino I/O Expansion Shield’ on top of an ‘S PlayShield’. It works pretty well. The test I’ve run is a simple blinking LED(without delay function) mixed with an analog and a digital read. It works great! Installation […]
04 November 2013 ~ 25 COMMENTS

Pin-Event driven Programming on ArduBlock


As all of us know, many resources on Arduino are being wasted. The main reason is the using of delay(). Almost every Arduino program has delay() function, because Arduino working too fast for human. On the other hand, the general thinking method of a human being is “Doing thing when condition happen”, just like the […]
31 October 2013 ~ 9 COMMENTS

[Beta 20131031] Makeblock, do…while and Adafruit DC Shield


In the past few months, we thank our contributors for submitting new features, report bugs and offer valuable suggestions to improvement of Ardublock. In this beta version, we have the following additions Makeblock Thanks to our friends over at Makeblock for their contribution of beautiful new blocks. Do…While loop Thanks to Tony New repeat block […]
30 October 2013 ~ 4 COMMENTS

Using SCoop on Arduino


Sorry, this entry is only available in 中文.

Node-Red --> MQTT --> Fuxa

Node-Red --> MQTT --> Fuxa      FUXA(一個開源的 Web HMI / SCADA 自動化監控軟體)的專案設定檔 。 這份設定檔完整定義了 HMI 監控畫面的 後端通訊(MQTT 連線、點位標籤) 與 前端網頁圖形介面(SVG 畫布...