Coder Social home page Coder Social logo

arducam_mega's People

Contributors

arducam avatar dennis-ard avatar jeff-arducam avatar ljp-while avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

arducam_mega's Issues

Setup

Hi I tried setting up the library from dennis-ard in PlatformIO but get the following error:
Screenshot 2023-05-15 114441

Additionally here is my .ini file:
Screenshot 2023-05-15 114508

due example does not compile on due

Does not compile with Arduino Due. Tried with 2.09 and 2.04. Below is error message.

In file included from ...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam_Mega.h:14:0,
                 from ...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.h:11,
                 from ...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp:9:
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam/ArducamCamera.h:30:14: error: multiple types in one declaration
 #define Bool char
              ^
...\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\system/libsam/include/USB_device.h:74:33: note: in expansion of macro 'Bool'
 typedef unsigned char           Bool; //!< Boolean.
                                 ^
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam/ArducamCamera.h:30:14: error: declaration does not declare anything [-fpermissive]
 #define Bool char
              ^
...\AppData\Local\Arduino15\packages\arduino\hardware\sam\1.6.12\system/libsam/include/USB_device.h:74:33: note: in expansion of macro 'Bool'
 typedef unsigned char           Bool; //!< Boolean.
                                 ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp: In member function 'void ArducamLink::reportVerInfo(Arducam_Mega*)':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp:30:32: error: 'struct ArducamCamera' has no member named 'verDate'
   Serial.write(cameraInstance->verDate,3);
                                ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp: In member function 'void ArducamLink::cameraGetPicture(Arducam_Mega*)':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\ArducamLink.cpp:77:35: error: 'struct ArducamCamera' has no member named 'cameraDataFormat'
  arducamUartWrite(cameraInstance->cameraDataFormat);
                                   ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino: In function 'uint8_t readBuffer(uint8_t*, uint8_t)':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:31:21: error: 'arducamDelayMs' was not declared in this scope
     arducamDelayMs(1);
                     ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino: In function 'void setup()':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:127:41: error: no matching function for call to 'Arducam_Mega::registerCallBack(uint8_t (&)(uint8_t*, uint8_t), int)'
   myCAM.registerCallBack(readBuffer, 200);
                                         ^
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:127:41: note: candidate is:
In file included from ...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:9:0:
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam_Mega.h:308:10: note: void Arducam_Mega::registerCallBack(BUFFER_CALLBACK, uint8_t, STOP_HANDLE)
     void registerCallBack(BUFFER_CALLBACK, uint8_t, STOP_HANDLE);
          ^
...\Documents\Arduino\libraries\Arducam_Mega\src/Arducam_Mega.h:308:10: note:   candidate expects 3 arguments, 2 provided
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino: In function 'void loop()':
...\AppData\Local\Temp\.arduinoIDE-unsaved2023115-55804-1fn6mg4.tnx2\full_featured\full_featured.ino:133:21: error: 'arducamDelayMs' was not declared in this scope
     arducamDelayMs(5);
                     ^

exit status 1

Compilation error: 'struct ArducamCamera' has no member named 'verDate'

Gui tool source code

Hello,

is the source code of the Gui tool available? is this open source? Many thanks and thank you again for your work

Manual exposure not working + gain oddities

I'm using the 3MP model on a Raspberry Pi Pico with the full_featured example. Setting manual exposure via the Ardulink app does not change the output image at all, and the image data is returned instantly. Changing the manual gain, values seem very on/off, with huge jumps in sensitivity between integer steps between 1 and 10. Both of these actions are performed after turning off auto exposure / gain.

I wrote a test Web Serial implementation to query over Ardulink, and ReportCameraInfo says:

Status: ReportCameraInfo
Camera Type:3MP
Camera Support Resolution:7638
Camera Support specialeffects:319
Camera Support Focus:0
Camera Exposure Value Max:30000
Camera Exposure Value Min:1
Camera Gain Value Max:1023
Camera Gain Value Min:1
Camera Support Sharpness:1

Is the correct register being used? I've noticed that this varies in implementations, for example CAM_REG_MANUAL_EXPOSURE_BIT_7_0 is 0x35 in

#define CAM_REG_MANUAL_EXPOSURE_BIT_7_0 0X35
and it is 0x2f in
#define CAM_REG_MANUAL_EXPOSURE_BIT_7_0 0X2F

Thanks!

Misleading documentation

Hi

I am running the Arduino example on a Raspberry Pi PicoW board.

[16:59:16]: Port Connect Success
[16:59:18]: Command:55 FF AA, Send Success!
[16:59:18]: Command:55 0F AA, Send Success!
[16:59:18]: Command:55 0F AA, Send Success!
[16:59:18]: Command:55 0F AA, Send Success!
[16:59:18]: Command:55 0F AA, Send Success!
[16:59:21]: Parser timeout error.
[16:59:21]: Port Close Success.

I get the above error in the Arducam app
image

I am running the 2.0.4 version of the library

image

I think communication between the camera and the GUI app is happening correctly. But there's something malformed on either end - not sure what.

Also, is there documentation on how to use the GUI application with the Pico SDK instead of Arduino? I see that it's supported, but the docs website doesn't say much about the Pico C SDK
https://www.arducam.com/docs/arducam-mega/arducam-mega-getting-started/packs/example/PICO.html#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.