Show Posts
Pages: [1]
1  Using Arduino / Interfacing w/ Software on the Computer / Re: Real Time Plotting Tool ( Oscilloscope ) on: October 06, 2012, 06:00:28 am
How am i gonna re scale the plot for the Square Wave?
2  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Camera Interface on: September 30, 2012, 09:47:15 pm
my processing was able to display 'Read 4 bytes' only and the image that is being produced is Invalid T_T
3  Using Arduino / Interfacing w/ Software on the Computer / Re: Real Time Plotting Tool ( Oscilloscope ) on: September 23, 2012, 11:30:39 pm
I'm getting values displayed in my serial monitor, now  I want it to be printed in the interface of my VB specifically in my Richtext
    Code:
         Private Sub DisplayCharacter(ByVal displayChar As String)
            RichTextBox1.Text = displayChar
        End Sub

        Private Sub SerialPort1_DataReceived(ByVal sender As Object, ByVal e As System.IO.Ports.SerialDataReceivedEventArgs)
            Dim RxData As String
            System.Threading.Thread.Sleep(300)
            RxData = SerialPort1.ReadExisting()
            RichTextBox1.Invoke(New DisplayDelegate(AddressOf DisplayCharacter), New Object() {RxData})
        End Sub

    But it wont display :c
    4  Using Arduino / Interfacing w/ Software on the Computer / Visual Basic and Arduino on: September 23, 2012, 06:31:37 am
    Can you please help me look for nice tutorials on printing the value from the serial monitor of the arduino to my Visual Basic program? I am successful in sending data to the serial port already, is it possible to have to serial ports in the VB?
    5  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Camera Interface on: September 22, 2012, 11:25:04 pm
    I'll get the image through the Processing as suggested by the tutorial, the baud rate for both the arduino and the serial camera is given, it will be stored in the processing project folder
    6  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Camera Interface on: September 22, 2012, 03:53:38 am
    Thanks Buddy, more arduino programming questions to come!
    7  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Camera Interface on: September 21, 2012, 11:45:18 pm
    Im having problem with this line

     if( !camera.getJPEGPicture( CameraC328R::PT_JPEG, PROCESS_DELAY, &getJPEGPicture_callback ) )
        {


    with this error
    invalid conversion from 'void (*)(uint16_t, uint16_t, uint16_t, byte*)' to 'void (*)(uint16_t, uint16_t, uint16_t, int*)'

    can you please help mee!!

    here is the tutorial


    http://sensorapp.net/?p=310
    8  Using Arduino / Interfacing w/ Software on the Computer / Re: Serial Camera Interface on: September 21, 2012, 11:05:58 pm
    I've read previous posts about the arduino code on capturing images, btw I'm a newbie in arduino codes so I really need your help right here guys

    the code goes like this

    #include <CameraC328R.h>
    #include <NewSoftSerial.h>
    #define LED_PIN 13
    #define PAGE_SIZE 64
    #define USB_BAUD 115200
    #define CAMERA_BAUD 14400
    NewSoftSerial mySerial(2, 3);
    CameraC328R camera(&mySerial);
    uint16_t pictureSizeCount = 0;
    /**
    * This callback is called EVERY time a JPEG data packet is received.
    */
    void getJPEGPicture_callback( uint16_t pictureSize, uint16_t packageSize,
    uint16_t packageCount, byte* package )
    {
    // packageSize is the size of the picture part of the package
    pictureSizeCount += packageSize;
    Serial.write(package,packageSize);
    if( pictureSizeCount >= pictureSize )
    {
    digitalWrite( LED_PIN, LOW );
    Serial.flush();
    }
    }
    void setup()
    {
    Serial.begin( USB_BAUD );
    mySerial.begin(CAMERA_BAUD);
    pinMode( LED_PIN, OUTPUT );
    digitalWrite( LED_PIN, LOW );
    }
    void loop()
    {
    if( Serial.available() ){
    while(Serial.read() != -1);
    digitalWrite( LED_PIN, HIGH );
    if( !camera.sync() )
    {

    Serial.println( "Sync failed." );
    return;
    }
    if( !camera.initial( CameraC328R::CT_JPEG, CameraC328R::PR_160x120,
    CameraC328R::JR_640x480 ) )
    {
    Serial.println( "Initial failed." );
    return;
    }
    if( !camera.setPackageSize( 64 ) )
    {
    Serial.println( "Package size failed." );
    return;
    }
    if( !camera.setLightFrequency( CameraC328R::FT_50Hz ) )
    {
    Serial.println( "Light frequency failed." );
    return;
    }
    if( !camera.snapshot( CameraC328R::ST_COMPRESSED, 0 ) )
    {
    Serial.println( "Snapshot failed." );
    return;
    }
    pictureSizeCount = 0;
    if( !camera.getJPEGPicture( CameraC328R::PT_JPEG, PROCESS_DELAY,
    &getJPEGPicture_callback ) )
    {
    Serial.println( "Get JPEG failed." );
    return;
    }
    }
    }


    Ive downloaded properly the c328 and newsoftserial library but im still getting these errors :

    In file included from sketch_sep22a.cpp:1:
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:24:22: error: WProgram.h: No such file or directory
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:25:24: error: WConstants.h: No such file or directory
    In file included from sketch_sep22a.cpp:2:
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\NewSoftSerial/NewSoftSerial.h:33:2: error: #error NewSoftSerial has been moved into the Arduino core as of version 1.0. Use SoftwareSerial instead.
    In file included from sketch_sep22a.cpp:1:
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:130: error: 'byte' has not been declared
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:132: error: 'byte' has not been declared
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:137: error: 'byte' does not name a type
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:138: error: 'byte' does not name a type
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:139: error: 'byte' has not been declared
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:139: error: 'byte' has not been declared
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:139: error: 'byte' has not been declared
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:139: error: 'byte' has not been declared
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:139: error: ISO C++ forbids declaration of 'byte' with no type
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:141: error: 'byte' has not been declared
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:144: error: ISO C++ forbids declaration of 'byte' with no type
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:145: error: ISO C++ forbids declaration of 'byte' with no type
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\CameraC328R/CameraC328R.h:121: error: 'NULL' was not declared in this scope
    In file included from sketch_sep22a.cpp:2:
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\libraries\NewSoftSerial/NewSoftSerial.h:99: error: conflicting return type specified for 'virtual void NewSoftSerial::write(uint8_t)'
    C:\Users\msi\Desktop\for Arduino Seminar\arduino-1.0\hardware\arduino\cores\arduino/Print.h:48: error:   overriding 'virtual size_t Print::write(uint8_t)'
    sketch_sep22a.cpp: In function 'void loop()':
    sketch_sep22a:62: error: invalid conversion from 'void (*)(uint16_t, uint16_t, uint16_t, byte*)' to 'void (*)(uint16_t, uint16_t, uint16_t, int*)'
    sketch_sep22a:62: error: initializing argument 3 of 'bool CameraC328R::getJPEGPicture(CameraC328R::PictureType, uint16_t, void (*)(uint16_t, uint16_t, uint16_t, int*))'

    can you help me debug this errors? Ive placed the libraries in the libraries folder already
    9  Using Arduino / Interfacing w/ Software on the Computer / Serial Camera Interface on: September 21, 2012, 10:36:36 am
    Hi guys, I recently bought egizmo serial camera, C328, can you help me interface it with my arduino? Thanks!!!!!!

    here is the camera http://www.e-gizmo.com/KIT/serial%20camera.html
    Pages: [1]