# Control a crane system

**URL:** <https://discourse.processing.org/t/control-a-crane-system/3448>\
**Category:** Electronics (Arduino, etc.)\
**Created:** [September 11, 2018, 2:09am UTC](https://discourse.processing.org/t/control-a-crane-system/3448 "2018-09-11T02:09:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bill](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bill](https://discourse.processing.org/u/bill)\
**Post date:** [September 11, 2018, 2:09am UTC](https://discourse.processing.org/t/control-a-crane-system/3448/1 "2018-09-11T02:09:22Z")

</div>

Hi there, I am working on a project of control crane system, and I have did the positioning of trolley which moves on the jib using Arduino, However, I have used a webcam which is located beneath the trolley to detect the movement of the hanged load using processing and I do not have much experience in processing, my question is I need to interface processing with Arduino and make the processing do all the calculations, is that possible?

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [September 11, 2018, 2:42am UTC](https://discourse.processing.org/t/control-a-crane-system/3448/2 "2018-09-11T02:42:09Z")

</div>

> [@bill](#):
>
> I need to interface processing with Arduino

That part is possible

> [@bill](#):
>
> make the processing do all the calculations, is that possible

Processing will not do the calculations for you. Probably you mean if you could code the calculations in Processing? Certainly. If it can be done in any language, then it can be done in Processing. Notice Processing is basically Java, with some “special” features that could be a blessed or a curse.

Have you implemented you camera code or are you looking to do that as well?

If you do not have experience with Processing, then your first step is to become familiar with the [reference](https://processing.org/reference/), the available [examples](https://processing.org/examples/) and you should also explore the examples that comes with the **Video** library which you can access using the Processing Development Environment (PDE). When you open the PDE, go to _files\>Examples_ and then go under the _libraries\>\>Video\>\>Capture_ folders. You can explore details of this library [here](https://processing.org/reference/libraries/video/index.html).

You should also explore previous posts in this forum to get some reference code for your video and arduino sections.

Kf

---

<div class="post-metadata">

**Author:** ![bill](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@bill](https://discourse.processing.org/u/bill)\
**Post date:** [September 11, 2018, 3:27am UTC](https://discourse.processing.org/t/control-a-crane-system/3448/3 "2018-09-11T03:27:26Z")

</div>

Thanks Kfrajer,  
yes I implemented the camera code, I used a reflective taper above the hook so the camera will detect the bright portion of it then i would know the coordinates of the hook,
