sipeed_wiki icon indicating copy to clipboard operation
sipeed_wiki copied to clipboard

[Gitalk:/hardware/en/maixsense/maixsense-a010/maixsense-a010.html] MaixSense-A010 - Sipeed Wiki

Open wonderfullook opened this issue 2 years ago • 18 comments

https://wiki.sipeed.com/hardware/en/maixsense/maixsense-a010/maixsense-a010.html

wonderfullook avatar Feb 03 '23 07:02 wonderfullook

What is the signal level on the UART connection, is it 3.3V logic? Can it be powered from the 5V pin with no USB connection? a current requirement spec would be useful.

jake653 avatar Mar 24 '23 09:03 jake653

What is the signal level on the UART connection, is it 3.3V logic? Can it be powered from the 5V pin with no USB connection? a current requirement spec would be useful.

Yes, UART connection is 3.3V logic, and boot from the 5V pin is ok.

image

wonderfullook avatar Mar 24 '23 09:03 wonderfullook

#2 unclear references in the documentation: "Button function: "Next" on the left and "Switch" on the right." Buttons seem to have low processing priority, unsure what can be set. I did randomly get UNIT to change to 1, which narrowed the range.

"ANTIMMI:Automatic anti-multi-machine interference AT setting." What is that, I find no references in Google (translation issue) it is regarding IR light from other sensors?

I am unable to find any projects or reviews written by users online. Which is usually how I find answers.

jake653 avatar Mar 28 '23 17:03 jake653

On Windows connected with USB-C, I can see two COM ports. I receive data from those ports at the same time? How? Even and odd frames? Thank you!

rarestohanean avatar Jun 11 '23 18:06 rarestohanean

can we flash the modified firmware to a010 with post processing ? if so is there any documentation or we need K210 ? we intend to use this for reserach and development and if you can help us in providing the firmware source code and tools

shinde-ak avatar Jun 28 '23 13:06 shinde-ak

Amazing module, we are impressed with the features and suits exactly our purpose. Is the firmware for A010 available? We would like to do some modifications to firmware, if its available and we are exploring options to build and flash the A010 directly.

sambhavjain98 avatar Jun 29 '23 07:06 sambhavjain98

Is there a possibility to use this with an Arduino board? I have downloaded the MaixSense development board on the Arduino IDE but I don't know which of the board available will be compatible with the MaxiSense-A010. What is the protocol for using this along with an Arduino board through the UART communication?

jacob-02 avatar Aug 24 '23 06:08 jacob-02

@jacob-02 Did you ever figure out how to connect the A010 with Arduino?

3space123 avatar May 30 '24 15:05 3space123

Windows Quick Start (from frustrated user):

  1. Get the big (slow) 45MB download, not just the update of comtool from Github. The big download contains a needed visualization plug-in.

  2. Use a different USB-C cable. The one I received seemed very flakey and required constant wiggling to keep connected. When you plug the device into a USB port it should stay on and show a live colored image on its back.

  3. Start up comtool.exe from the big download (no need to run as admin). a. Make sure Graph mode is selected (use "+" if needed) b. Double click "MetaSenseLite" if no black display area c. Stretch dialog box vertically until you can see the 0->1 color bar d. Find lower numbered of two ports associated with "FTDI" e. Default baudrate 115200 is fine (irrelevant?)

  4. Hit "Open" which should result in "Connected" and a live image. If you do not see something similar to the back of the device, toggle the "USB" box off and on.

  5. Hit the long blue bar to set the capture directory. After this, clicking "Capture" will save a image named _unitN.bmp here.

jconnell11 avatar Jun 18 '24 00:06 jconnell11

Is there a possibility to use this with an Arduino board? I have downloaded the MaixSense development board on the Arduino IDE but I don't know which of the board available will be compatible with the MaxiSense-A010. What is the protocol for using this along with an Arduino board through the UART communication?

@jacob-02 Did you ever figure out how to connect the A010 with Arduino?

I successfully connected the A010 camera to my Xiao ESP32-S3. My approach was to create a simple bridge between the A010 and my Raspberry Pi 4B using the ESP32. The ESP32 reads the raw UART output from the A010 and redirects it over its serial port to the Raspberry Pi. This setup worked well for me, especially since my Raspberry Pi had issues reading from the FTDI serial converter on the A010 board but could easily read the data via the ESP32’s USB interface.

Here’s the code I used for the setup:

Copy code
#include <HardwareSerial.h>

// Define UART parameters
#define UART1_TX_PIN D5
#define UART1_RX_PIN D8
#define BAUD_RATE_1 115200
#define BAUD_RATE_2 921600

HardwareSerial mySerial1(1);  // Use UART1 for device communication

void setup() {
  // Initialize UART0 for Serial Monitor (default)
  Serial.begin(BAUD_RATE_2);
  mySerial1.begin(BAUD_RATE_1, SERIAL_8N1, UART1_RX_PIN, UART1_TX_PIN);

  // Optional: Send initial commands to the camera
  mySerial1.print("AT+FPS=19\r");  // Set frames per second
  delay(100);
  mySerial1.print("AT+DISP=4\r");  // Set display mode
  delay(100);
}

void loop() {
  // Pass data from the camera to the serial output
  while (mySerial1.available()) {
    Serial.write(mySerial1.read());  // Forward the camera's data to the serial monitor
  }
}

This code initializes a UART connection between the A010 camera and the ESP32, then forwards the camera's data to the serial monitor. If you're using a different Arduino board, you might need to adjust the TX and RX pin definitions to match your board's configuration.

This approach also adds an overhead to the processing speed, but it is the only solution I find to be able to use the device avoiding the FTDI usb driver issues, hope it helps.

LeonelCamposM avatar Aug 28 '24 03:08 LeonelCamposM

Is it possible to download raw histogram data from this device?

des4ire avatar Oct 10 '24 13:10 des4ire

Is it possible to download raw histogram data from this device?

AFAIK, it only streams raw pixel data. It is pretty easy to build your own histogram from these values.

jconnell11 avatar Oct 10 '24 15:10 jconnell11