# send values to serial port

**URL:** <https://forums.openmv.io/t/send-values-to-serial-port/753>\
**Category:** OpenMV Boards\
**Created:** [June 6, 2018, 3:24pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753 "2018-06-06T15:24:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [June 6, 2018, 3:24pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/1 "2018-06-06T15:24:48Z")

</div>

Hello,  
I’m using the example multi\_color\_blob\_tracking\_1.py and would like to send the main values frame size for red, green and blue to a serial port. The idea is to communicate with another program called csound (an audio processing software) which can receive serial data.  
Which functions do I need for this?  
Thank you.  
Luis

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [June 6, 2018, 4:48pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/2 "2018-06-06T16:48:52Z")

</div>

Hi, for serial port sending please see the pixy emulation examples. They show off how to send data via the serial port.

---

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [June 7, 2018, 3:00pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/3 "2018-06-07T15:00:49Z")

</div>

Thanks for your answer. I was wondering if once the OpenMV Cam is connected via USB to the computer, if there is a simpler way to grab data from the camera. If so, could you give me an example? Thank you in advance.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [June 7, 2018, 3:44pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/4 "2018-06-07T15:44:07Z")

</div>

Hi, literally just use the print() method on objects. The output will then appear in the terminal in OpenMV IDE. A y program on a the computer can open the OpenMV Cam’s serial port and read the print output while the script is running.

---

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [June 7, 2018, 5:49pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/5 "2018-06-07T17:49:36Z")

</div>

Thanks for your kind reply! I’ll try that.  
Luis

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [June 7, 2018, 7:31pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/6 "2018-06-07T19:31:55Z")

</div>

Note you cannot use OpenMV IDE with the camera if another program is reading the serial port at the same time. To make your script permanent on the OpenMV Cam use Tools → Save script to the OpenMV Cam.

---

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [June 8, 2018, 7:23am UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/7 "2018-06-08T07:23:36Z")

</div>

That’s it! Thank you very, very much! Now csound is receiving data from OpenMV!  
And thanks for creating this wonderful project!  
Luis

---

<div class="post-metadata">

**Author:** ![ondraga](https://avatars.discourse-cdn.com/v4/letter/o/ebca7d/32.png) [@ondraga](https://forums.openmv.io/u/ondraga)\
**Post date:** [November 19, 2018, 9:02am UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/8 "2018-11-19T09:02:51Z")

</div>

> [@](#):
>
> Note you cannot use OpenMV IDE with the camera if another program is reading the serial port at the same time. To make your script permanent on the OpenMV Cam use Tools → Save script to the OpenMV Cam.

Hi!! I am trying to do the same. But while Save script to the OpenMV cam, I am getting an error **Error: Cannot write file D:\main.py. Disk full?!**

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [November 19, 2018, 8:33pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/9 "2018-11-19T20:33:48Z")

</div>

Hi, please verify your drive is writable.

---

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [December 11, 2018, 12:09pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/10 "2018-12-11T12:09:41Z")

</div>

Hello,  
is there a very simple solution to send the image of the camera to an external monitor? Do I need to run an external python script or is it possible to send a stream directly from the OpenMV IDE?  
Thank you.  
Luis

---

<div class="post-metadata">

**Author:** ![iabdalkader](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/iabdalkader/32/1169_2.png) [@iabdalkader](https://forums.openmv.io/u/iabdalkader)\
**Post date:** [December 11, 2018, 8:17pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/11 "2018-12-11T20:17:05Z")

</div>

> [@](#):
>
> Hello,  
> is there a very simple solution to send the image of the camera to an external monitor? Do I need to run an external python script or is it possible to send a stream directly from the OpenMV IDE?  
> Thank you.  
> Luis

What kind of monitor ?

---

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [December 11, 2018, 9:46pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/12 "2018-12-11T21:46:22Z")

</div>

I mean one of the screens of the computer.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [December 12, 2018, 5:46am UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/13 "2018-12-12T05:46:51Z")

</div>

Hi, the Microcontroller can’t do that. It doesn’t have the hardware to do so.

---

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [December 12, 2018, 12:22pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/14 "2018-12-12T12:22:18Z")

</div>

Thanks for you replies.  
I think I might have led you to a misunderstanding.  
My idea is to stream the images of the camera to a beamer in full screen. Instead of having the camera images in the OpenMV IDE, I would like to stream it to a beamer for an audio and video performance.  
Is there a simple way to do this?  
Thank you in advance and for your pacience.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [December 12, 2018, 5:39pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/15 "2018-12-12T17:39:41Z")

</div>

Yes, as mentioned we just have a USB port. We don’t have HDMI so we can’t stream to a TV. You can fullscreen OpenMV IDE and resize the viewing window to make that fullscreen.

---

<div class="post-metadata">

**Author:** ![luisantunespena](https://avatars.discourse-cdn.com/v4/letter/l/bb73d2/32.png) [@luisantunespena](https://forums.openmv.io/u/luisantunespena)\
**Post date:** [December 14, 2018, 7:52am UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/16 "2018-12-14T07:52:25Z")

</div>

OK, I see. Thank you for your reply.  
It seems like it is not ideal for the application I want to have of the camera. I need the images to be projected to an external screen and I need to send the image tracking information via serial port.

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [December 14, 2018, 2:43pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/17 "2018-12-14T14:43:14Z")

</div>

So, we will have a solution for this soon that let’s the camera transmit the image over the 5ghz spectrum using an NTSC transmitter. But, we don’t have what you need now.

---

<div class="post-metadata">

**Author:** ![oliviergschwend](https://avatars.discourse-cdn.com/v4/letter/o/ce7236/32.png) [@oliviergschwend](https://forums.openmv.io/u/oliviergschwend)\
**Post date:** [April 23, 2020, 4:09am UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/18 "2020-04-23T04:09:47Z")

</div>

Hi,

Sorry for this newbie post but I am kind of stuck. I am also trying to send values to the serial without success. The script runs properly, the camera serial receive the values, I save the script to the camera, close the camera IDE and then try to read it with Processing (or CoolTerm) but it doesn’t read anything. I don’t get it because I used to make it work.

Is there any recent update I should be making? Or another (new) step I have missed?

Thanks for your help.  
Cheers,

Olivier

---

<div class="post-metadata">

**Author:** ![kwagyeman](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.openmv.io/kwagyeman/32/4_2.png) [@kwagyeman](https://forums.openmv.io/u/kwagyeman)\
**Post date:** [April 23, 2020, 5:54am UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/19 "2020-04-23T05:54:46Z")

</div>

HI, I’m almost done with a new interface library that will be the new gold standard for anyone want to move data from the camera to anything else.

Is it possible you can wait till next week on this? I should be done by then. The interface library I’ve been writing allows you to do RPC calls on the camera. I.e., you call a method on the camera, pass some data structure, and you get some data structure back. It’s rather high performance so you can move raw images, jpeg images, processed outputs, etc. Whatever you want.

I will have an example script for USB VCP control and WiFI control on the PC.

---

<div class="post-metadata">

**Author:** ![oliviergschwend](https://avatars.discourse-cdn.com/v4/letter/o/ce7236/32.png) [@oliviergschwend](https://forums.openmv.io/u/oliviergschwend)\
**Post date:** [April 23, 2020, 5:14pm UTC](https://forums.openmv.io/t/send-values-to-serial-port/753/20 "2020-04-23T17:14:47Z")

</div>

Of course! Looking forward to play with it.  
Thanks!

[Next page](https://forums.openmv.io/t/send-values-to-serial-port/753.md?page=2)
