We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello, my project intention is to track a face with OpenCV/Processing and try and center your face with two servos controlles by an arduino. I can confirm that communication between Processing and Arduino does work, my problem is that, suddenly when i run the processing sketch, there is no incoming video although a couple of hours ago it was working. I am using Processing 3.3.5 and Arduino 1.8.2. Also, i'd like to use Firmata as serial does not appear to work for me. I'd also like to add i am not too experienced with Processing nor Arduino.
[Code below]
Thank you in advance.
Answers
I have made some changes to the code, now the video stream works but no response from servos.
Processing:
Arduino:
Thank you in advance
Are those ; on the end of lines 37, 40, 44 of the arduino code meant to be there?
No they aren't but know that i changed it, still no response from servos. I made a change to the processing sketch which fixed the video stream not working.
Processing: https://pastebin.com/TNMndFz1
Arduino: https://pastebin.com/DsuUMX8J
Also koogs i accidentally pressed a button saying my problem was finished.
Can you please edit your post above and post an updated version of your code? To edit the post, click on the gear icon on the top right corner of your posts.
No response from servos... Have they operated in a stand alone fashion with a simple demo? Do they work? What have you tried? My first question is to make sure they work before we dig into the code. Specially, to make sure you have the right connections.
Also, if this is not your code, do you mind sharing the link of the site where you got the arduino code? This could be potentially helpful in this situation.
Kf