Im currently doing my project on Intel Edison Arduino board. My program will use a button to turn the webcamera on. I have done by connecting it to a breadboard.I have uploaded an arduino sketch to do so. The problem is when I use it in device mode, the webcam cannot be used. At the same time if I switch to host mode, webcam works but Arduino sketch doesnt seem to work. Any idea of doing it together?
Final look : When I press a pushbutton once on the breadboard, the program to open webcam ,that is, cv2.VideoCapture() starts the webcam.
Thank you for contacting us. If the webcam is connected to the Edison via the USB port, then you should be using the microswitch towards the USB port (host mode). You also mention you're using Arduino sketches to start and run the webcam. As you said, Arduino sketches won't upload in host mode. An easier approach to use the webcam is described here https://github.com/drejkim/edi-cam. In this link, the goal is to achieve video streaming and shows in detail how to install the packages needed and running an example. Even if this may not be the goal of your project, it'll help you configure the Edison and get started with the use of the webcam.
Another very useful guide can be found here: http://www.instructables.com/id/Intel-Edison-IP-Webcam/?ALLSTEPS
Let us know if you found this useful.