HC-05 Wireless OV7670 data transfer

Hello everyone,

I am trying to send OV7670's data through a HC-05 Module.

I am able to send RBG 160x120 photos though UART to the computer. (I am using Indrek's code on GitHub). Now I want to upgrade my project so that it can send the OV7670's data wirelessly though Bluetooth HC-05 module. I am not able to do so I need help.
Indrek's liveov7670 link
OV7670 Image Reading JAR
Hardware:
OV7670 no FIFO
Arduino Uno Original
HC-05
Resistors
Jumpers

using the HC-05 you can set up a serial link to a PC
could use it to transfer a photo but it would be slow

yea idc if its slow but yeah i got the program to decode the images just need the code

try this code

// HC-05 Bluetooth module AT commands
// note Serial1 baudrate is 9600 - set remote terminal to 9600baud

// using Arduino Due  (noteHC-05 Rx and Tx are 3.3V)
// Arduino %V and GND to HC-05 5V and GND
// Arduino pin 18 Tx to HC-05 Rx (if using a Mega use a level converter)
// Arduino pin 19 Rx to HC-05 Tx

void setup()
{
  Serial.begin(115200  );
  Serial.println();
  Serial.println("HC-05 set remote terminal to 9600baud\nenter text:");
  Serial1.begin(9600);//38400);       // HC-05 default speed in AT command more
}

void loop()
{
  if ( Serial1.available())    // read from HC-05 and send to Arduino Serial Monitor
  Serial.write( Serial1.read());

  if (Serial.available())     // Keep reading from Arduino Serial Monitor and send to HC-05
  Serial1.write(Serial.read());
}

on my windows PC

  1. the HC-05 appears as a Bluetooth device
  2. I pair with it
  3. it creates a virtual COM port (use device manager to view COMports)
  4. using a terminal emulator I open the COM port and can send text between the devices

my HC-05 is labeled 3.3V level and requires a level converter on the Arduino TX to HC-05 Rx line

hey so yea I got the camera pixel data sent over bluetooth through the phone. Its something like this. Now I need to know how to decode it into an image.

Start192819827819711608314527145314431443803803803803803803803803803793792779277927153792715277927152779379271531527152714271427143141014101410143142714271427142713272052713272062720527205272052720527205272052720527205272052720527205272052720527205192042720427205271402714027140271402720427204272042714027140261392713927139271392713927139271392713927752713926139271392713927752774267526752674277527752774277437519748574777485749374947413429499410947494741341013485134149134149134149134149134157134149134141941894211942091341491341491341491341491341491341491341491608214527146314531463145314531453823823145381381381381380380380380380278027802780278038038027163162715379315315315315End

I added the start and end in the code

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.