First of all, this is an awesome company and I’m glad I heard about it. Can’t wait to try many cool and interesting projects with my new camera.
I’m trying to build an embedded controls system that stabilizes an Inverted Pendulum. At first I was considering using an IMU (which I have) and a couple rotary encoders; however, the encoders won’t fit on my design so I’ve stumbled across a MV solution product that you guys have made.
There are 4 state variables in the inverted pendulum Equations of Motion. The x position, x velocity, theta deviation from vertical, and theta velocity (angular velocity).
I’m trying to decide the best way to use your H7 camera to provide accurate data to my cortex-M4 device that also satisfies the Nyquist Sampling rate. I believe 10 Hz of response is good enough, but I’d like to shoot for at least 20 Hz.
Would adding a saturated color section to the top of the pendulum and bottom be enough to determine the angle and x positioning? How far away should I place my camera for my system? The pendulum itself is maybe an inch wide and 8 inches tall (± an inch). Without any knowledge of Kalman filters (for the time being), I can only rely on the raw data to actuate my system.
Would it be better to do gray scale color tracking and add an IR beacon on the top of the pendulum? I’m unsure how I could add an IR beacon to my wheel since it will be spinning, however.
Edit: So I’m thinking about using two ESP32s modules to transmit from the camera to my microcontroller. The modules I’m purchasing are found here (https://www.amazon.com/MELIFE-Development-Dual-Mode-Microcontroller-Integrated/dp/B07Q576VWZ/ref=sr_1_3?keywords=esp32&qid=1573387163&sr=8-3). It appears as though it has both SPI and UART integration. I’ve downloaded the three datasheets for the H7 camera and I can’t find anything on peripheral control registers. I’d like to plan out how I’m going to integrate my communication protocol prior to receiving my module, do you have anywhere you can point me for this information? Furthermore, with this data transmission scheme, I’d like to generate part of my frame such that it has CRC (Cyclic Redundancy Check), is there any peripheral I can use to calculate this information on your microcontroller prior to sending my packet? I realize there is the underlying ARM processor and uC, and I am sure it has CRC. I would greatly appreciate any information you can point me towards for figuring these things out. Thanks again!