Arduino Camera
Arduino Camera
Download
this sample source code, open it on your Arduino IDE, connect
your Arduino Uno Board to your computer and upload it. Select
the correct board and port before uploading this source code.
Refer image above for help.
NOTE : Don't mind that it does not recognize some libraries in
the beginning of the file. If it bothers you, comment the whole
line out with //
Step 8: Extra.rar
1. Download and extract the Extra.rar file below and open it. As
you could see, there is src folder, lib folder and "win32com.dll".
You have to copy and placed "win32com.dll" in the "C:\Program
Files\Java\jdk1.8.0_74\jre\bin" directory.
2. Then, open the lib and you could see the "comm.jar" and
"javax.comm.properties" in it. Copy and paste the "comm.jar"
in "C:\Program Files\Java\jdk1.8.0_74\jre\lib\ext" and
"javax.comm.properties" in the "C:\Program
Files\Java\jdk1.8.0_74\jre\lib" directory.
NOTE : it may ask for administrator permission, just proceed
anyway.
Open cmd and open the folder wherein the code folder is by
writing its address. mine is "C:\Program
Files\Java\jdk1.8.0_74\bin". Click enter and it will give u
"C:\Program Files\Java\jdk1.8.0_74\bin>". Now, write "java
code.SimpleRead". It supposed to be like this---> C:\Program
Files\Java\jdk1.8.0_74\bin>java code. SimpleRead. You can refer
image for help.
You can see the picture taken from your OV7670 Camera
Module Sensor in your our folder in c drive.
1. If your cmd cannot find images, try switching the USB of the
arduino from a USB2.0 to a USB3.0 (blue socket) or vice versa.
2 If you receive scrambles pictures, you need to edit the
sample source code. Edit line: wrReg(0x11, 12); try changing
the 12 to 11/10/9/13. Upload it to the arduino and run the cmd
code again.