ArduinoGeneral

0.3M pixel serial JPEG camera module

userHead shudashov 2013-09-11 07:21:35 9925 Views19 Replies
in use: Arduino mega 2560, mega sensor shield, RS232-TTL Converter (DFR0077) and 0.3M pixel serial JPEG camera module (SEN0099)
ok, i try connect to 0.3M pixel serial JPEG camera module.
in first - connect RS232-TTL Converter (TTL side) to Serial1 port. use a simple loopback on rs232 side and load simple scatch to arduino:

byte incomingByte = 0;
void SetBaudRateCmd();
void SendTakePhotoCmd();

void setup()
{
Serial.begin(9600);
Serial1.begin(115200);
delay(2000);
}

void loop()
{
Serial.println("go");
delay(500);
SetBaudRateCmd();
delay(50);
while (Serial1.available()> 0) {
incomingByte = Serial1.read();
Serial.print(incomingByte,HEX);
}
}
void SetBaudRateCmd()
{
Serial1.write(0x55);
Serial1.write(0x49);
Serial1.write(0x01);
Serial1.write(0x34);
Serial1.write(0x23);

}
void SendTakePhotoCmd()
{
Serial1.write(0x56);
Serial1.write(0x00);
Serial1.write(0x36);
Serial1.write(0x01);
Serial1.write(0x00);
}
when run, in serial monitor i see hexadecimal return. i'm try any speed and all ok.
when i'm remove loopback and connect camera module to rs232 side i'm never receive anything. i'm try all command from [url=http://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf]http://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf[/url] and no success. any idea?
2013-09-30 01:07:21 Hi, shudashov
you use the zmtools to take a photo,right?
I tested many times.  when I use zmtools to take pictures ,It will not turn on.
but when I use the zmcapture to take pictures. it will light.  so it is right.

I connect the camera like the following diagram like the first picture(no code in mega) I can use the software to take picture.
but the second one(the code has been uploaded)  I can't  get any picture.
so I think the code maybe has some problem
userHeadPic Grey.CC
2013-09-30 01:07:21 Hi, shudashov
you use the zmtools to take a photo,right?
I tested many times.  when I use zmtools to take pictures ,It will not turn on.
but when I use the zmcapture to take pictures. it will light.  so it is right.

