I want to connect a ESP32-CAM, servo driver and OLED display to one Arduino Uno? the problem is that some of these parts use up the same pins on the Arduino Uno. How can I fix this?
Hello
some technologies are OK to have multiple devices connected to the same pins (bus architecture like SPI or I2C) but I would say take a step back and try to understand why you want to connect all these together or if you need to UNO in the first place for example. The ESP32-CAM is a fully capable arduino, way faster than your UNO.
so am I able to attach my servo driver and OLED display to the ESP32-CAM its self?
what about attaching the servo driver and OLED Display to a Raspberry Pi?
start from the beginning: what are you trying to achieve? selecting the right platform and tools will come based on your requirements
look the thing is that i was trying to create this robot here Making of mini hash humanoid robot | Hash Robotics - YouTube , but the problem is that i want some sort of facial recognition software where if I stand in front of the robot, the robot will pick up on my face and react (if I am sad then the robot will be sad)
an ESP32 ia a 240 MHz 32Bit microcontroller itself.
Your Arduino is 8bit 16MHz.
An ESP32-CAM ist an ESP32 microcontroller with attached camera. Processing live-image-data needs a lot of calculation-power. I'm not familiar with the ESP32-CAM. So I don't know how much IO-pins are left for other purposes.
I support what JML said. Give us an overview about what you are planning to do. If this is clear the users here can make suggestions that are well suited. I'm 98% sure that other and better suited parts can be used if you tell us what you want to do.
I mean tell us what the Servos and the Oled will do in the end.
Superslow moving Clock or fast hunting Sumo-Bot?
best regards Stefan
i was trying to create this robot here Making of mini hash humanoid robot | Hash Robotics - YouTube , but the problem is that i want some sort of facial recognition software where if I stand in front of the robot, the robot will pick up on my face and react (if I am sad then the robot will be sad)
OK
==> The ESP32-CAM does not need to share the OLED display etc.
it's a distributed system, with multiple "computer" handling specific pieces and they just need to be able to communicate
you can use for example the ESP32-CAM for the face recognition only, and when someone is recognized, the ESP32 sends a message over Serial/I2C/... to the other Arduino handling the robot movement.
The code on the UNO would need to listen to the Serial port and take necessary actions.
but for the person looking at the robot I wanted the OLED display there for the person to see the robot's expression when it reacts.
hm realtime face-recognition. Wow. This needs a lot of calculation-power. I'm not uptodate what freeware image-recognition is able to do today. I guess recognizing if a face is sad or happy will require OpenCV running on a personal computer.
Face-recognition on Smartphones is done with a 4x-core 2GHz 4GB RAM System. Even an ESP32 runs on 0,24GHz and has 0,0005GB of RAM.
But maybe my estimation is completely wrong.
Anyway you should do some google-research on DIY optical recogntion systems. Maybe something like a Raspberry Pi is able to distinguish "face is showing teeth" = smile "not showing teeth"
best regards Stefan
Yes i have been looking around with Raspberry Pi. Do you recommend a Raspberry Pi 4 4GB?
I'm not an expert on this.
I did some googling myself and found this video
It uses an Raspberry Pi Model B and Python.
So well I was to pessimistic a Raspi 4 can do it.
I second what JML suggested the Raspi does the optical recognition and should communicate with the Arduino
I just took a quick look. I have no ida of what quality this particular project is.
best regards Stefan
is it possible to use an arduino usb cable to an raspberry pi board (sincw I have an arduino usb cable at home)?
I was not suggesting an RPI (yet), The ESPcam does have some face recognition capabilities, it’s obviously taking a toll on performance. So it all depends on requirements
See ESP32-CAM Video Streaming and Face Recognition with Arduino IDE | Random Nerd Tutorials
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.