luxonis / esp32-spi-message-demo

ESP32 reference app for interfacing with DepthAI over SPI
MIT License
31 stars 9 forks source link

Questions: Enabling SPI peripheral mode #6

Open nicolethai opened 3 years ago

nicolethai commented 3 years ago

Hi, I'm attempting to interface the BW1098EMB_R0 development kit with an MCU. I'm using the ESP32 SPI messaging demo as a guide, and am looking for clarification to a couple questions:

Thank you!

Luxonis-Brandon commented 3 years ago

Hi @nicolethai ,

Sorry for the trouble here.

To help debug, would you be able to share your physical pin-configuration to the microcontroller (and if possible, which microcontroller is being used)? Ideally a picture of the setup would help a lot.

In terms of enabling additional IO - do you mean IO on the Myriad X? If so, we plan to support that later through microPython, but this effort is in its infancy right now (latest here).

Also I wanted to make sure you are aware of the DepthAI + Onboard ESP32 board: https://shop.luxonis.com/collections/all/products/bw1092

I bring this up as since everything is wired onboard, it helps to sanity-check if something is not working because of physical wiring configuration (like a missing ground between the boards) sort of thing.

Thoughts?

Thanks, Brandon

nicolethai commented 3 years ago

Hi Brandon,

I'm trying it with the Atmel SAM V71 Xplained Ultra evaluation kit, hope the picture attached helps. For the SoM, would it simply be flashing the pipeline as needed? IMG_9943

For additional IO, I saw that UART and I2C were broken out on the development kit but I was not sure if/how they were being used. I believe those are from the SoM on board, would that be driven through microPython?

And thank you, I was aware of the BW1092 board and was trying to reference the available schematics.

Thanks again

jonngai commented 3 years ago

Hi @nicolethai

I wonder if the depthai.cmd doesn't line up correctly with what the esp32-spi-message-demo is expecting. Just to be sure you know about them, we have some depthai examples that correspond with esp32-spi-message-demo here:

https://github.com/luxonis/depthai-experiments/tree/master/gen2-spi

You can pull down the right depthai.cmd firmware by running the install_requirements.py script in the link above. Then by running one of the example's main.py, you'll end up starting the updated firmware.

Luxonis-Brandon commented 3 years ago

For additional IO, I saw that UART and I2C were broken out on the development kit but I was not sure if/how they were being used. I believe those are from the SoM on board, would that be driven through microPython?

Yes, that's exactly right. We think we have a good path to microPython, and I think it should work well. We just keep getting pulled by pressing customer matters. I think February will be a good month for microPython though.