Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - pacozaa

#1
สวัสดีครับ ผมมลอง Chat Server
Arduino กับมือถือที่ ใช้ 3G แล้วมัน Connected กันไม่ได้ครับ
แต่มือถือใช้ Wifi ในวง Lan เดียวกัน มัน Connected ได้ครับ

ปล. ผม Forward Port แล้วนะครับบ
ปล2. ผม Forward Port แล้วลองทำ Arduino เป็น Web Server ก็เข้าจากด้านนอกได้ครับ

รบกวนผู้รู้ด้วยคร้าบบ
#2
อยากทราบความเห็นพี่ๆว่า Labview ต่างกับ Matlab ในแง่ของการนำไปใช้งาน และประสิทธิภาพอย่างไรบ้างครับ
#4
Embedded System Board / Aisoy based on Raspberry Pi
April 09, 2013, 11:40:35 AM
https://www.aisoy.com/?page_id=4742&lang=en

ลองดูนะครับ
#5
ใครรับออกแบบวงจร ทำ PCB บ้างครับ ติดต่อ PM มาได้เลยครับ
ขอบคุณมากครับ
#6
http://www.jarticles.com/tutorials/protocol/httpbasic.html

ไม่รู้จะลงในห้องไหนครับ ผมหาใน google แล้วเจอลิงค์นี้ อธิบายได้ดีมากครับ เหมาะสำหรับคนที่ กำลังทำโปรเจคโดยใช้ Ethernet Shield
#7
พอดีทำโปรเจค อยากลองดูหลายๆแบบน่ะครับ รบกวนด้วยนะครับ ^^
#8
ใครมีขอลิงค์โหลดหน่อยครับผม พอดีหาแผ่นมิเจอ ;D ;D
#9
ตามหัวข้อกระทู้เลยครับ สมมติจะเขียนโค้ด Html แสดง background ของหน้าเว็บจาก sd  card ใน Ethernet shield ทำยังไงครับ
ขอแบบรูปไม่ลิงค์ไปเว็บอื่นนะครับ
#10
ผมทดลองต่อกับ Arduino UNO ปรากฎว่า LCD ใช้งานได้ตามปกติครับ ลองเอามาใช้กับ
NANO 3.0
ใช้ pin 2,4,7,8,9,10 ครับ ตรวจสอบการต่อสายกับการเขียนโปรแกรม(pin ไหนเป็นอะไร)
เปลี่ยนชื่อบอร์โ เรียบร้อยครับ
ตัวบอร์ด Arduino NANO 3.0 นี้ผมก็ลองขับ SERVO ปกติดีครับ
แต่พอลองใช้โค้ด LCD มันกลับไม่ทำงานตามต้องการ pixel ติดสว่างทุก pixel เลยครับ

#11
char inData[20]; // Allocate some space for the string
char inChar=-1; // Where to store the character read
byte index = 0; // Index into array; where to store the character

void setup() {
    Serial.begin(9600);
    Serial.write("Power On");
}

char Comp(char* This) {
    while (Serial.available() > 0) // Don't read unless
                                   // there you know there is data
    {
        if(index < 19) // One less than the size of the array
        {
            inChar = Serial.read(); // Read a character
            inData[index] = inChar; // Store it
            index++; // Increment where to write next
            inData[index] = '\0'; // Null terminate the string
        }
    }

    if (strcmp(inData,This)  == 0) {
        for (int i=0;i<19;i++) {
            inData[i]=0;
        }
        index=0;
        return(0);
    }
    else {
        return(1);
    }
}

void loop()
{
    if (Comp("m1 on")==0) {
        Serial.write("Motor 1 -> Online\n");
    }
    if (Comp("m1 off")==0) {
        Serial.write("Motor 1 -> Offline\n");
    }
}


อยากทราบว่าโปรแกรมนี้ทำงานยังไงน่ะครับ
http://stackoverflow.com/questions/5697047/convert-serial-read-into-a-useable-string-using-arduino


ผมไม่เข้าใจอยู่สองจุดครับ

char Comp(char* This) ทำงานยังไงครับ
(strcmp(inData,This)  == 0) ทำงานยังไงครับ
ถ้าเป็นไปได้รบกวนอธิบายโปรแกรมโดยรวมให้หน่อยครับ
#12



ผมใช้ Arduino MEGA 2560 จะควบคุม LCD 20x4 ผ่าน I2C โดยใช้ IC mcp23008  จากโมดูลตัวนี้ครับ
http://www.arduino.in.th/product/127/i2c-convertor-module-for-lcd1602-2004
ใช้ Arduino 1.0
ลองใช้ Library จากลิงค์นี้ดู
http://playground.arduino.cc/Code/I2CPortExpanderAndLCDs
แล้วcompile ไม่ผ่านครับ ลองแก้ส่วนของโปรแกรมแล้วนะครับ
"WConstants.h" เป็น "Arduino.h"
Wire.send เป็น Wire.write


ขึ้น Error ตามรูปนี้ครับ