Person detection model on ESP32-WROVER?

Hi guys,

I am running the person detection model on my Arduino Nano 33 BLE Sense without issues but based on the literature that I found, seems that Bluetooth Mesh cannot be run on this board. So, now I am thinking maybe to switch to ESP32-WROVER as I found some tutorials on how to run Bluetooth Mesh on this board, but the issue is how to enable this person detection part on ESP32. Is it possible to use the same code for person detection on ESP32 using the Arduino IDE?

Cheers!

Hi, what is the sensor that you'll be using for person detection? Any camera or PIR motion sensor?

With PIR motion sensor + ESP32, it is possible to do detect motion. But it's not possible to distinguish between person and animal.

If you want to implement a ML model for person detection with an ESP32 CAM , it is possible.

I am using the ArduCam camera module to capture the image and then based on it predict if the person is present or not, but probably I will continue using Arduino for the first project as I found in the meantime the way to enable this on ESP32 by using their TensorFlow Lite GitHub repo with all available examples. My next question will be, is there any available example that shows how the captured image can be sent from the Arduino Nano BLE board to my PC via Bluetooth? Any kind of help again for this case will be useful!

Since BLE is intended for low power, infrequently sent, small packets of data, it would be extremely impractical for transmitting images.

The ESP32-CAM module has WiFi as well, and even has a face recognition example, so that would be a better place to start.

This task will not be super frequent, it will be created just as a backup. Is there a possibility to connect the Arduino Nano 33 BLE Sense with my PC? And also is there any base example that I can use to try to implement the image transfer?

I FTP images from a ESP32 cam to a RPi which is running TensorFlow on the images.

@aduka_27, your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with (nor for advice on) your project :wink: See About the Installation & Troubleshooting category.

I found a way how to send the image via BLE but I am still stuck in this part with BLE characteristics. What is the right characteristic for that specific purpose (image transfer)? Or to make it simpler, what is the characteristic that can handle the largest amount of data (send at one interval)?

In BLE 4.0, 20 data bytes can be sent in one packet, around 240 in 4.2. BLE is not designed to handle large amounts of data.

It's BLE 5.0 on the Arduino Nano 33 BLE Sense (board that I am using right now), so there is the same limit or?

There are plenty of articles on the topic. A few moments with a search engine will lead you to them.

Yes indeed, I found it, its 244 bytes max for Bluetooth 4.2 and 5. And last question, where do I need to define that parameter during my characteristic definition?

First you need to enable the extension. There are articles on that, too.

Much faster to look it up than to get the information drip by drip from forum posts.

2 Likes

I have tried to find articles where this topic is covered but seems that everybody struggled to enable this part. Based on comments, seems that BLE library does not allow us to create a bigger data characteristic such as one for the image transfer or I am wrong?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.