I connect the camera like the following diagram like the first picture(no code in mega) I can use the software to take picture.
but the second one(the code has been uploaded)  I can't  get any picture.
so I think the code maybe has some problem
userHeadPic Grey.CC
2013-09-28 01:50:22 in addition: when computer power on - one shot led blink on camera module (camera module powered from PC). when data transfer to PC from camera NO LED ACTIVITY on camera module  :-\ userHeadPic shudashov
2013-09-28 01:50:22 in addition: when computer power on - one shot led blink on camera module (camera module powered from PC). when data transfer to PC from camera NO LED ACTIVITY on camera module  :-\ userHeadPic shudashov
2013-09-28 01:33:22 sorry for the long silence.
try connect to computer RS232 directly. no problem. came the first time.
userHeadPic shudashov
2013-09-28 01:33:22 sorry for the long silence.
try connect to computer RS232 directly. no problem. came the first time.
userHeadPic shudashov
2013-09-18 00:09:42 Hi,
Have you tried connect the camera to the computer RS232 directly.
With the PC-DEMO, whether it works or not?
please pay attention to the serial port RX and TX.
female port is different to the male one.
it is easy to confused.
I add a new wiki about how to connect to the PC
I hope it will be  useful.
[url=https://www.dfrobot.com/wiki/index.php/0.3M_pixel_serial_JPEG_camera_module_%EF%BC%88SKU%EF%BC%9ASEN0099%EF%BC%89#Introduction]https://www.dfrobot.com/wiki/index.php/0.3M_pixel_serial_JPEG_camera_module_%EF%BC%88SKU%EF%BC%9ASEN0099%EF%BC%89#Introduction[/url]
userHeadPic Grey.CC
2013-09-18 00:09:42 Hi,
Have you tried connect the camera to the computer RS232 directly.
With the PC-DEMO, whether it works or not?
please pay attention to the serial port RX and TX.
female port is different to the male one.
it is easy to confused.
I add a new wiki about how to connect to the PC
I hope it will be  useful.
[url=https://www.dfrobot.com/wiki/index.php/0.3M_pixel_serial_JPEG_camera_module_%EF%BC%88SKU%EF%BC%9ASEN0099%EF%BC%89#Introduction]https://www.dfrobot.com/wiki/index.php/0.3M_pixel_serial_JPEG_camera_module_%EF%BC%88SKU%EF%BC%9ASEN0099%EF%BC%89#Introduction[/url]
userHeadPic Grey.CC
2013-09-13 07:40:15 sorry, I have not answered your question. when power on - converter power led is on. on camera module one shot blink. when try communicate no led activity on camera module.  on converter module power led on until power is on. i have 3 camera module and try 2. no results. :-\ userHeadPic shudashov
2013-09-13 07:40:15 sorry, I have not answered your question. when power on - converter power led is on. on camera module one shot blink. when try communicate no led activity on camera module.  on converter module power led on until power is on. i have 3 camera module and try 2. no results. :-\ userHeadPic shudashov
2013-09-13 03:14:03 on picture : right side - TTL left side - rs232
cable from arduino to converter less then 0.5m
on rs232 side i use RXD to transmit data to camera and TXD to receive from camera.
in  [url=https://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf]https://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf[/url] yellow - is RX line and green is TX line. (I tried to swap - no changes)
when i loopback TXD and RXD on rs232 side - i see reply in serial monitor.
userHeadPic shudashov
2013-09-13 03:14:03 on picture : right side - TTL left side - rs232
cable from arduino to converter less then 0.5m
on rs232 side i use RXD to transmit data to camera and TXD to receive from camera.
in  [url=https://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf]https://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf[/url] yellow - is RX line and green is TX line. (I tried to swap - no changes)
when i loopback TXD and RXD on rs232 side - i see reply in serial monitor.
userHeadPic shudashov
2013-09-12 19:41:19 Yeah?once the PCB is provided power or the camera do a snapshot, the LED chip
will come a sparkle which indicate operating .
when you connect camera module to rs232 side?did the led turn on?
notice the place of the RX and TX pin
I think it is better to take a picture about you hardware.
userHeadPic Grey.CC
2013-09-12 19:41:19 Yeah?once the PCB is provided power or the camera do a snapshot, the LED chip
will come a sparkle which indicate operating .
when you connect camera module to rs232 side?did the led turn on?
notice the place of the RX and TX pin
I think it is better to take a picture about you hardware.
userHeadPic Grey.CC
2013-09-12 05:29:07 yes. power connected and camera LED blink one time when power is on. userHeadPic shudashov
2013-09-12 05:29:07 yes. power connected and camera LED blink one time when power is on. userHeadPic shudashov
2013-09-12 00:30:46 Hi,shudashov
RS232-TTL Converter should have a extra power to supply the power.
Could you attach your hardware connection picture here?
userHeadPic Grey.CC
2013-09-12 00:30:46 Hi,shudashov
RS232-TTL Converter should have a extra power to supply the power.
Could you attach your hardware connection picture here?
userHeadPic Grey.CC
2013-09-11 07:21:35 in use: Arduino mega 2560, mega sensor shield, RS232-TTL Converter (DFR0077) and 0.3M pixel serial JPEG camera module (SEN0099)
ok, i try connect to 0.3M pixel serial JPEG camera module.
in first - connect  RS232-TTL Converter  (TTL side) to Serial1 port. use a simple loopback on rs232 side and load simple scatch to arduino:

byte incomingByte = 0;                             
void SetBaudRateCmd();
void SendTakePhotoCmd();

void setup()
{
  Serial.begin(9600);
  Serial1.begin(115200);
  delay(2000);
}

void loop()
{
  Serial.println("go");
  delay(500);
  SetBaudRateCmd();
  delay(50);
    while (Serial1.available()> 0) {
    incomingByte = Serial1.read();
    Serial.print(incomingByte,HEX);
    }
}
void SetBaudRateCmd()
{
      Serial1.write(0x55);
      Serial1.write(0x49);
      Serial1.write(0x01);
      Serial1.write(0x34);
      Serial1.write(0x23);

}
void SendTakePhotoCmd()
{
      Serial1.write(0x56);
      Serial1.write(0x00);
      Serial1.write(0x36);
      Serial1.write(0x01);
      Serial1.write(0x00); 
}
when run, in serial monitor i see hexadecimal return. i'm try any speed and all ok.
when i'm remove loopback and connect camera module to rs232 side i'm never receive anything. i'm try all command from [url=https://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf]https://www.dfrobot.com/image/data/SEN0099/camera%20module.pdf[/url]    and no success. any idea?
userHeadPic shudashov